composer job fails with 503 due to Playwright browsers included in artifact upload
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3582338. -->
Reported by: [mglaman](https://www.drupal.org/user/2416470)
Related to !824
>>>
<h3 id="overview">Overview</h3>
<p>The `composer` CI job fails intermittently with a 503 error during artifact upload. The error message includes:</p>
<blockquote><p>found 113118 matching artifact files and directories</p></blockquote>
<p>The upstream <code>.composer-base</code> job defines <code>artifacts.paths: [.]</code>, which uploads the entire project directory. Canvas's default cache configuration pulls <code>.cache/</code> into every job, including <code>.cache/ms-playwright</code>, which contains the Playwright browser binaries (~113K files). When the <code>composer</code> job finishes, it attempts to upload those browser binaries as part of its artifact, which exceeds what Drupal.org's GitLab instance will accept and returns a 503.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Override the <code>composer</code> and <code>composer (next minor)</code> jobs in <code>.gitlab-ci.yml</code> to exclude <code>.cache/**/*</code> from their artifact uploads. GitLab CI concatenates <code>exclude</code> arrays when merging job definitions from includes, so the existing <code>.git</code> exclusions from the upstream template are preserved — only the new entry is added.</p>
<h3 id="ui-changes">User interface changes</h3>
<p>None.</p>
issue