Repository navigation
fork(#48): install the relay test workspace before the preflight unit run (slice 12) - #63
Merged
nachumi-a2zoperations merged 1 commit intoNov 16, 2026
Conversation
… run tests/e2e/relay-region-correction.unit.test.ts imports cloud/apps/relay, a separate pnpm workspace. CI keeps the relay integration tests out of the unit shards and installs + builds that workspace in its own job; the local preflight's `vitest related` run selects them like any other test, so on a clone without cloud/ installed it failed with "Cannot find package 'pg'". The preflight's unit prelude now runs config/scripts/orca-fork/install-relay-test-dependencies.mjs --if-missing: when a relay dependency is not installed or a workspace one is not built, it runs the relay job's two commands (frozen lockfile, no lifecycle scripts); otherwise nothing. A test pins the commands to unit-tests.yml. Refs #48 (slice 12) Signed-off-by: Nachumi Eliyahu <[email protected]>
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.
Refs #48 (slice 12:
tests/e2e/relay-region-correction.unit.test.ts, "Cannot find package 'pg'").Cause
cloud/apps/relay, a separate pnpm workspace (cloud/pnpm-workspace.yaml, its own lockfile).pgis a dependency of that workspace only.UNIT_EXCLUDEinci-unit-files.mjs). It runs them in their own "relay integration" job inunit-tests.yml, which first runs, incloud/:pnpm --filter '@orca-cloud/relay...' install --frozen-lockfile --ignore-scriptspnpm --filter '@orca-cloud/relay^...' buildvitest relatedrun selects these tests like any other, and nothing there installscloud/. On a clone where nobody did, the correction test fails at import.relay-region-compatibilityhappens to pass without it (12/12).Fix
config/scripts/orca-fork/install-relay-test-dependencies.mjs [--if-missing] [--cloud <dir>]. It finds the gaps: each relay dependency with no package inapps/relay/node_modules("not installed"), and eachworkspace:dependency whosemainis missing ("not built").--if-missing, it runs the relay job's two commands only when there is a gap. Otherwise it does nothing.unitTestPreluderuns it after the release-tag fetch (slice 2's pattern) and before the native runtime step.Tests (red first)
9830b801:install-relay-test-dependencies.test.mjs8,check-changed-unit-prelude.test.mjs2).cloud/and a fakerun, so they never call pnpm or reach the network. One test pins the two commands to the text ofunit-tests.yml, so a CI change shows up here.End to end (MacBook)
node_modulesanddistremoved,relay-region-correctionfailed with "Cannot find package 'pg'".install-relay-test-dependencies.mjs --if-missing(underpnpm exec, as the preflight runs it) installed and built the relay workspace. Both relay tests then passed: 15/15.--if-missingrun printed "present; nothing installed".Host note (not code)
~/Library/pnpm/.tools/pnpm/12.14.0/bin/pnpmis still the placeholder text file). Plainpnpmin the repo fails with "Failed to switch pnpm to v12.14.0 … ENOEXEC", and so does the husky pre-commit hook.Gates (MacBook)
pnpm check:changed --base=origin/blowzer/fork-only --force: 43 of 44 checks pass. The 1 red is "skill bundle manifest" (resources/skills/released-digests.jsonstale), which fails the same way on base9830b801; this PR touches no input of it.