Repository navigation
Conversation
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
cloud/dev/scripts/relay-deploy-workflow-argv.test.mjs: 1
135-146: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winModel the
preservefloor variant.The staging workflow omits
floor_argswhenmin-instancesispreserve, butargvVariantsalways expands the populated floor array. The assertion therefore excludes the default staging invocation and checks only invocations with--min-instances. Generate both omitted and present floor variants, using the reachable0and2values. Do not require--min-instancesfor every variant.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
54685fbc-45e0-46a0-9ee0-8a803d48245a
📒 Files selected for processing: 2
cloud/dev/scripts/relay-deploy-workflow-argv.test.mjscloud/package.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
|
Closing as obsolete. The test this PR fixes (cloud/dev/scripts/relay-deploy-workflow-argv.test.mjs) was removed from main in #31792 (307f0cd), when Relay deployment configuration moved into private cloud operations. cloud/package.json on main no longer has the per-file pretest/test lists, so there is nothing left to change. Thanks for the careful investigation. |
ELI5
The cloud's CI ran a hand-typed list of 80 test files. Two newer files were never added, so they never ran, and one of them had been failing for days without anyone noticing. Now CI runs every test file in those folders by pattern, so a new file can't be left out, and the failing test is fixed.
What Changed
cloud/package.jsonnamed 80 test files, 22 inpretestand 58 intest. A new file only ran if someone added it to one of those lists.relay-deploy-workflow-argv.test.mjsandrelay-live-cell-image-overlay.test.mjswere never added.testispnpm -r test && node --test "dev/scripts/**/*.test.mjs" "../.github/actions/cloud-sql-rollout-lease/*.test.mjs". The patterns match the same 80 files plus the two that were missing. Node expands the quoted patterns itself, so the shell doesn't matter. Cloud Verify uses Node 24, andcloud'senginesrequires 24 or newer.pretestis folded intotest: no file pattern separates the 22pretestfiles from the other 58, so a separate step would still need a hand-written list. Nothing I found needs those 22 to run before the workspace tests. The split dates from the cloud import (chore(cloud): add the relay fence broker, ops console, Terraform root, scripts, and 24 cloud-* workflows #18413). They now run afterpnpm -r test. That's also whenrelay-load-control-peer.test.mjsgets the@orca-cloud/relay-contractbuild it needs, fromapps/relay's ownpretest, which is unchanged.identity_args,shape_argsandtopology_args, are mutually exclusive by its guard step. Merging them built a call the workflow can never make, anddeploy-relay-blue-green.mjscorrectly refused it. The test now checks the call with none of the three and with each one alone. Arrays outside that set, such asfloor_args, are always included. A new case pins that staging produces exactly those four command lines.Why
Details are in #28774. A pattern can't silently miss a new file. The repo already lists this as a follow-up in
cloud/docs/relay-improvement-checklist-2026-09.md:45.Alternatives considered:
deploy-relay-blue-green.mjsaccept shape together with identity: that would be wrong. The staging guard forbids the pair on purpose, and the script is right to refuse it. The test was the thing that was wrong.pretestas a second pattern: no pattern separates the two groups.If the old run-these-first order was intentional, let me know and I'll restore a separate step.
Linked Issue
Fixes #28774
Visual Proof
N/A. This changes the cloud test command and one test; there's no UI or app behavior change.
Testing
Before, on
main: running the two unlisted files gives 9 tests: 8 pass, and the argv test fails with--shape-baseline-revision cannot combine with a runtime identity bootstrap. The argv test passes on the commit before fix(relay): director reaches Cloud SQL through a proxy sidecar (staging), adoptable deploy shape, event-loop stall alert #27406 and fails from fix(relay): director reaches Cloud SQL through a proxy sidecar (staging), adoptable deploy shape, event-loop stall alert #27406 on.After: the argv test passes (4 tests, including the new one), and
relay-live-cell-image-overlay.test.mjspasses (6 tests).File coverage: I compared the files the patterns match with the old lists. They match the old 80 plus the 2 missing files, with nothing dropped.
Full pattern run, locally: every file passes except
relay-load-control-peer.test.mjs, which needscloud/node_modulesand the built@orca-cloud/relay-contract. I couldn't install the cloud workspace here. That file was already in the old list and is unchanged. In CI,pnpm -r testbuilds what it needs first.Not run locally:
pnpm testincloud/end to end, because it needspnpm installthere. Cloud Verify runs it on this PR, sincecloud/**is in its path filter.Lint: the repo's
oxlintandoxfmtignorecloud/**, so I matched the surrounding style by hand.Platforms: Linux only. Cloud Verify runs on
ubuntu-22.04.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Written with Claude Code (Claude Opus 5.5).
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)