[random test failure] ScaffoldUpgradeTest fails intermittently

Created on 11 July 2025, about 20 hours ago

Problem/Motivation

Example on https://git.drupalcode.org/project/drupal/-/jobs/5840069/viewer#L14999

  
    Scaffold Upgrade (Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldUpgrade)
     ✘ Scaffold upgrade
       ┐
       ├ Failed asserting that Binary String: 0x2e2f636f6d706f7365722e6a736f6e20686173206265656e20757064617465640a52756e6e696e6720636f6d706f736572207570646174652064727570616c2f636f72652d636f6d706f7365722d73636166666f6c640a4c6f6164696e6720636f6d706f736572207265706f7369746f726965732077697468207061636b61676520696e666f726d6174696f6e0a0808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808082020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020200808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808085570646174696e6720646570656e64656e636965730a4c6f636b2066696c65206f7065726174696f6e733a203020696e7374616c6c732c2031207570646174652c20302072656d6f76616c730a20202d20557067726164696e672064727570616c2f636f72652d636f6d706f7365722d73636166666f6c642028392e352e30203d3e2039392e39392e3939290a57726974696e67206c6f636b2066696c650a496e7374616c6c696e6720646570656e64656e636965732066726f6d206c6f636b2066696c652028696e636c7564696e6720726571756972652d646576290a5061636b616765206f7065726174696f6e733a203020696e7374616c6c732c2031207570646174652c20302072656d6f76616c730a20202d20557067726164696e672064727570616c2f636f72652d636f6d706f7365722d73636166666f6c642028392e352e30203d3e2039392e39392e3939293a20436865636b696e67206f757420313961636532616135300a47656e65726174696e67206175746f6c6f61642066696c65730a4e6f2073656375726974792076756c6e65726162696c6974792061647669736f7269657320666f756e642e0a [ASCII](length: 738) contains "Installing drupal/core-composer-scaffold (99.99.99)" [ASCII](length: 51).
       │
       │ /builds/project/drupal/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php:91
       ┴

Quoting longwave from slack:

that hex string is

./composer.json has been updated
Running composer update drupal/core-composer-scaffold
Loading composer repositories with package information
                                                      Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading drupal/core-composer-scaffold (9.5.0 => 99.99.99)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Upgrading drupal/core-composer-scaffold (9.5.0 => 99.99.99): Checking out 19ace2aa50
Generating autoload files
No security vulnerability advisories found.

so it is upgrading instead of installing fresh? somehow composer.json already existed with the 9.5.0 version?

I wonder if this is a collision in FixturesBase::tmpDir().

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

composer

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024