mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #2724] [MERGED] Fixed test_external_modification test for MacOS #2744
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2744
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2724
Author: @ggtakec
Created: 8/30/2025
Status: ✅ Merged
Merged: 9/1/2025
Merged by: @gaul
Base:
master← Head:fix/mac_test_cfs📝 Commits (1)
9a1caeeFixed test_external_modification test for MacOS📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
test/integration-test-main.sh(+7 -0)📄 Description
Relevant Issue (if applicable)
n/a
Details
In a recent CI(GHA) run, the
test_external_modificationtest on macOS often failed.I investigated the cause and have now found it, so I posted this PR.
The cause was a difference in the way
getattrcalls are made from FUSE on macOS and other Linuxs.In the
test_external_modificationtest, after uploading a file, it waits one second(while the file contents are modified by external process) and then reads it.On other Linuxs, there is no
getattrcall after uploading, but on macOS, thegetattrcall is made.The
stat_cache_interval_expire=1option was set for s3fs when the test was run, so if the cache is accessed via agetattrcall within the cache expiration period, the expiration period is extended.For this reason, the
getattrcall is made on macOS, and waiting 1 second will still be within the cache expiration period.To avoid this, added an additional 1-second sleep on macOS.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.