Skip to content

cross-version: baseline never newer than the checkout + fetch upstream release tags (orca #48, slice 2) - #50

Merged
nachumi-a2zoperations merged 2 commits into
blowzer/fork-onlyfrom
nachumi-a2zoperations/issue-48-cross-version-tags
Nov 15, 2026
Merged

nachumi-a2zoperations merged 2 commits into
blowzer/fork-onlyfrom
nachumi-a2zoperations/issue-48-cross-version-tags

Conversation

@nachumi-a2zoperations

@nachumi-a2zoperations nachumi-a2zoperations commented Nov 15, 2026 •

Copy link
Copy Markdown

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/orca carries 0 tags; upstream has 1,109 v* tags. So every clone of the fork failed with "found no stable desktop release tags" or "could not resolve ref vX.Y.Z".

  • Fetching only the tags in the fork's own history is not enough: many pinned releases sit on upstream release branches. Tried locally: with the 802 ancestor tags only, 33 tests still fail.

2. Once the tags are present, the baseline is wrong. "Newest stable release" picked upstream's v1.4.259, but the fork is 1.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 own package.json version (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's v* 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 only v* tags, including one on a release branch the clone lacks; it is idempotent; a bad upstream fails loudly.
  • This clone after the script (0 → 1,109 tags): the 42 cross-version files + the new test, 167 passed, 0 failed (1 skipped). Before: all 42 red.
  • Preflight 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 with fetch-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 run check:changed.
  • Tests: check-changed-unit-prelude.test.mjs (the step comes first) and two --if-missing cases (with tags present, a missing upstream does not fail, so it is never contacted). Red first, green now.
  • Proof, no hand step: on this clone with 0 tags, check-changed fetched 1,109 tags itself and passed 44/44, including the unit step.

…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
@nachumi-a2zoperations
nachumi-a2zoperations merged commit 3151a1a into blowzer/fork-only Nov 15, 2026
2 checks passed
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