Don't keep the journal of a PersistentMap open#28108
Don't keep the journal of a PersistentMap open#28108fmeum wants to merge 3 commits intobazelbuild:masterfrom
Conversation
8f2d9c3 to
1c15b83
Compare
There was a problem hiding this comment.
Pull request overview
This pull request enables the RewindingTest to run on Windows by removing the "no_windows" tag. However, it also includes extensive debugging code that appears to have been used for troubleshooting but should not be merged into production.
- Removes the Windows restriction from RewindingTest in the BUILD file
- Adds multiple debug statements (printStackTrace() and System.err.println()) throughout production code
- Includes a minor whitespace fix in ExecutionTool.java
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| src/test/java/com/google/devtools/build/lib/skyframe/rewinding/BUILD | Removes "no_windows" tag to enable test on Windows |
| src/main/java/com/google/devtools/build/lib/util/PersistentMap.java | Adds debug printStackTrace() and System.err.println() statements that should be removed |
| src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java | Adds debug output for interrupt handling and action cache operations, plus minor formatting fix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e657af4 to
ce681c4
Compare
|
@fmeum I'm not sure why, but the rewinding tests are failing after import (see https://buildkite.com/bazel/google-bazel-presubmit/builds/98779). Can you commit a no-op change here to force them to run again? |
|
@bazel-io fork 9.0.0 |
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes #28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 Commit 2be693e Co-authored-by: Fabian Meumertzheim <[email protected]>
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 (cherry picked from commit 2be693e)
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 (cherry picked from commit 2be693e)
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 (cherry picked from commit 2be693e)
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 (cherry picked from commit 2be693e)
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 (cherry picked from commit 2be693e)
This ensures that the journal file is not kept open after a build, which has been observed to cause `RewindingTest` to fail on Windows, which disallows deleting open files (in this case during test case cleanup). Since the journal is written out at most every 3 seconds for all current usages of the `PersistentMap` class, the overhead of the additional `open` is negligible. Also include small tweaks to `RewindingTest` so that it can be enabled on Windows. In particular, the order of `SymlinkAction` and `SourceManifestAction` being rewound doesn't seem to be fixed and can differ on Windows. Closes bazelbuild#28108. PiperOrigin-RevId: 855242645 Change-Id: Ic7434139b290c6b0e2061977f747e890c3c5ece6 (cherry picked from commit 2be693e)
This ensures that the journal file is not kept open after a build, which has been observed to cause
RewindingTestto fail on Windows, which disallows deleting open files (in this case during test case cleanup).Since the journal is written out at most every 3 seconds for all current usages of the
PersistentMapclass, the overhead of the additionalopenis negligible.Also include small tweaks to
RewindingTestso that it can be enabled on Windows. In particular, the order ofSymlinkActionandSourceManifestActionbeing rewound doesn't seem to be fixed and can differ on Windows.