Repository navigation
test(action): share runner resources and completed scan fixtures - #2981
Draft
mldangelo-oai wants to merge 1 commit into
Draft
mldangelo-oai wants to merge 1 commit into
mldangelo-oai wants to merge 1 commit into
Conversation
alandelong-oai
approved these changes
Dec 5, 2026
alandelong-oai
left a comment
Collaborator
There was a problem hiding this comment.
Thanks—no material issues found. The shared fixtures preserve the existing assertions and real artifact-client paths while registering process-state and resource cleanup before later setup can fail.
Validation: full Action validation passed on Node 24.19.0: type checking, all 227 tests with no skips, metadata/docs checks and distribution comparison. This includes the loopback artifact client and native archive-read failure case. Exact-head hosted checks show 15 successes and 11 conditional skips. Native Windows/macOS and unrelated SDK/plugin suites were not repeated.
This branch has not been deployed
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.
Summary
The Action tests could leave a temporary directory behind if Git setup failed or leave a synthetic environment variable set if a child-process assertion failed. Registering teardown when each resource is acquired lets the test harness clean up in both cases.
Changes
The runner and result tests build their simulated CLI response from the copied manifest, findings, coverage and report paths. One loopback fixture records real artifact client requests and serves both accepted and rejected creation responses.
Teardown closes the server and restores the inherited environment and runner exit code before removing temporary directories. The refactor removes 61 lines net.
Testing
On this commit, 227 Action tests passed on Linux. The run also passed SDK and plugin builds, type checks, and formatting.
To exercise artifact creation rejection and archive read failure through the real client, run
npm --prefix github-action test.An earlier Linux comparison on Node 24.22.3 matched test names and the order of 2,171 assertion calls across 15 suites. Separate probes confirmed that the runner and three runtime tests restored process state before injected directory-removal errors, and that the enterprise artifact server closed before the same error.
Risk and rollout
The changes are confined to Action tests. Server teardown uses async disposal under the existing Node 24 requirement. The archive permission case stubs blob upload and skips on Windows or when run as root.
Public disclosure review