Skip to content

Speculative fix for CI test failure: write atomically (and always clean)#862

Closed
wti wants to merge 1 commit intotwostraws:mainfrom
wti:fix-invalid-lastModified-test
Closed

Speculative fix for CI test failure: write atomically (and always clean)#862
wti wants to merge 1 commit intotwostraws:mainfrom
wti:fix-invalid-lastModified-test

Conversation

@wti
Copy link
Contributor

@wti wti commented Feb 3, 2026

For CI test failure reported in #858 and #861

This fix is a guess; I'm unable to replicate the failure locally.

  • Error is The file “story-with-invalid-lastModified.md” doesn’t exist
  • I assume this is b/c check happens before the file-write is visible. (Although even non-atomic write should result in existing file?)

Also use defer to always clean (avoid false positive from prior file)

This fix is a guess; I'm unable to replicate the failure locally.
- Error is `The file “story-with-invalid-lastModified.md” doesn’t exist`
- I assume this is b/c check happens before the file-write is visible.
  (Although even non-atomic write should result in existing file?)

Also use defer to always clean (avoid false positive from prior file)
@wti
Copy link
Contributor Author

wti commented Feb 3, 2026

Urk! Well, that didn't work...

@wti wti closed this Feb 3, 2026
@wti wti deleted the fix-invalid-lastModified-test branch February 3, 2026 19:14
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.

1 participant

Comments