Repository navigation
fix(mutation): keep umask-setting tests out of Stryker's thread pool - #4785
Merged
Merged
Conversation
Setting process.umask throws in a worker thread, so a test that sets it failed Stryker's dry run and stopped every shard of the module before a report. The thread-hostile exclusion now also drops tests that set the umask; tests that only read it stay in scope.
Contributor
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Member
Author
|
This PR is ready at 23ddf84. Its diff matches #4782 line for line, which was reviewed on 0.22: |
thymikee
added a commit
to pcbeingused333/agent-device
that referenced
this pull request
Nov 20, 2026
* origin/main: (70 commits) refactor(apple-runner): one RUNNER_ERROR_CODES row per runner error code with parity/docs gates (callstack#4774) fix(android): require acknowledgements for test IME typing (callstack#4722) feat(scroll): add scroll refresh for pull-to-refresh (callstack#4770) refactor(host-kit): add request Scope and use it for the wait capture deadline (callstack#4794) fix(android): let permission all change nothing on an app that declares no permissions (callstack#4796) fix(cli): replace the CLI session and generated remote config instead of rewriting them in place (callstack#4797) fix(host-kit): accept a group-writable script directory the user owns (callstack#4799) fix(cli): escape control characters at the CLI's stdout and stderr writes (callstack#4778) fix(audit): do not report rows under a persistent bar that scrolling reveals (callstack#4775) fix(daemon): refuse an unsafe state directory before first use (callstack#4783) refactor: settle remaining single-deadline races through settleWithin (callstack#4788) refactor(host-kit): settle deadline races via settleWithin with R87 race ratchet (callstack#4766) fix(android): authenticate and bound persistent snapshot helper sessions (callstack#4729) fix(daemon): bound upload ingress and finalization (callstack#4721) chore(gates): ratchet wire-published reason literals by value (R89) (callstack#4779) feat(audit): evaluate role-less clickable views on Android (callstack#4780) fix(mutation): keep umask-setting tests out of Stryker's thread pool (callstack#4785) feat(audit): report controls that share one accessible name (callstack#4771) fix(contracts): pair open runtime hints with their apply operation (callstack#4754) refactor(daemon): report startup progress over the launch channel instead of marker files (callstack#4777) ...
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
Setting
process.umask(mask)throws in a worker thread, and Stryker's vitest runner runs tests in a thread pool.packages/host-kit/src/internal/script-destination-ancestry.test.tssets the umask, so the dry run failed and every shard of the kernel-errors module stopped before a report. This is the main counterpart of #4782 (0.22).threadHostileTestFilesinscripts/mutation/test-scope.tsalready drops tests that useprocess.chdir(via the CLI capture harness) or start a worker thread. It now also drops tests that set the umask. Tests that only read it (process.umask()) stay in scope. A mutant only an excluded test could kill still shows as a survivor.Validation
23ddf84794on main.pnpm check:affected --run --base origin/main --head 23ddf84794passed: 42 passed, 28 skipped, exact commit, unchanged checkout.scripts/mutation/test-scope.test.tsasserts script-destination-ancestry and atomic-publish (set the umask) are excluded and archive-extraction (only reads it) is not.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.