forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: addressed lockfile and tempdir issues #57
Open
0xObsidian
wants to merge
1,557
commits into
megaeth-labs:main
Choose a base branch
from
0xObsidian:0xObsidian/fixed-test-interference-bug
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix: addressed lockfile and tempdir issues #57
0xObsidian
wants to merge
1,557
commits into
megaeth-labs:main
from
0xObsidian:0xObsidian/fixed-test-interference-bug
Conversation
This file contains 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
Co-authored-by: Oliver <[email protected]>
…gmxyz#12570) Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: Federico Gimenez <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: dkathiriya <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: router <[email protected]>
…aradigmxyz#12831) Co-authored-by: Emilia Hane <[email protected]>
…igmxyz#12458) Co-authored-by: Roman Krasiuk <[email protected]> Co-authored-by: Alexey Shekhirin <[email protected]>
Two issues were causing static file test failures: 1. Missing lockfile in test file count 2. Premature cleanup of temporary test directories Bug Description =============== 1. File Count Mismatch: - Tests expected 10 files (9 static files + 1 lockfile) - Only had 9 files because lockfile wasn't created - Led to assertion failures in file count checks 2. Directory Cleanup Race: - TempDir was being dropped too early due to pattern matching: ``` let (static_dir, _) = create_test_static_files_dir(); ``` - Caused test directory to be cleaned up while tests were still running - Worked in isolation but failed in full test suite Reproduction Steps ================== Pull the previous commit and run from project root: ``` make test-unit ``` Fix === - Added lockfile creation before static file operations - Fixed file count assertions - Fixed premature cleanup of test directories Testing the fix =============== Pull ths commit and run the test suite: ``` make test-unit ```
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.
Two issues were causing static file test failures:
lockfile
in test file countBug Description
File Count Mismatch:
Directory Cleanup Race:
Reproduction
Pull the previous commit and run from project root:
Fixes made
Testing the fix
Pull this commit and run the test suite: