ci: add repo-wide legacy name guard #801

Sammanfogat
supernaut sammanfogade 2 incheckningar från ci/legacy-name-guard in i main 2026-10-18 19:11:12 +00:00
Ägare

Fails CI when the legacy name appears in a tracked file's content or path outside a per-file allowlist. Each allowlist entry carries its reason. An allowlist entry that no longer matches also fails, so a cleaned file cannot regrow the name.

A self-test plants a content hit, a path hit and a stale entry, and proves each fails.

Removes the old legacy-name checks and the [bg]itborg regexes from check-metric-names.py. The HELP/TYPE and declared-but-never-emitted checks stay.

Merge order: whichever of this and #759 merges second must drop the ansible/roles/kanidm-cleanup/tasks/main.yml allowlist entry.

Closes #583

Fails CI when the legacy name appears in a tracked file's content or path outside a per-file allowlist. Each allowlist entry carries its reason. An allowlist entry that no longer matches also fails, so a cleaned file cannot regrow the name. A self-test plants a content hit, a path hit and a stale entry, and proves each fails. Removes the old legacy-name checks and the `[bg]itborg` regexes from `check-metric-names.py`. The HELP/TYPE and declared-but-never-emitted checks stay. Merge order: whichever of this and #759 merges second must drop the `ansible/roles/kanidm-cleanup/tasks/main.yml` allowlist entry. Closes #583
supernaut lade till 2 incheckningar 2026-10-18 19:03:25 +00:00
Fail CI when the legacy name appears in a tracked file outside a per-file
allowlist with reasons. The guard has a self-test with a planted occurrence.

Drop the legacy-name and brand-collision checks from check-metric-names.py.
The HELP/TYPE and declared-but-never-emitted checks stay.

Closes #583
ci: fail on stale legacy name allowlist entries and paths
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m27s
ff99c4799d
An allowlisted file with no match left must leave the list, so a cleaned file cannot regrow the name. File paths are scanned too.
supernaut sammanfogade incheckning 34bf4ff4ec till main 2026-10-18 19:11:12 +00:00
supernaut tog bort grenen ci/legacy-name-guard 2026-10-18 19:11:12 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-18 19:11:13 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!801
Ingen beskrivning angiven.