Skip to content

Stop tracking Phive PHARs and cache them in CI - #1168

Merged
jeromegamez merged 2 commits into
8.xfrom
gitignore-phive-phars
Dec 1, 2026
Merged

jeromegamez merged 2 commits into
8.xfrom
gitignore-phive-phars

Conversation

@jeromegamez

Copy link
Copy Markdown
Member

Downloaded Phive PHARs (phpunit, php-cs-fixer, composer-normalize) and generated tool symlinks were previously committed, adding several megabytes of binary blobs to git history on every tool update.

This stops tracking and ignores those PHARs and symlinks while keeping tools/phive and .phive/phars.xml tracked, narrows .gitattributes binary marking to /tools/phive, installs and caches the PHARs in CI jobs that invoke them (lint, tests, emulator-tests, code-coverage, and secure-tests), and invokes PHPStan and Rector directly from their Composer vendor directories in CI.

Downloaded Phive PHARs (phpunit, php-cs-fixer, composer-normalize) and generated tool symlinks were previously committed, adding several megabytes of binary blobs to git history on every tool update.

Untrack and ignore those PHARs and symlinks while keeping tools/phive and .phive/phars.xml tracked, narrow .gitattributes binary marking to /tools/phive, install and cache the PHARs in CI jobs that invoke them, and invoke PHPStan and Rector directly from their Composer vendor directories in CI.
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff            @@
##                8.x    #1168   +/-   ##
=========================================
  Coverage     89.16%   89.16%           
  Complexity     1520     1520           
=========================================
  Files           157      157           
  Lines          4256     4256           
=========================================
  Hits           3795     3795           
  Misses          461      461           
Flag Coverage Δ Complexity Δ *Carryforward flag
emulator 40.91% <ø> (ø) 1520.00 <ø> (ø)
integration 74.28% <ø> (ø) 1520.00 <ø> (ø) Carriedforward from 0b08e29
unit 51.11% <ø> (ø) 1520.00 <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Pass GITHUB_AUTH_TOKEN to Phive installation steps so GitHub API release lookups do not hit unauthenticated rate limits on shared runners.
@jeromegamez
jeromegamez merged commit c5b530d into 8.x Dec 1, 2026
29 checks passed
@jeromegamez
jeromegamez deleted the gitignore-phive-phars branch December 1, 2026 21:11
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.

1 participant