Repository navigation
Split main-action tests into focused suites - #11836
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
lpcox
marked this pull request as ready for review
November 19, 2026 17:00
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Because the refactor redistributes security-critical cleanup tests across four Jest environments, duplicates lifecycle setup, and changes conformance selection, CI should verify mock isolation and coverage when run together before approval.
No open issues 🎉
What changed in this PR
This pull request splits the monolithic main-action Jest test suite into focused argument-parsing, workflow, cleanup, and config-artifact suites while preserving existing behavior and updating Cloud Hypervisor conformance CI.
Changes:
- Replaces the monolithic test file with four focused suites.
- Preserves existing mocks, lifecycle hooks, cleanup coverage, and test bodies.
- Updates the enclave conformance workflow to run all four replacement suites.
| File | Description |
|---|---|
| src/commands/main-action.test.ts | Removes the monolithic main-action test suite. |
| src/commands/main-action-workflow.test.ts | Covers workflow execution, runtime setup, diagnostics, and startup-failure behavior. |
| src/commands/main-action-config-artifacts.test.ts | Covers configuration redaction, resolved-config artifacts, and related helper behavior. |
| src/commands/main-action-cleanup.test.ts | Covers cleanup orchestration, teardown ordering, diagnostics, and signal-handling behavior. |
| src/commands/main-action-argument-parsing.test.ts | Covers argument handling, reflection mode, and work-directory selection. |
| .github/workflows/test-cloud-hypervisor-enclaves.yml | Runs the four replacement test suites during Cloud Hypervisor enclave conformance. |
Review effort: Lite (adaptive)
Contributor
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 1,847-line main-action test file mixes argument handling, workflow execution, security-critical cleanup, and config artifacts.