Repository navigation
test(maximal): derive oMLX fixture profile versions from what is installed - #81
Merged
Merged
Conversation
…alled Same defect #79 fixed in the dsh-host fixture, at a second site. The oMLX profile integration test hardcodes the versions it writes into the fixture profile's manifest while symlinking the actually-resolved packages beside it, and `resolveExternalProfile` requires the two to agree. Four of these literals were already stale on main -- dsh-brand and dsh-timeout went to rc.8 in #65 and #66 -- without breaking anything, because only packages referenced by `providers.json` are version-checked. cordis is referenced, so 4.0.1 -> 4.0.2 (#80) trips it, and the failure surfaces as the generic "The external provider profile is invalid." naming neither package nor version. Derive all ten from the same resolution `packageRoot` already uses, including the four that are merely declared, so a later widening of the check cannot resurrect this. No production code changes. Verified in the disposable container with #80's bumps applied: the previously failing "external oMLX profile integration > loads through composition and preserves user configuration" passes, and the full run is green -- 15/15 tasks, maximal 92 pass / 0 fail, maximal-core 1859, maximal-electron 1147.
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.
What
The same defect #79 fixed in the dsh-host fixture, at a second site.
packages/maximal/tests/provider-profile-integration.test.tshardcodes the versions it writes into the fixture profile's manifest:while symlinking the actually resolved packages beside it.
resolveExternalProfilerequires the two to agree.Why it wasn't already broken
Four of these literals were already stale on main —
dsh-brandanddsh-timeoutwent to rc.8 in #65 and #66 — without failing anything, because only packages referenced byproviders.jsonget version-checked.cordisis referenced viaruntime.cordis, so #80's 4.0.1 → 4.0.2 trips it.As in #79, the failure surfaces as the generic
naming neither the package nor the version.
The fix
Derive all ten from the same
require.resolvethatpackageRootalready uses — including the four that are merely declared rather than referenced, so a later widening of the check can't resurrect this.No production code changes.
Verification
Run in the disposable container (
node scripts/docker-test.mjs) with #80's bumps applied:external oMLX profile integration > loads through composition and preserves user configuration— passes (was the sole failure on build(deps): bump the npm-minor-and-patch group across 1 directory with 11 updates #80)@stuffbucket/maximal92 pass / 0 fail,maximal-core1859 pass / 0 fail,maximal-electron1147 passed,maximal-client70 passedverify:workspace13 assertions over 2764 things, 0 failed; lockfile supply-chain policies pass over 1715 entriesUnblocks #80.