Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: prevent build collision #2457

Merged

Conversation

BobbieGoede
Copy link
Collaborator

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Our changes to @nuxt/test-utils disabled the random numbered subdirectory buildDir for tests, this can cause issues when test threads are enabled (which I did in #2452).

This PR changes the behavior to set the buildDir to a subdirectory based on the test filenames, this should make the tests less flaky. It seems the tests run in a random order, so it may be possible that tests failed as they clear and overwrite the build files of other tests when using the same fixtures.

Possibly related to test failures in #2446

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@BobbieGoede BobbieGoede requested a review from kazupon September 30, 2023 13:48
@BobbieGoede BobbieGoede self-assigned this Sep 30, 2023
@BobbieGoede BobbieGoede force-pushed the test/prevent-build-collision branch from 17b0de5 to 401a1e6 Compare September 30, 2023 13:51
@BobbieGoede BobbieGoede marked this pull request as draft September 30, 2023 14:11
@BobbieGoede BobbieGoede force-pushed the test/prevent-build-collision branch from 401a1e6 to 5fb8cf1 Compare September 30, 2023 14:22
@BobbieGoede BobbieGoede marked this pull request as ready for review September 30, 2023 14:22
@BobbieGoede BobbieGoede mentioned this pull request Sep 30, 2023
7 tasks
@BobbieGoede BobbieGoede removed the request for review from kazupon October 1, 2023 16:35
@BobbieGoede BobbieGoede merged commit 80a70f7 into nuxt-modules:next Oct 1, 2023
DarthGigi pushed a commit to DarthGigi/i18n that referenced this pull request Apr 16, 2024
* test: prevent build collision

* test: include directories in test `buildDir`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant