test: make clean staging mode checks portable - #349
Merged
Merged
Conversation
This was referenced Sep 11, 2026
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Problem and value
The clean-staging mode regression fails on Windows because
statreports0666, not the expected Unix0755. Its fixture also depends on Git detecting executable bits from the working tree. This lets the same regression run on Windows while checking that staging follows the Git index, including when its modes differ from the source files.Scope
chmodSynccalls, and retains filesystem mode assertions on POSIX.Stability impact
Tests run
Against
2ead014, commands below run fromarchify/:node --test --test-name-pattern='clean staging preserves index modes' test/clean-skill-staging.test.mjsfailed before the change with438 !== 493.node --test test/clean-skill-staging.test.mjs— 7 passed, 0 failed, 1 existing file-symlink permission skip.node --test test/clean-skill-staging.test.mjs— 8 passed, 0 failed, 0 skipped. The focused mode test also passes withcore.fileMode=falsesupplied through Git's environment configuration.npm test— 1,018 passed, 2 failed, 31 skipped (1,051 tests). Brand-mark, validator, release-identity and golden checks pass. Both failures are in unchanged update-notifier tests:an empty precheck snapshot cannot start a second concurrent network requestanda last-good notice remains acknowledgeable after the refresh commits a new candidate. Both reproduce together on a pristine2ead014checkout withnode --test --test-name-pattern='an empty precheck snapshot|a last-good notice remains acknowledgeable' test/update-notifier.test.mjs.git diff --check— passed. Local review found no actionable findings. Remote CI has not yet run on this branch.Visual evidence
Not applicable. This changes a packaging test's fixture and assertions, with no generated diagram or UI changes. Automated browser checks and perceptual visual review are not applicable.
Generated artifacts
None. The changed file is under the repository-only test tree, which the Skill stager excludes. No published input changed, so an archive or Gallery rebuild is unnecessary.
Checklist
npm testinarchify/; full-suite failures are recorded above.Post-Deploy Monitoring & Validation
No additional operational monitoring required: this changes only a repository test. The PR remains draft while upstream CI and review are pending.