Repository navigation
Conversation
The #1992 env guard (TestEveryRegistryVariableIsHarnessSetOrSafe) fails on main: MCPX_ADAPTERS_ALLOW_BARE (setting adapters.allowBare) is declared in the settings registry but classified in neither envguard table. TestAdaptersAllowBareGatesABareDeclaration sets the variable with e.setenv in internal/e2e/effect_test.go, so per the guard's own definitions it belongs in harnessSetMCPX. This broke e2e shard 3, the flake binary e2e legs and the container e2e leg of the mcpx test workflow (run 45227606720). Verified: the guard failed before this change with exactly this one unclassified variable and passes after; the effect probe and the full CI-assigned shard-3 pattern (104 tests) also pass. Part of #13619
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
TestScriptCwdIsReachableFromTheEnvironment took the last line of the
combined stream as the script's pwd. The dispatch notice ("running under
sh (shebang dispatch): ...") is written to stderr and its position
against the script's stdout is not ordered; in the flake-binary leg of
mcpx test run 45251429763 the notice came after the pwd, so the last
line was the notice and the test compared "" against the expected
directory.
Scan the output for a line that resolves to the script directory
instead, and fail when none does (a run that stayed in the caller's
directory therefore still fails). Verified: 20 consecutive local runs
pass; the failing ordering is the one recorded in the run log.
Part of #13619
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Main-branch CI workflow
mcpx test(run 45227606720, sha4518255) failed multiple legs on issue #13619.Root causes
1.
TestEveryRegistryVariableIsHarnessSetOrSafe(e2e shard 3, flake binary e2e legs, container e2e — one shared cause)MCPX_ADAPTERS_ALLOW_BAREwas declared in the settings registry and is genuinely set by the harness (TestAdaptersAllowBareGatesABareDeclarationusese.setenv), but it was never added toharnessSetMCPX/safeMCPX. The guard is written to fail the day a setting is added without classification, which is exactly what happened. Every leg that runsinternal/e2ehit it, so shard 3, the two flake-binary legs and the container leg are one failure, not four.2.
TestEveryDocumentationLinkResolves(unit job — independent, already fixed on main)The glossary cited the operation table by Go symbol in backticks, which this test reads as a file path. Fixed on main by #13597 (
5412831eebd,f0c6f2e0396) before this branch was cut; the narrow test passes here.3.
TestScriptCwdIsReachableFromTheEnvironment(flake-binary leg of the verification dispatch)The test compared the last line of the combined stream against the script directory, but the shebang-dispatch notice is written to stderr and its position against the script's stdout is unordered. Run 45251429763 recorded the notice after the pwd, so the test compared
"". Now it scans for a line that resolves to the script directory; a run left in the caller's directory still fails.Change
MCPX_ADAPTERS_ALLOW_BAREas harness-set, per the guard's own definition (the behaviour halfTestTheHarnessBuildsChildrenFromTheAllowlistproves the inherit-nothing policy for every name in both tables).Verification (files and commands, not claims)
go test ./internal/e2e -run '^TestEveryRegistryVariableIsHarnessSetOrSafe$'— fails before with exactly the message above, passes after.go test ./internal/e2e -run '^TestAdaptersAllowBareGatesABareDeclaration$'— passes (29.6s).01a20972-…) —ok … 332.1s.go test ./internal/e2e -run '^TestScriptCwdIsReachableFromTheEnvironment$' -count=20— 20/20 pass.go test ./internal/e2e -run '^TestTheHarnessBuildsChildrenFromTheAllowlist$'— passes.go test ./internal/defaults/...— passes (doc-link fix present).gofmt -l— clean.Open question recorded with a default
Whether the workflow should keep the doc-link unit test from regressing again is out of scope: main already carries the glossary correction. Default chosen: no extra CI wiring in this PR.
Part of #13619