Repository navigation
test(forge): skip entries removed mid-walk in the owner sentinel scan (RIG-5408) - #2289
Merged
Merged
Conversation
… (RIG-5408) The chokepoint scan walks go/ while other packages' tests create and delete temp dirs there; a vanished entry failed the walk with ENOENT. Skip fs.ErrNotExist, with a regression test that removes a listed dir and file mid-walk. Co-authored-by: Matt Wilkinson <matt@rigel.build>
|
😎 This pull request was merged. |
|
Compass engineering docs preview: https://compass-forge-rig-5408-senti.compass-eng-docs.pages.dev Deployed from |
rigel-mintaka
marked this pull request as ready for review
October 13, 2026 14:44
Contributor
Author
Review result
Findings checked
|
mattwilkinsonn
deleted the
compass-forge/rig-5408-sentinel-walk-enoent
branch
October 15, 2026 01:57
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
Fixes RIG-5408.
TestOwnerSentinelSingleChokepointwalksgo/. Meanwhileguestd'sTestExecResolvesRelativePATHFromWorkdircreates and deletesguest-relative-path-*inside the source tree. If the walk lists that dir and then opens it after deletion, it fails with ENOENT (seen on #2285, run 38407100289).sentinelFilesand skipsfs.ErrNotExist, both from WalkDir and from the file read. The scan only checks non-test.gofiles, so a vanished entry never matters.TestSentinelFilesSkipsEntriesRemovedMidWalk: deletes a listed directory and a listed file during the walk.Test-only change.
Tests
sentinelFiles: open …/b: no such file or directory.-count=20). The fullgo/internal/forgepackage passes.gofmt,go vet,golangci-lint(forge): clean.