Repository navigation
fix: restore green CI (make-node ops in FSIndex + journal; RustFS replaces MinIO) - #26
Merged
Merged
Conversation
#11 switched the FUSE layer to Index.MakeFile/MakeDir/MakeSymlink but did not add them to the FSIndex interface, so main stopped compiling (go vet / go build fail in internal/fuse). Add them to FSIndex. JournaledIndex embeds *index.Index, so without explicit wrappers it would satisfy the interface by promotion and silently skip the journal. Add wrappers that record the same CreateInode + AddDirEntry (+ SetSymlink) ops the old two-step create path recorded, so edit-log replay is unchanged. A failed create (ErrExist) records nothing. Add a test that drives the new methods through JournaledIndex and replays the journal into a fresh index. Co-authored-by: openhands <openhands@all-hands.dev>
minio/minio is no longer published on Docker Hub (the community repo is archived and source-only), so the "Start MinIO" CI step fails at docker run and go test never runs. Use rustfs/rustfs (Apache-2.0, S3-compatible, pinned to 1.0.6) with the same credentials and port. The readiness probe moves to RustFS's /health endpoint. No test code changes; all TestS3* integration tests pass against it. Update the run instructions in s3_test.go and the README to match. Co-authored-by: openhands <openhands@all-hands.dev>
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.
mainis red for two independent reasons. This PR fixes both so CI can go green again.1.
maindoesn't compile#11 changed
internal/fuse/fs.goto create nodes withIndex.MakeFile/MakeDir/MakeSymlink, but never added them to theFSIndexinterface:#11 was written before the edit-log work (#21) introduced
FSIndex, and merged ontomainwithout being rebuilt on it.Adding the methods to
FSIndexalone would compile, which is the trap:JournaledIndexembeds*index.Index, so it would satisfy the interface by method promotion and silently stop journaling every create, mkdir and symlink. The edit log would then miss them and as-of replay would be wrong.So
JournaledIndexgets explicit wrappers. Each records the same ops the old two-step path recorded, in the same order, so replay is unchanged:MakeFile/MakeDirCreateInode(nlink 0),AddDirEntryMakeSymlinkCreateInode(nlink 0),AddDirEntry,SetSymlinkCreateInodeis journaled with nlink 0 because replay'sAddDirEntryis what links the inode. A failed create (ErrExist) records nothing.TestJournaledIndexMakeNodeOpsReplayToLiveStatedrives the three methods throughJournaledIndex, checks 7 ops are journaled and that a duplicate create adds none, then replays the journal into a fresh index and compares lookups, inode type/nlink/mode and the symlink target against the live index. It fails (journal length 0, want 7) if the wrappers are removed.2. CI can't start its S3 server
minio/miniois no longer published on Docker Hub (the community repo is archived and source-only), so the "Start MinIO" step fails atdocker run(pull access denied) andgo testnever runs. This was hidden whilego vetwas failing first..github/workflows/ci.ymlnow startsrustfs/rustfs:1.0.6(Apache-2.0, S3-compatible) with the same credentials and port, and probes RustFS's/healthendpoint for readiness. No test code changes: allTestS3*integration tests pass against it. The run instructions ins3_test.goand the README are updated to match.Verification
go build ./...,go vet ./...andgo test -race -count=1 ./...pass, locally and in CI on this PR. I also ran the exact CI "Start RustFS" step locally and confirmed all 7TestS3*tests pass against it.FUSEmount tests skip without/dev/fuse, as before.This PR was created by an AI agent (OpenHands) on behalf of @tofarr.