Skip to content

Fix test failing because of concurrent compilation - #3031

Merged
jonatanklosko merged 1 commit into
mainfrom
jk-tests
Jul 12, 2025
Merged

Fix test failing because of concurrent compilation#3031
jonatanklosko merged 1 commit into
mainfrom
jk-tests

Conversation

@jonatanklosko

Copy link
Copy Markdown
Member

Currently we remove Livebook storage file in config/test.exs, so that it is fresh for every tests run and happens before the app boots.

The issue with this approach is that while the tests are running, a concurrent compilation removes the files and makes all the tests fail. Most commonly it happens when you save a file during tests run, which causes the language server to recompile.

Doing this in test_helpers.exs is too late because the app is started, and the startup uses the storage. I think a reasonable middle ground is doing it conditionally on Application.start.

@jonatanklosko
jonatanklosko merged commit 9a4fcc8 into main Jul 12, 2025
4 checks passed
@jonatanklosko
jonatanklosko deleted the jk-tests branch July 12, 2025 10:57
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