Skip to content

Stop collecting src/chart.zig tests - #76

Merged
beetlebugorg merged 1 commit into
mainfrom
fix/chart-test-link
Sep 7, 2026
Merged

Stop collecting src/chart.zig tests#76
beetlebugorg merged 1 commit into
mainfrom
fix/chart-test-link

Conversation

@beetlebugorg

@beetlebugorg beetlebugorg commented Sep 7, 2026

Copy link
Copy Markdown
Owner

build-test fails on main. The test module addPkgTest builds for src/chart.zig links portray's lua_shim.c, which references tgc_binding, an export in src/s101/catalogue.zig that the module does not emit.

error: ld.lld: undefined symbol: tgc_binding
  note: referenced by lua_shim.c:620 (src/portray/lua_shim.c:620)

macOS links it and ld.lld on Linux does not, so zig build test passes locally. The job failed on b2aef2d, the merge that added the registration, and passed on its parent da5442e.

Registering src/chart.zig was not part of #75. I added it there because the inventory tests I wrote live in that file, and I checked it on macOS only.

This removes the registration. The seven tests in src/chart.zig go back to uncollected: three that predate #75 and four for the inventory. Collecting them needs the test module to link what portray's C shim references. That is its own piece of work.

Checks

zig build, zig build test (420 tests) and zig fmt --check pass.

The test module addPkgTest builds for it links portray's lua_shim.c,
which references tgc_binding, an export in src/s101/catalogue.zig that
the module does not emit. macOS linked it and ld.lld on Linux did not:

  error: ld.lld: undefined symbol: tgc_binding
    note: referenced by lua_shim.c:620

build-test failed on main at the merge that added the registration, and
passed on its parent.

The seven tests in src/chart.zig go back to uncollected, three that were
there before and four for the inventory.
@beetlebugorg
beetlebugorg merged commit 70dd41d into main Sep 7, 2026
5 checks passed
@beetlebugorg
beetlebugorg deleted the fix/chart-test-link branch September 7, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant