Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Dec 26, 2025

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.

@fmeum fmeum force-pushed the patch-42 branch 2 times, most recently from 8f2d9c3 to 1c15b83 Compare December 27, 2025 10:05
@fmeum fmeum requested a review from Copilot December 27, 2025 10:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@fmeum fmeum changed the title Enable RewindingTest on Windows Don't keep the journal of a PersistentMap open Dec 27, 2025
@fmeum fmeum force-pushed the patch-42 branch 3 times, most recently from e657af4 to ce681c4 Compare December 28, 2025 22:31
@fmeum fmeum marked this pull request as ready for review December 29, 2025 13:57
@fmeum fmeum requested a review from justinhorvitz December 29, 2025 13:57
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Dec 29, 2025
@iancha1992 iancha1992 added the team-Performance Issues for Performance teams label Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Performance Issues for Performance teams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants