Repository navigation
test(cross-version): read isStructuredTab from the shared module the newest release defines it in - #30000
Conversation
…newest release defines it in
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1ac9bca1-a621-44bd-947b-946c10490c8d
📒 Files selected for processing: 1
tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
| // Why: releases from v1.4.228 define it here; the renderer module only imports it. | ||
| importReleaseCheckoutModule(checkout, 'src/shared/structured-agent-session-tab.ts'), |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🌐 Web query:
site:github.com/stablyai/orca v1.4.227 "structured-agent-session-tab" "isStructuredTab"
💡 Result:
I couldn’t verify a match for **`structured-agent-session-tab`** or **`isStructuredTab`** in Orca **v1.4.227**: the exact GitHub search returned no results. The available release listing confirms v1.4.227 exists, but doesn’t establish whether either string is in its source. ([newreleases.io](https://newreleases.io/project/github/stablyai/orca/release/v1.4.227?utm_source=openai))
The closest relevant source notes that the structured agent-session compatibility tests **do not cover the session-tab sync channel**—so it doesn’t answer whether these identifiers exist in that release. ([github.com](https://github.com/stablyai/orca/blob/main/docs/reference/remote-wire-compatibility.md?utm_source=openai))
Citations:
- 1: https://newreleases.io/project/github/stablyai/orca/release/v1.4.227?utm_source=openai
- 2: https://github.com/stablyai/orca/blob/main/docs/reference/remote-wire-compatibility.md?utm_source=openai
🏁 Script executed:
rg -n 'ORCA_CROSS_VERSION_BASELINE_REF|cross-version-registered-agents.unit.test' .github tests package.json config
sed -n '45,90p' tests/e2e/cross-version-wire/release-checkout.tsRepository: stablyai/orca
Length of output: 2072
🏁 Script executed:
set -u
printf '%s\n' '--- changed hunk ---'
git diff 77c511b316373d6aa4cf3a25066ed8e66fadf771 a830305ce2d8d80ccb9493eed7f1c84ee5d538b7 -- tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts
printf '%s\n' '--- test import block ---'
nl -ba tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts | sed -n '70,112p'
printf '%s\n' '--- baseline resolver and callers ---'
nl -ba tests/e2e/cross-version-wire/release-checkout.ts | sed -n '1,120p'
rg -n -F --glob '*.{yml,yaml,json,jsonc,ts,js,mjs,md}' -e 'ORCA_CROSS_VERSION_BASELINE_REF' -e 'cross-version-wire' -e 'resolveBaselineReleaseRef' .github tests config package.json || test "$?" -eq 1
printf '%s\n' '--- local refs ---'
git tag --list 'v1.4.22[67-9]' || true
git show-ref | grep -E 'v1\.4\.22[67-9]$' || true
printf '%s\n' '--- public tag resolution ---'
git ls-remote https://github.com/stablyai/orca.git 'refs/tags/v1.4.227' 'refs/tags/v1.4.227^{}' || true
printf '%s\n' '--- public v1.4.227 helper sources ---'
for path in src/shared/structured-agent-session-tab.ts src/renderer/structured-agent-session-tabs.ts; do
url="https://raw.githubusercontent.com/stablyai/orca/v1.4.227/$path"
echo "### $url"
curl -L --fail --silent --show-error "$url" | nl -ba | sed -n '1,220p' || true
done
printf '%s\n' '--- current source declaration ---'
rg -n -F --glob '*.ts' -e 'export function isStructuredTab' -e 'isStructuredTab' src/shared src/renderer | sed -n '1,100p'Repository: stablyai/orca
Length of output: 27887
🏁 Script executed:
set -u
printf '%s\n' '--- exact v1.4.227 old renderer module ---'
url='https://raw.githubusercontent.com/stablyai/orca/v1.4.227/src/renderer/src/components/native-chat/structured-agent-session-tabs.ts'
curl -L --fail --silent --show-error "$url" | nl -ba | sed -n '1,180p'
printf '%s\n' '--- v1.4.227 source tree paths ---'
curl -L --fail --silent --show-error 'https://api.github.com/repos/stablyai/orca/git/trees/f51e82c4c26745f6a15e215e4391f533327697e2?recursive=1' |
python3 -c 'import json,sys; d=json.load(sys.stdin); print("\n".join(x["path"] for x in d.get("tree",[]) if "structured-agent" in x["path"] or "native-chat" in x["path"]))' | sed -n '1,120p'
printf '%s\n' '--- cross-version workflow ---'
nl -ba .github/workflows/pr.yml | sed -n '995,1060p'
printf '%s\n' '--- baseline contract text ---'
nl -ba config/reliability-gates.jsonc | sed -n '18890,18915p'
printf '%s\n' '--- stable tag selection ---'
nl -ba config/scripts/stable-release-tags.mjs | sed -n '1,180p'Repository: stablyai/orca
Length of output: 16911
🏁 Script executed:
set -u
printf '%s\n' '--- release checkout import helper ---'
rg -n -F -- 'importReleaseCheckoutModule' tests/e2e/cross-version-wire
nl -ba tests/e2e/cross-version-wire/release-checkout.ts | sed -n '114,190p'
printf '%s\n' '--- existing module path fallback patterns ---'
rg -n -F --glob '*.ts' -e 'structured-agent-session-tabs.ts' -e 'structured-agent-session-tab.ts' -e 'access(' -e 'existsSync' tests/e2e/cross-version-wire | sed -n '1,180p'Repository: stablyai/orca
Length of output: 29721
Support pre-move baseline refs in the helper import.
When ORCA_CROSS_VERSION_BASELINE_REF=v1.4.227, the test imports a file that does not exist. v1.4.227 exports isStructuredTab from src/renderer/src/components/native-chat/structured-agent-session-tabs.ts. The failed import occurs in beforeAll, before the wire assertions. Select the module path based on which file exists in the baseline checkout.
Suggested fix
+import { existsSync } from 'node:fs'
+import { join } from 'node:path'
@@
- // Why: releases from v1.4.228 define it here; the renderer module only imports it.
- importReleaseCheckoutModule(checkout, 'src/shared/structured-agent-session-tab.ts'),
+ importReleaseCheckoutModule(
+ checkout,
+ existsSync(join(checkout.root, 'src/shared/structured-agent-session-tab.ts'))
+ ? 'src/shared/structured-agent-session-tab.ts'
+ : 'src/renderer/src/components/native-chat/structured-agent-session-tabs.ts'
+ ),…ecycle-codex-held Takes main's cross-version harness fix (#30000) in place of this branch's copy.
ELI5
A CI check that pairs this build against the newest published release started failing on every PR once v1.4.228 and v1.4.229 were tagged. The test was looking for a helper in a file the new release no longer defines it in. This points the test at the file where that helper now lives.
What Changed
cross version wire compatibilityjob fails on every PR with "the baseline release exports no isStructuredTab" intests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts. Unrelated PRs fail with the same error (for example run 39010373480 and run 39010113071).isStructuredTabfromsrc/renderer/src/components/native-chat/structured-agent-session-tabs.tsintosrc/shared/structured-agent-session-tab.ts. The renderer module now only imports it. The test loads the helper from the newest stable release tag. That tag moved from v1.4.227 to v1.4.228 and later, which include the move, so the export lookup found nothing.src/shared/structured-agent-session-tab.tsin the baseline checkout. Every release from v1.4.228 on defines it there.No product code changes.
Why
The test always pairs against the newest stable release, so it only needs to read the newest location. Keeping a fallback to the old renderer path would serve only a baseline pinned by hand to v1.4.227 or older.
Linked Issue
None. This repairs main's CI.
Visual Proof
N/A: test-only change with no UI effect.
Testing
The fixed test is the change. CI's cross-version wire job on this PR runs it against v1.4.229. I confirmed with
git showthat v1.4.228 and v1.4.229 exportisStructuredTabfrom the shared file, and that v1.4.227 does not have it.Review
Author: @BrennanKB5