Commit Graph

550 Commits

Author SHA1 Message Date
8aee7825c7 fix(build): simplify GHC 9.10.3 overlay — drop Generated.Types stub
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
The inter-hub-lib postUnpack that expanded `import Generated.Types` to
119 individual imports was incorrect: it deleted `module Generated.Types`
from Prelude export lists without replacing it, so consumers of the
Prelude lost all entity types (Build 32: GHC-76037 not-in-scope errors).

Fix: keep Generated.Types as a real module in inter-hub-models (remove the
empty stub). With the ActualTypes.hi fix already in place (explicit T(..)
exports), the cascade is shallow: each entity .hi is compact, so
Generated.Types.hi stays well under GHC's 274 MB limit. This makes
`import Generated.Types` work normally throughout inter-hub-lib without
any source patching.

The entire inter-hub-lib overrideAttrs block is removed; the
inter-hub-models overlay now only rewrites ActualTypes.hs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 17:09:00 +02:00
80512727cb chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 16:59:02 +02:00
f39ec84b29 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 16:43:18 +02:00
b03781360b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 16:26:34 +02:00
f800d760c8 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 15:45:46 +02:00
a35009d509 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 15:29:46 +02:00
2e6932f787 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 15:13:46 +02:00
b4415659d4 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 14:57:46 +02:00
7866789303 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 14:41:46 +02:00
568970a79f chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 14:25:46 +02:00
0d0c1564b4 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 14:09:46 +02:00
b2b070e7c2 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 13:54:29 +02:00
591462105e chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 13:37:56 +02:00
3934481cfe chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 13:21:59 +02:00
89b9967d51 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 13:05:56 +02:00
e358382ec4 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 12:49:59 +02:00
ae33a711ed chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 12:34:05 +02:00
3f995e2e4b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 12:17:56 +02:00
4c13dac5d0 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 12:02:03 +02:00
4b94b6a8f9 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 11:48:33 +02:00
c1959b0b17 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 11:28:37 +02:00
11ff61c1ba fix(build): route TH to ghc-iserv-dyn to bypass truncated libHSghc.a
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Root cause: libHSghc-9.10.3-5702.a (287,768,576 bytes) has its last AR
entry (Expr.o) claiming 517,544 bytes but only 82,258 bytes remain —
the archive is truncated. GHC's internal readAr (Data.Binary.Get) panics
at position 287,686,318 when it tries to read the full claimed size.

The truncated .a is read lazily: IHP's TH splices queue a dependency on
the ghc package, which flushes to readAr after all 477 modules compile.
This explains the invariant crash at [477 of 477] WidgetVersionInclude.

ghc-iserv-dyn is not exposed in ghc-with-packages/bin/ (why
-fexternal-interpreter alone silently fell back to the internal linker).
Use -pgmi with the absolute path in the unwrapped GHC store to force
iserv-dyn, which uses dlopen on libHSghc.so (intact, 110 MB) instead
of readAr on the truncated .a. No crash.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 11:11:07 +02:00
accfec84ec chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 11:09:52 +02:00
d6cf995f05 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 10:53:24 +02:00
1ecf63e855 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 10:37:18 +02:00
6e210561b2 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 10:20:52 +02:00
15f6ef81c0 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 10:04:39 +02:00
3534952f4a chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 09:48:40 +02:00
7d0c13319b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 02:47:39 +02:00
5494e2b98b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 02:32:38 +02:00
4a0d95ace9 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 02:17:29 +02:00
968ba3d282 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 02:02:25 +02:00
e6705afa5b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 01:47:19 +02:00
d1cdf9a022 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 01:32:39 +02:00
f9c0bacc1c chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 01:17:57 +02:00
eb996cb092 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 01:03:24 +02:00
ec8aa611b8 chore(build): swap -fexternal-interpreter for --disable-shared on models
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
-fexternal-interpreter had no effect: crash invariant at 287,686,318.
System ar reads libHSghc-9.10.3-5702.a (287,768,576 bytes) fine, but GHC's
internal readAr fails on the last entry — a bug in GHC's AR parser when
reading content near end-of-file. The call site is mergeObjectFiles during
.so creation, not TH evaluation.

--disable-shared skips the shared library build for inter-hub-models,
preventing GHC from ever calling readAr on libHSghc.a.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 00:49:14 +02:00
a3d9a1effc chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 00:48:42 +02:00
c078ec441b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 00:34:34 +02:00
1050af9533 chore(build): try -fexternal-interpreter to bypass internal static linker
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
GHC crashes at byte 287,686,318 reading libHSghc-9.10.3.a (~274 MB) via
its internal static linker during TH evaluation of WidgetVersionInclude.
-fexternal-interpreter delegates TH to a separate iserv process using the
dynamic linker, bypassing readAr and the 274 MB archive entirely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 00:26:27 +02:00
059637ca5b chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 00:19:48 +02:00
e117f78ef3 chore(debug): force -j1 to serialize GHC parallel code generation
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
With -j8, GHC generates code for 8 modules in parallel. A parallel merging
step might read combined objects via Data.Binary.Get hitting 287 MB. Forcing
-j1 serializes codegen to test if parallel merging is the crash cause.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 00:06:31 +02:00
da556aa824 chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-02:
  - update .custodian-brief.md for inter-hub
2026-05-02 00:05:53 +02:00
4c0d966d38 chore(debug): add -fno-dynamic-too to skip combined static/dynamic pass
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
DynamicToo state: DT_Dyn appears right before the crash. Force separate
static and dynamic GHC compilation passes to change the code path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 00:02:10 +02:00
01902040da chore(debug): try --disable-split-sections to avoid GHC crash
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Crash invariantly at position 287,686,318 bytes happens after all 477 modules
compile. Hypothesis: split-sections expands ELF section count, triggering
GHC's internal ELF merger/linker to fail when reading the combined object.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 23:54:02 +02:00
f036df4f2c chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-01:
  - update .custodian-brief.md for inter-hub
2026-05-01 23:50:03 +02:00
91204731ae chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-01:
  - update .custodian-brief.md for inter-hub
2026-05-01 23:34:56 +02:00
3664af59f2 chore(debug): add -ddump-if-trace to inter-hub-models to diagnose GHC crash
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
All 477 modules compile successfully but GHC panics at position 287,686,318
during finalization. Trace will show which .hi file is being read at crash time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 23:27:21 +02:00
5fe1f7bfac chore(consistency): sync task status from DB [auto]
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
Updated by fix-consistency on 2026-05-01:
  - update .custodian-brief.md for inter-hub
2026-05-01 23:20:02 +02:00
5382a7672a fix(build): capture type aliases in ActualTypes hub export list
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled
IHP entity pattern: data Foo' params = Foo {...} (primed type, unprimed ctor)
                   type Foo = Foo' arg1 arg2    (concrete alias, kind *)

Include type instances use [Foo] — needs the concrete type alias (kind *),
not the primed data type. Previous awk only matched data/newtype, missing
the type alias. Add /^type [A-Z]/ match (no (..) suffix — type aliases are
not ADTs). type instance lines start with lowercase 'i' and don't match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 23:13:26 +02:00