Repository navigation
cross-version: baseline never newer than the checkout + fetch upstream release tags (orca #48, slice 2) - #50
Merged
nachumi-a2zoperations merged 2 commits intoNov 15, 2026
Conversation
…m release tags (orca #48, slice 2) Root cause of the cross-version wire group of the fork-wide red unit step (42 of the 113 files in #48), two parts: 1. No tags. The harness compares this build with released builds by git tag (the newest stable release, plus fixed older ones such as v1.4.190 .. v1.4.253), and fails rather than skips when a tag is missing. The fork repo carries no tags (A2Z-Operations/orca: 0; upstream: 1,109 v* tags), so every clone failed with "found no stable desktop release tags" or "could not resolve ref vX.Y.Z". Many of the pinned tags sit on upstream release branches, so fetching only the tags in the fork's own history is not enough (tried: 33 fail with ancestor tags only). 2. Wrong baseline once the tags are there. "Newest stable release" picked upstream's v1.4.259, but the fork is 1.4.255 (package.json), and two tests then imported modules that moved after 1.4.255 ("Cannot find module …/v1.4.259/…/src/main/runtime/rpc/errors.ts"). Fix: - release-checkout.ts: the baseline and the recent-release list never include a release newer than the checkout's own package.json version (releaseTagsUpToVersion). On upstream main (version >= its newest tag) nothing changes; an unreadable version caps nothing. - config/scripts/orca-fork/fetch-upstream-release-tags.mjs: fetches upstream's v* tags (only tags, no tag overwritten, nothing pushed) into a clone, for the gates to run before the unit step. Tests: - release-baseline-cap.unit.test.ts: the cap (failed first: the function did not exist; passes now). - fetch-upstream-release-tags.test.mjs: against a local upstream repo (no network): only v* tags, including one on a release branch the clone lacks; idempotent; a bad upstream fails loudly. Evidence (MacBook, this clone after the script: 0 -> 1,109 tags): the 42 cross-version files + the new test: 167 passed, 0 failed (1 skipped). Before: 42 files red. Refs #48
…(orca #48, slice 2) Leader decision on PR 50: no push of upstream's tags into the fork repo; the gate fetches them itself, with no hand step. - check-changed.mjs: the unit task starts with fetch-upstream-release-tags.mjs --if-missing (unitTestPrelude), then the native runtime as before. The Dell orca gate and the MacBook run the same check:changed. - fetch-upstream-release-tags.mjs --if-missing: a clone that already has release tags is left alone without reaching upstream; a clone with none fetches them. Tests: check-changed-unit-prelude.test.mjs (the step comes first) and two --if-missing cases in the script test (one proves no upstream is contacted when tags exist: a missing upstream path does not fail). All red first, green now. Refs #48
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 2 of the fork-wide red unit step: the cross-version wire group, 42 of the 113 files). #48 stays open for the rest.
Root cause, in two parts
1. The fork has no release tags. The cross-version harness compares this build with released builds by git tag: the newest stable release, plus fixed older releases (
v1.4.190…v1.4.253). It fails rather than skips when one is missing.A2Z-Operations/orcacarries 0 tags; upstream has 1,109v*tags. So every clone of the fork failed with "found no stable desktop release tags" or "could not resolve ref vX.Y.Z".2. Once the tags are present, the baseline is wrong. "Newest stable release" picked upstream's
v1.4.259, but the fork is1.4.255(package.json). Two tests then imported modules that moved after 1.4.255 (Cannot find module …/v1.4.259/…/src/main/runtime/rpc/errors.ts).Fix
tests/e2e/cross-version-wire/release-checkout.ts: the baseline and the recent-release list never include a release newer than the checkout's ownpackage.jsonversion (releaseTagsUpToVersion). On upstream main (version ≥ its newest tag) nothing changes, and an unreadable version caps nothing.config/scripts/orca-fork/fetch-upstream-release-tags.mjs(fork-only): fetches upstream'sv*tags into a clone. Only tags, no tag overwritten, nothing pushed anywhere. A gate runs it before the unit step on a clone without tags.Tests
release-baseline-cap.unit.test.ts: the cap. Red first (the function did not exist), green now.fetch-upstream-release-tags.test.mjs: runs against a local upstream repo, no network. It fetches onlyv*tags, including one on a release branch the clone lacks; it is idempotent; a bad upstream fails loudly.check-changed: 14/14, including the unit step.For the gates (second commit, Leader decision)
No push of upstream's tags into the fork repo. The gate fetches them itself:
check-changed.mjs: the unit step starts withfetch-upstream-release-tags.mjs --if-missing(unitTestPrelude). That is a no-op on a clone that already has release tags, and upstream is not contacted. The MacBook and the Dell orca gate both runcheck:changed.check-changed-unit-prelude.test.mjs(the step comes first) and two--if-missingcases (with tags present, a missing upstream does not fail, so it is never contacted). Red first, green now.check-changedfetched 1,109 tags itself and passed 44/44, including the unit step.