Skip to content

Log smoke-all cleanup only on actual file removal#14721

Open
cderv wants to merge 2 commits into
mainfrom
fix/eliminate-spurious-cleaning-up-log-noise-in-smoke-all-teardowns
Open

Log smoke-all cleanup only on actual file removal#14721
cderv wants to merge 2 commits into
mainfrom
fix/eliminate-spurious-cleaning-up-log-noise-in-smoke-all-teardowns

Conversation

@cderv

@cderv cderv commented Jul 23, 2026

Copy link
Copy Markdown
Member

The smoke-all test harness registers cleanup files in a module-global list that every render teardown sweeps. The Cleaning up ... log line sat outside the existence check, so every teardown printed a line for each registered file whether or not it existed in that teardown's scope. With ~10 registered files across ~1600 teardowns, a full serial run emitted ~16k such lines, almost all describing removals that never happened.

Moving the log inside the safeExistsSync branch prints it only when a file is actually removed. Same files removed as before; only log frequency changes.

postRenderCleanupFiles is a module-global list swept by every render
teardown. With the log statement outside the existence check, every
teardown printed a "Cleaning up" line for each registered file whether
or not it existed in that teardown's scope. Across a full serial run
(~10 registered files x ~1600 teardowns) this emitted ~16k lines,
almost all describing removals that never happened. Moving the log
inside the safeExistsSync branch prints it only when a file is actually
removed. Same files removed as before; only log frequency changes.
@posit-snyk-bot

posit-snyk-bot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants