Repository navigation
refactor(ci): [develop] restructure maintenance tools with behavior regression coverage - #8305
somethingwithproof wants to merge 5 commits into
Conversation
TheWitness
left a comment
There was a problem hiding this comment.
You are dropping something in the Cacti scripts directory. Not good that. Write this shit in PHP ;) Sean would argue with me. But yea... kidding.
|
This does not add a Python script to Cacti’s runtime scripts directory. The existing PO validator has two small fixes; the remaining Python changes are GitHub maintenance tools and their tests. All 22 tooling/PO tests pass. The branch is updated against develop and ready for another look. |
TheWitness
left a comment
There was a problem hiding this comment.
Script in incorrect directory.
|
18c9b26 to
4e95858
Compare
|
The PO validator now lives at |
db92743 to
24c7880
Compare
|
The directory fix is present at |
24c7880 to
68620fa
Compare
|
The directory request is addressed at 68620fa: the validator is in |
a0e8218 to
67d6c2a
Compare
67d6c2a to
e0576fe
Compare
1508247 to
afd6277
Compare
836e266 to
1d4bd9d
Compare
edac1c9 to
201ff05
Compare
201ff05 to
64c33c6
Compare
Moved: the validator now lives at |
262dd76 to
89cdeb8
Compare
89cdeb8 to
aecd77d
Compare
aecd77d to
e650d0c
Compare
…egression coverage Splits the changelog, workflow-policy and contributor helpers into smaller functions with regression tests, fixes two PO validator edge cases, and moves the validator from scripts/ to tests/tools so no Python ships in the runtime scripts directory. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
The workflow policy job installed gettext from apt just for this test, so an apt mirror outage failed the policy gate. The develop gettext job already installs msgfmt and runs on every develop pull request. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
The helper extraction removed comments that explain why the alias merge copies activity, why a failed CHANGELOG diff is reported, that reusable workflow calls are pinned at job level, and that the privileged checkout lint does not inspect run steps. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
e650d0c to
da6067d
Compare
|







This change makes CI maintenance tools easier to follow and fixes defects in translation validation. It breaks complex workflow, changelog and contributor processing into tested helpers and corrects handling of option-like filenames and stored translation entries. This improves the reliability of checks and their error reporting while preserving the established command behavior.
Implementation details
Refactor the workflow policy, changelog validation/folding and contributor refresh tools into smaller helpers to resolve validated complexity and successful-exit findings. Preserve diagnostic ordering, changelog insertion order, contributor aliases, review pagination and command exit behavior. The contributor-path regex remains unchanged here; #8294 owns that change.
Validation: all 18 behavior contracts pass on both the original upstream scripts and the refactored versions. Diagnostics for every repository workflow are identical. Tests cover invalid policy and fragments, write/dry-run ordering, aliases, deleted users, bot exclusion, pagination and exception propagation without external API calls. Measured combined line and branch coverage is 85%, not complete coverage.
The existing policy workflow runs these regressions. PHP-CS-Fixer, PHPStan level 8, actionlint, workflow policy and changelog validation passed. CI and cross-PR merge results must be evaluated against the current head; earlier audit snapshots are not asserted for later updates.
Release notes are consolidated in #8320. Review and merge this child before that final documentation PR.
Follow-up validation: reproduced option-like
.pofilenames being interpreted asmsgfmtoptions and parsed entries being reset after storage on develop; this validator is absent from 1.2.x. Add the--option terminator, preserve each entry, and run four additional regressions in the policy job with GNU gettext installed. The new suite fails against the original validator and passes after both fixes, covering option-like, spaced and absolute paths, malformed catalogs, placeholder mismatch, and retained plural forms/flags. All 18 existing maintenance tests, PHP-CS-Fixer, PHPStan level 8, actionlint and workflow policy checks pass locally. The 85% coverage figure above applies to the original maintenance-tool suite; coverage of this expanded scope has not been measured.Merge validation: the PO regressions run in their own CI step to preserve #8294's independent binary-only dependency install change. Git merge-tree simulations of current head 9bb7be3 against all 19 other develop child heads completed without conflicts; snapshot: 2026-10-12 UTC. These checks verify mergeability, not runtime behavior of a merged stack.
Revision and checks
Description scope: target
develop, 8 changed files, head67d6c2a5d. Checked 2026-10-23 03:06:04 UTC.GitHub check snapshot: 2 passed. Local test figures and earlier CI runs above are recorded evidence for their stated revisions and environments; they do not assert that every check passes at this head.