build(codegen): fix cmd-api-server .jar download race condition - again #3015
Labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
Developer_Experience
Flaky-Test-Automation
Issues related to test stability (which is a long running issue that can never fully be solved)
P3
Priority 3: Medium
Milestone
Description
The .jar download mechanism and the warm-up script has gotten us far but now the cmd-api-server package's interfering with it. Most likely because that package declares the open api generator as a dev dependency on it's own and that is causing it to not use the same installation of the same package from the root node_modules and that's why it ends up re-downloading the .jar file. This is just a theory for now but an initial glance at the log file (attached below) seems to support this theory as does the fact that the past 3 times when I observed this crash on the CI it was always the cmd-api-server package causing the problem instead of it being randomly distributed among the packages like it was before.
2024-02-07T15-54-14.0195638Z-cmd-api-server-codegen-race-condition.ci.test.crash.log
Solution ideas:
--top-level
flag of the yarn CLI to force the usage of the root level node_modules directory's .jar fileAcceptance Criteria
The text was updated successfully, but these errors were encountered: