Skip to content

test: change to explicitly compiling dbcleaner on posix#20206

Merged
spikecurtis merged 1 commit into
mainfrom
spike/internal-1026-compile-cleaner-on-posix
Oct 8, 2025
Merged

test: change to explicitly compiling dbcleaner on posix#20206
spikecurtis merged 1 commit into
mainfrom
spike/internal-1026-compile-cleaner-on-posix

Conversation

@spikecurtis
Copy link
Copy Markdown
Contributor

@spikecurtis spikecurtis commented Oct 8, 2025

relates to: coder/internal#1026

On POSIX systems (macOS and Linux) we compile the dbcleaner binary into a temp directory. This allows us to explicitly separate the compilation step and report the time it takes. We suspect this might be a contributing factor in the above linked flakes we see on macOS.

This doesn't work on Windows because Go tests clean up the temp directory at the end of the test and the dbcleaner binary will still be executing. On Windows you cannot delete a file being executed nor the directory. However, we are not seeing any flakes on Windows so the old behavior seems to be OK.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@spikecurtis spikecurtis marked this pull request as ready for review October 8, 2025 08:43
@spikecurtis spikecurtis merged commit e2076be into main Oct 8, 2025
32 checks passed
@spikecurtis spikecurtis deleted the spike/internal-1026-compile-cleaner-on-posix branch October 8, 2025 12:18
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants