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
Random failures on CI related to file rename #9568
Comments
Experiencing the same issue in our gitlab CI. It feels related to composer 2, as the advent of this is when we started seeing these build failures. But so far we've found no real cause as to why this could happen. |
Looks like all of your concurrent jobs using same (mount from host) My setup is opposite to ours:
Also I not quite understand - how you are getting |
Damn, you are right. The initial script that creates those builds that run separately from each other uses the same Composer instance. Before Composer 2, we disabled Composer cache with So the #9568 (comment) is unrelated or it can be mitigated and the fix in #9580 looks good to me to fix race condition in cache writes that I originally reported here. |
* Add patch: "mkdir can fail in \\Drupal\\Core\\Test\\TestRunnerKernel::boot() because of a race condition [#3190859]" * Add patch: file_scan_ignore_directories is ignored in kernel tests [#3190974] * Add patch: copy() can fail in FunctionalTestSetupTrait::prepareSettings() because of a race condition [#3191369] * Add missing custom PHPUnit bootstrap file to CI test runner * Rollback removal of COMPOSER_CACHE_DIR=/dev/null because without that random failures can occur when multiple builds are running in parallel, ex.: composer/composer#9568 (comment) * Instead of killing Composer local caching with COMPOSER_CACHE_DIR=/dev/null introduce a dedicated Composer cache component for every component that consecutive component builds can leverage * Fix random "Undefined index: value" in parallel tests caused by database connection error * Make sure that required database and webserver services are actually able to accept requests before CI starts running integration tests Change-Id: Ie691b8b94ba6d95fadf1699ab4e2eeb86a5b9941
We are running several builds (15-20) at the same time on the same server in parallel as part of our CI workflow. Some builds are randomly failing with the below-described errors. All builds are running in Docker, every build item spins up an isolated environment from the same images. The source code is mounted from the host, but Composer's cache is container only, it is not shared or mounted.
Not sure what other information can I disclose which could be useful to figure out what is failing exactly and why. Does this ring a bell to anybody?
My
composer.json
:N/A
Output of
composer diagnose
:When I run this command:
I get the following output:
The text was updated successfully, but these errors were encountered: