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: run npm production tests before development mode (23.5) #20951

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

mcollovati
Copy link
Collaborator

If the dev and prod mode test modules are defined in the same folder, the production mode can fail if executed after development mode. This happens because the dev mode npm install background process may still be running when Maven executes the frontend build for prod mode, causing conflicts in the node_modules folder.

This change swaps the execution order of the modules to ensure that prod mode is executed before dev mode.

If the dev and prod mode test modules are defined in the same folder, the
production mode can fail if executed after development mode. This happens
because the dev mode npm install background process may still be running
when Maven executes the frontend build for prod mode, causing conflicts in
the node_modules folder.

This change swaps the execution order of the modules to ensure that prod
mode is executed before dev mode.
Copy link

sonarqubecloud bot commented Feb 6, 2025

Copy link

github-actions bot commented Feb 6, 2025

Test Results

  963 files  ±0    963 suites  ±0   54m 58s ⏱️ + 1m 9s
6 313 tests ±0  6 263 ✅  - 1  50 💤 +1  0 ❌ ±0 
6 573 runs  +1  6 515 ✅ ±0  58 💤 +1  0 ❌ ±0 

Results for commit e7bf935. ± Comparison against base commit 9d9a31d.

@mcollovati mcollovati merged commit 87544b0 into 23.5 Feb 6, 2025
26 checks passed
@mcollovati mcollovati deleted the test/npm-failures branch February 6, 2025 10:09
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.

3 participants