fix(tests): the display startup fixture has no declaration for bc_claim, so it never compiles #2540

Open
opened 2026-11-25 16:02:37 +00:00 by dazemc · 1 comment
Contributor

tests/test_display_startup_failure.py fails on main at 7eb53d1a0 (and at be663a08a) — it does not compile:

FAIL tests/test_display_startup_failure.py
display_startup_actual.inc:82:5: error: use of undeclared identifier 'bc_claim'
   82 |     bc_claim();   /* (the builder's channel ends kept from what the game starts, after the hand-over read them) */
      |     ^~~~~~~~
1 error generated.

Where

tests/display_startup_failure_test.cpp:121 includes a generated display_startup_actual.inc; its line 82 is the bc_claim(); call. The fixture cuts functions out of the sources and supplies stubs for what it removes, but it has no stub or declaration for bc_claim (declared and defined at host/builder_channel.c:62, int bc_claim(void)). So the generated translation unit is missing the declaration and the check cannot pass.

Reproduction (main tip)

Clean worktree at the tip (git status --porcelain empty), header env as the suite rule's 4.1, --strict --jobs 5 --exact:

2 checks, 0 skipped, 5 at once (linux)
FAIL       0.1s  tests/test_title_card_strips.py
FAIL       0.4s  tests/test_display_startup_failure.py
0 passed, 2 failed, 0 skipped in 0 s (linux, 5 at once)

Run at 7eb53d1a0 (fix(ci): ... (#2536)), which does not change this test or host/: prrefresh-logs/base-7eb53d1a0-two-ids.log, sha256 64e995f08b1ac29ec5d69c0e9f31721eacd1491e89b1a975ea3448b9095390b3, with .head/.start/.end/.exit (=1) beside it. The same two ids fail identically at be663a08a (prrefresh-logs/base-be663a08a-two-ids.log, sha256 a26e89fa21110e64aa11987f7acae1a9d166b3c6e1877e8335aa3c9b0b9ac257).

Why it matters

The id is in neither the suite-comparison rule's CORE nor its FLAKY set, so before Amendment 2 it turned every head's mise run test box red for a main-side breakage (PR #2151 was marked WIP for it before the amendment landed). Heads rebased on be663a08a now carry it as a recorded base-failure exemption.

The second failure in the run above, tests/test_title_card_strips.py (ModuleNotFoundError: No module named 'oot_patches', nx2/oot_patches.py deleted by 3072dda43), is a separate main-side breakage, currently recorded only in #2532's body.

`tests/test_display_startup_failure.py` fails on `main` at `7eb53d1a0` (and at `be663a08a`) — it does not compile: ``` FAIL tests/test_display_startup_failure.py display_startup_actual.inc:82:5: error: use of undeclared identifier 'bc_claim' 82 | bc_claim(); /* (the builder's channel ends kept from what the game starts, after the hand-over read them) */ | ^~~~~~~~ 1 error generated. ``` ## Where `tests/display_startup_failure_test.cpp:121` includes a generated `display_startup_actual.inc`; its line 82 is the `bc_claim();` call. The fixture cuts functions out of the sources and supplies stubs for what it removes, but it has no stub or declaration for `bc_claim` (declared and defined at `host/builder_channel.c:62`, `int bc_claim(void)`). So the generated translation unit is missing the declaration and the check cannot pass. ## Reproduction (main tip) Clean worktree at the tip (`git status --porcelain` empty), header env as the suite rule's 4.1, `--strict --jobs 5 --exact`: ``` 2 checks, 0 skipped, 5 at once (linux) FAIL 0.1s tests/test_title_card_strips.py FAIL 0.4s tests/test_display_startup_failure.py 0 passed, 2 failed, 0 skipped in 0 s (linux, 5 at once) ``` Run at `7eb53d1a0` (`fix(ci): ... (#2536)`), which does not change this test or `host/`: `prrefresh-logs/base-7eb53d1a0-two-ids.log`, sha256 `64e995f08b1ac29ec5d69c0e9f31721eacd1491e89b1a975ea3448b9095390b3`, with `.head`/`.start`/`.end`/`.exit` (=1) beside it. The same two ids fail identically at `be663a08a` (`prrefresh-logs/base-be663a08a-two-ids.log`, sha256 `a26e89fa21110e64aa11987f7acae1a9d166b3c6e1877e8335aa3c9b0b9ac257`). ## Why it matters The id is in neither the suite-comparison rule's CORE nor its FLAKY set, so before Amendment 2 it turned every head's `mise run test` box red for a main-side breakage (PR #2151 was marked WIP for it before the amendment landed). Heads rebased on `be663a08a` now carry it as a recorded base-failure exemption. The second failure in the run above, `tests/test_title_card_strips.py` (`ModuleNotFoundError: No module named 'oot_patches'`, `nx2/oot_patches.py` deleted by `3072dda43`), is a separate main-side breakage, currently recorded only in #2532's body.
Member

Possibly related, for context:

  • PR #2539 WIP: fix(tests): main's title-card and display-startup checks pass again — Open PR directly fixes the missing bc_claim fixture declaration and stub.
Possibly related, for context: - PR #2539 WIP: fix(tests): main's title-card and display-startup checks pass again — Open PR directly fixes the missing bc_claim fixture declaration and stub.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#2540
No description provided.