Skip to content

environment tests: the valid-forms table moves to its own file - #5089

Merged
ashhart merged 3 commits into
mainfrom
lead/env-valid-cases
Nov 25, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/env-valid-cases

Conversation

@ashhart

@ashhart ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

zig/src/platform/environment_test.zig was at 599 lines, so the rows any new setting adds break the 600-line cap. #4918's two rows for TENSORFOLD_REQUEST_LOG_REPLIES made it 601, and #5040's will do the same.

The 248-line table of valid forms (Case and valid) moves unchanged to environment_valid_cases.zig. environment_test.zig reads it from there and is now 351 lines. No test changed.

Checks:

  • test-environment-host passes.

  • Control: with one row's expected number changed (TF_QWEN_KV_HOST_GIB "8" read as 9), the valid-forms test fails with "expected 9, found 8". The moved table is still checked.

  • lean stays at 164.

  • Synthena

…ases.zig

environment_test.zig was at 599 lines, so any new setting's rows broke the 600-line cap (#4918's two rows made 601). The 248-line table of valid forms now has its own file; the tests read it unchanged.
@ashhart
ashhart force-pushed the lead/env-valid-cases branch from 9924abb to f2688f8 Compare November 25, 2026 20:15
@ashhart
ashhart merged commit 5baf44f into main Nov 25, 2026
1 check failed
@ashhart
ashhart deleted the lead/env-valid-cases branch November 25, 2026 20:16
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