mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2784] [MERGED] Changed to urandom instead of potentially conflicting RANDOM environment variable #2787
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#2787
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/2784
Author: @ggtakec
Created: 1/11/2026
Status: ✅ Merged
Merged: 1/12/2026
Merged by: @gaul
Base:
master← Head:improve/testfile📝 Commits (1)
c4c1d39Changed to urandom instead of potentially conflicting RANDOM environment variable📊 Changes
1 file changed (+12 additions, -5 deletions)
View changed files
📝
test/test-utils.sh(+12 -5)📄 Description
Relevant Issue (if applicable)
#2782
Details
Recently, we've been experiencing a lot of failures in GHA runs, such as
test_update_time_touchandtest_update_time_mv, etc.I discovered that this was due to conflicting
RANDOMenvironment variables.Surprisingly(or perhaps not surprisingly), conflicts with
RANDOMenvironment variables seem to be occurring more frequently than expected.For example, in the
test_update_time_touchtest, the following line failed because the stat for the${TEST_TEXT_FILE}file could not be obtained:Below is the actual test log(only the relevant part is excerpted):
This result means the same test file name was used in both
test_hardlinkandtest_update_time_append.As a result, the target file was accumulated in the
NegativeCacheduring the earliertest_hardlinkprocess, and the file could not be detected in the next test.To fix this, I increased the number of additional characters(16bit to 32bit) added to the file name.
(I wanted to use
/dev/urandom, but when we did this, the test would not start, and the reason for this was unknown. Therefore, I used$RANDOMto double the number of characters.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.