Commit 0ac5a7c
test(e2e): assert the run-plan cloud check wiring in the support lane (#9493)
## Summary
The live registry-targets test asserted that a run plan's
`e2eCloudExperimentalChecks` equals
`cloudExperimentalChecksForOnboarding(onboarding)` — the same function
on the same input that `buildLiveTargetRunPlan` used to produce the
field. The comparison could not fail, and the wiring in
`test/e2e/live/run-plan.ts` was covered nowhere.
This removes the tautology from the live lane and asserts the real
wiring in `e2e-support`.
## Related Issue
Fixes #9492
## Changes
- `test/e2e/live/registry-targets.test.ts` — drop the self-comparing
assertion and the vacuous existence check that followed it (25 of 26
targets carry an empty list, so it proved nothing).
- `test/e2e/support/e2e-live-registry-discovery.test.ts` — assert that a
target whose onboarding declares cloud experimental checks produces a
run plan carrying them, and that one without them does not.
Net −3 lines.
## Why the support lane
`AGENTS.md` (E2E Selection and Authoring) says deterministic planner,
registry and fixture logic belongs in unit, integration,
package-contract or `e2e-support` tests rather than a live cloud run.
This is deterministic planner logic, so the live lane was paying cloud
runtime for an assertion that proved nothing.
## Testing
`npx vitest run --project e2e-support
test/e2e/support/e2e-live-registry-discovery.test.ts` → 10 passed.
Negative control, to show the new assertion is not itself vacuous:
replacing the wiring in `run-plan.ts` with
`plan.e2eCloudExperimentalChecks = []` makes it fail (`1 failed | 9
passed`). Restored afterwards. The assertion it replaces passes
unchanged under that same break.
## Type of change
- [x] Test change
Signed-off-by: Udaya Tejas <udayatejas2004@gmail.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Updated cloud check validation to use the shared checks directory
before running plan scripts.
* Removed the onboarding-specific experimental cloud check validation.
* Added end-to-end coverage confirming that deep-agent cloud onboarding
checks are included in generated live target run plans.
* Improved validation of cloud onboarding and registry discovery
behavior across supported scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Documentation Writer Review
- [x] Documentation writer subagent reviewed the completed changes
- Result: `no-docs-needed`
- Evidence: This test-only change replaces a tautological assertion and
changes no user-visible behavior.
- Agent: Pi CLI
<!-- docs-review-head-sha: 5b3cc33 -->
<!-- docs-review-agents-blob-sha:
993bdd8 -->
---------
Signed-off-by: Udaya Tejas <udayatejas2004@gmail.com>
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
Co-authored-by: Carlos Villela <cvillela@nvidia.com>
Co-authored-by: Prekshi Vyas <34834085+prekshivyas@users.noreply.github.com>
Co-authored-by: Apurv Kumaria <akumaria@nvidia.com>1 parent 2c74cbb commit 0ac5a7c
2 files changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 188 | | |
198 | 189 | | |
199 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
0 commit comments