Skip to content

#595: accept-lib's tree-snapshot test pins its directory's mtime (ext4's coarse clock) - #596

Merged
SSFSKIM merged 1 commit into
mainfrom
fix/595-accept-lib-mtime
Nov 27, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
fix/595-accept-lib-mtime

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 27, 2026

Copy link
Copy Markdown
Owner

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 expected changed list missed the directory a. On ext4 the kernel takes file times from a coarse clock, so adding a/new straight after a/link usually left a'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. snapshotTree is 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

Residue

None.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T23:05:47.264717Z e195f4c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM enabled auto-merge (squash) November 27, 2026 23:04
@SSFSKIM
SSFSKIM merged commit 0ef5af1 into main Nov 27, 2026
6 checks passed
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

accept-lib's tree-snapshot test fails on Linux ext4, where a directory's mtime often doesn't advance

1 participant