Repository navigation
build(orcad): a test-only switch-on server template that packaging refuses - #31097
Conversation
…s it build-orcad-template.mjs takes --dark-test-template to let ORCA_LAYOUT_OWNER=main through for test servers; the template and out/orcad carry the switch marker, and packaging refuses a marked template. The e2e template steps build a switch-on server when the workflow runs with layout_owner=main.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
Some of our tests need an Orca server built with an experimental setting turned on. Until now, the step that packages the server refused that setting completely. So in the test run with the setting on, the app had it on but the server it talked to had it off. This PR adds an explicit opt-in that lets test builds turn the setting on for the server too. It also marks those builds so they can never ship in a release.
What Changed
build-orcad-template.mjs --dark-test-templateORCA_LAYOUT_OWNER=main.ORCA_LAYOUT_OWNER_MAINmarker file that the app build leaves:out/orcad, frombuild-orcad.mjs;build-orcad-template.mjs.beforePacknow also refuses a markedout/orcad-template, next toout/mainand the phone page bundle. This mirrors the planned flip-time refusal of an off build.e2e.yml). When the workflow runs withlayout_owner: main, two jobs build their template with the opt-in and check its marker:orca servemode-switch / headless oracle job, which also checks theout/orcadmarker;There is no user-visible change. Release builds and switch-off builds are byte-identical.
Why
Linked Issue
Terminal-layout final design, track H (H1). No issue.
Visual Proof
N/A. Build scripts and CI only.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
New unit tests fail on base and pass on head:
build-orcad-template.test.mjs(three cases):electron-builder-config.test.mjs: refuses to package a marked template.Local builds on macOS of a linux-arm64-glibc template:
ORCA_LAYOUT_OWNER=main is for dark test builds.orcad.js, and a different server version (+6b15effbdce6vs+a48cfb7c0e22).Switch-off inertness: I built a plain template with the base scripts and with the head scripts, and
diff -rshows them identical.pnpm tc,check:code-quality:changed, and the template, packaging, dark-switch, CI-selection and route-contract suites pass.The manual switch-on workflow was not dispatched; that is left to the lead.
Review
Agent skill upstream boundary
Notes
orca servejob still ignoreslayout_ownerand builds a plain template. It has nolayout_ownerinput wiring today, and the switch-on leg doesn't select it.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)