Skip to content

chore: make composer installs resilient to download rate limits - #10795

Merged
paulbalandan merged 1 commit into
codeigniter4:developfrom
paulbalandan:ci-composer-install-resilience
Nov 19, 2026
Merged

paulbalandan merged 1 commit into
codeigniter4:developfrom
paulbalandan:ci-composer-install-resilience

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
CI jobs started failing in composer update with HTTP/2 429 from codeload.github.com when downloading a freshly released phpstan/phpstan.

This adds a composite action, .github/actions/composer-update, and uses it in the workflows that run composer update:

  • It restores the newest Composer cache for the PHP version.
  • It runs composer update up to 3 times, waiting 30s and 60s between attempts.
  • It saves the cache under a key hashed from composer.lock, so a new entry is written only when the resolved dependencies change.

The Psalm results cache accounted for about 7 GB of the 10 GB repository cache quota, because its key changes with every PHP file. It is now restored on every run and saved only on pushes to develop and 4.*.

The composer require sebastian/diff:^5.0 step in the Psalm workflow is removed, since the root composer update already updates utils through its post-autoload-dump script.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan
paulbalandan force-pushed the ci-composer-install-resilience branch from 05d48ea to ae8ebbc Compare November 19, 2026 14:21
@paulbalandan
paulbalandan merged commit b0b38ee into codeigniter4:develop Nov 19, 2026
56 checks passed
@paulbalandan
paulbalandan deleted the ci-composer-install-resilience branch November 19, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants