Skip to content

[TASK] Guard against silently losing a test case - #268

Merged
dkd-kaehm merged 2 commits into
mainfrom
epic/remove-dead-code/PR-1
Sep 1, 2026
Merged

dkd-kaehm merged 2 commits into
mainfrom
epic/remove-dead-code/PR-1

Conversation

@dkd-kaehm

Copy link
Copy Markdown
Contributor

Companion to TYPO3-Solr/ext-solr#4754 and TYPO3-Solr/ext-solrfal#367, and the first
set of the dead-code EPIC.

[TASK] Guard against silently losing a test case

Build/Test/known-tests.txt records every test method of both suites with the
number of cases it contributes — 46 methods / 70 cases — and CI fails when a
recorded method disappears or contributes fewer cases than before. The check itself
lives in EXT:solr and is called out of the installed package, so the record format
stays identical across the EXT:solr family and there is one implementation to
maintain.

The record is a floor, not an inventory: additions never fail it, so a feature
PR needs no update. Only a removal or a rename does, which is exactly the change
that has to be justified in review.

[TASK] Test against the matching EXT:solr branch when upstream has one

The guard needs the script from EXT:solr, which is not on EXT:solr main yet — so
this PR would have been red until #4754 merged, which is precisely the pressure we
do not want on EXT:solr main.

tests:env therefore points the EXT:solr version for CI at a branch of the same
name whenever TYPO3-Solr/ext-solr carries one. Here that is
epic/remove-dead-code/PR-1, installed as
dev-epic/remove-dead-code/PR-1 as 14.0.x-dev; the alias keeps constraints other
packages put on EXT:solr satisfiable, so neither require-dev nor tests:setup
changes. Once #4754 is merged and the branch is gone, the lookup finds nothing and
the pinned 14.0.x-dev applies again — no follow-up needed here.

Only the upstream repository is consulted: a branch out of a fork must never be
installed into CI, where it would run with our secrets.

The same mechanism is already green in ext-solrfal#367, where it pins EXT:solr and
EXT:tika at once.

Please rebase-merge, do not squash

The commit split is the deliverable for every PR in this EPIC.

dkd-kaehm and others added 2 commits August 31, 2026 15:20
Sync for EXT:solr — "[TASK] Guard against silently losing a test case".

Records the 46 test methods of this extension and runs the check in CI. The
script itself stays in EXT:solr and is called out of the installed package, so
the record format is identical across the EXT:solr family and there is one
implementation to maintain.

Ported-From: TYPO3-Solr/ext-solr#TODO

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
When TYPO3-Solr/ext-solr carries a branch of the same name, `tests:env` now points the EXT:solr version for CI at it,
so that a change spanning both repositories can be verified before either side is merged.
Only upstream is consulted, because a branch out of a fork would run in CI with our secrets.

The version is written as `dev-<branch> as <the version pinned so far>`, and that alias keeps other packages' constraints
on EXT:solr satisfiable, so neither require-dev nor `tests:setup` needs changing.
@dkd-kaehm
dkd-kaehm merged commit 4a4eb2d into main Sep 1, 2026
10 checks passed
@dkd-kaehm
dkd-kaehm deleted the epic/remove-dead-code/PR-1 branch September 11, 2026 05:22
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