Skip to content

chore: ignore agent/test scratch and untrack generated files - #2863

Open
rubenvdlinde wants to merge 2 commits into
developmentfrom
chore/repo-hygiene
Open

chore: ignore agent/test scratch and untrack generated files#2863
rubenvdlinde wants to merge 2 commits into
developmentfrom
chore/repo-hygiene

Conversation

@rubenvdlinde

@rubenvdlinde rubenvdlinde commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Part of the 2026-08-25 fleet structure audit — ADR-100 Decision 2 (the repository root is a closed set; generated files are never tracked).

Ignore rules added: .stale/,/.e2e-state/ .phpunit.result.cache,test-results/ playwright-report/

Untracked (left on disk; now covered by an ignore rule):

  • .phpunit.result.cache
  • composer-setup.php
  • composer.phar
  • no-admin-idor-findings.log
  • phpstan.phar

.stale/ was missing from all 19 fleet repos. It is the one that matters most operationally: agent scratch accumulating there filled the dev disk once already.

Every rule was verified to actually take effect by exit code (git check-ignore -q), not by reading check-ignore -v output — a !-negation prints as a match while doing the opposite, which is how one repo in this sweep looked covered and was not.

Refs ConductionNL/hydra ADR-100.

Part of the 2026-08-25 fleet structure audit (ADR-100 Decision 2: the
repository root is a closed set; generated files are never tracked).

Ignore rules added: .stale/ /.e2e-state/ .phpunit.result.cache test-results/ playwright-report/

Untracked (kept on disk, now ignored where a rule covers them):
  - .phpunit.result.cache
  - composer-setup.php
  - composer.phar
  - no-admin-idor-findings.log
  - phpstan.phar

`.stale/` was missing from ALL 19 fleet repos and is the one that
matters most operationally: agent scratch there grew unbounded and
filled the dev disk once already.

Refs ConductionNL/hydra ADR-100.
@rubenvdlinde rubenvdlinde changed the title test chore: ignore agent/test scratch and untrack generated files Aug 25, 2026
Untracking composer.phar in the previous commit broke the Newman API suite:
.github/workflows/api-test-coverage.yml ran `php composer.phar install`
inside the nextcloud container, which ships no composer of its own. That is
why the binary was committed in the first place.

Rather than restore it, the workflow now copies the RUNNER's composer into
the container (docker cp "$(command -v composer)") and calls
`composer install`. The runner already has composer — the `composer install`
step earlier in the same job uses it — so this removes the second copy
instead of trading a committed binary for a network download.

`command -v` fails loudly if composer is ever absent, rather than falling
through to a missing binary and reporting the install failure as a test
failure.

A checked-in package-manager binary is the supply-chain shape ADR-100
Decision 2 forbids: never reviewed, never updated alongside the lockfile, and
its provenance is a git history nobody reads.

phpstan.phar, removed in the same sweep, is invoked nowhere — the only
surviving mentions are composer.lock listing it as a package's own file and a
design doc calling it binary noise.
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ 7722475

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-specs
test-l10n
format
check-schema-l10n
composer ✅ 175/175
npm ✅ 545/545
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright
Hydra gates

Quality workflow — 2026-08-25 22:31 UTC

Download the full PDF report from the workflow artifacts.

@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ ca5b36c

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-specs
test-l10n
format
check-schema-l10n
composer ✅ 175/175
npm ✅ 545/545
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright
Hydra gates

Quality workflow — 2026-08-25 22:53 UTC

Download the full PDF report from the workflow artifacts.

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