Repository navigation
#595: accept-lib's tree-snapshot test pins its directory's mtime (ext4's coarse clock) - #596
Merged
Merged
Conversation
…re the first snapshot On ext4 the kernel stamps file times from a coarse clock, so adding `a/new` straight after `a/link` often left `a`'s mtime where it was, and the test's expected `changed` list missed `a`. It failed 4 of 12 runs alone at main 1610082 on dc-linux171-1e68. With `a`'s times set to the epoch before the first snapshot, the add has to move them: 30 of 30 runs passed, and the file passes 27 of 27. snapshotTree is unchanged. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
enabled auto-merge (squash)
November 27, 2026 23:04
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
…ne fix, main's M6b, #596, #599) into feat/117-m5; engineVersion 0.3.1 over both sides' engine changes (refs #506) Conflicts, each combined so both sides' behaviour survives: - native/engine/Sources/Engine/Version.swift: feat's 0.3.0 (M5) and the fix's 0.2.2 (#587) become 0.3.1, above both. Its readers (client.mjs MIN_ENGINE_VERSION 0.1.0, doctor, engine-bundle, engine-version-check) read it or compare against 0.1.0; nothing pinned either side's string, so none changed. - src/runtime/launch.mjs nativeEngineFor: feat's R4 minimum at selection (pending, minimumVersion = MIN_MACOS_ENGINE_VERSION, the outdated remedy and its comment) kept; M6b's signature taken (no arch or vendor, Linux has no vendor engine; engineSetting gets platform). - src/services/secret-input.mjs userIntervened: #212's interruption account (interruptionOutcome, `interruption` sets entered and the outcome text) on main's placement `mayShow` ('unplaced' default, 'passwordField'), with INTERVENED.userChangedEntered and MAY_SHOW.passwordField only once entered. sky.mjs had auto-merged to that call. Feat's #212 test asserted the getAXState re-query beside an account that says the secret may be in; it now expects the user's check (ruling 1247 d), and the 1247 (d) sweep gains two branches that carry an account. - README.md CUA_NATIVE_ENGINE: main's Linux text (vendor retired, engine_retired, 0.4.5 or later) with feat's macOS minimum sentence (0.1.0, engine_outdated and its remedy). - tech-debt-tracker.md: both sides' entries. Sminos-Session: cursor235#b93055dd (cua on macbook)
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
test/accept-lib.test.mjs's "a tree snapshot notices added, removed and rewritten entries, and an untouched tree compares equal" failed on Linux about one run in three: its expectedchangedlist missed the directorya. On ext4 the kernel takes file times from a coarse clock, so addinga/newstraight aftera/linkusually lefta's mtime unchanged. A probe on dc-linux171-1e68 found a directory's mtime unchanged after such an add in 192 of 200 tries.The test now sets
a's times to the epoch before its first snapshot, as it already does for the rewritten file, so the add has to move them.snapshotTreeis unchanged, and so is every assertion: the added path, the rewritten file and the untouched tree are each still checked.This is test-only and changes nothing plugin-visible, so there's no version bump.
Closes #595
Validation Evidence
actual: [ 'a/b/file' ]againstexpected: [ 'a', 'a/b/file' ]. On 76bced0 it had failed 8 of 12. The loop is~/.local/share/cua-171/scratch/flake/loop.sh <checkout> <n>.ci-gateby its own selection at e195f4c: GREEN, https://github.com/SSFSKIM/cua/actions/runs/46079247556 (plugin, test-1, test-2).Residue
None.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)