Repository navigation
Description
Unit
.github/actions/qt-xml-validator/action.yaml — the whole action's GEN-005 baseline.
Why it is one unit
ci-lint precheck reports one GEN-005 finding per multi-line shell run: block, and the [[exceptions]] entry is path-scoped, so the action's block in ci.toml only leaves the baseline when every block in the file is gone. The action is also only called from one place, so the whole unit is one PR.
Findings (on origin/master, ci-lint precheck at a1917ce)
| Finding | Block | What it is |
|---|---|---|
| 1 | action.yaml:15-21 |
Windows runner guard: notice + exit 2 |
| 2 | action.yaml:23-32 |
sudo apt-get update + install libxml2-utils on Linux |
| 3 | action.yaml:44-58 |
xmllint --schema … --noout over the changed *.ui files, honouring failCondition |
Exception cleared with them: ci.toml:344-349 (rule = "GEN-005", path = ".github/actions/qt-xml-validator/action.yaml").
Coverage of the call sites
grep -rn qt-xml-validator --include='*.yaml' .→ one caller,.github/workflows/check-format.yaml:58(Qt XML Check 🖼️,checksjob).- That job already runs
astral-sh/setup-uv(check-format.yaml:39) and every later step isuv run --no-project …, so a Python module is reachable from the action's caller with no environment change. - The action is also referenced from its own notice string only; the
korelstar/xmllint-problem-matcherand./.github/actions/check-changessteps stay untouched (uses:steps are notGEN-005findings).
Shape of the port (precedent: #2692, #2700)
ci/qt_xml_validate.py (#!/usr/bin/env -S uv run --script, standard library only) with two subcommands, each a single uv run --no-project --script line in the action:
guard --notice <text>— prints the notice and exits 2, exactly as the shell guard does.validate --changed-files-json '<json>' --schema <path> --fail-condition <never|error>— parses thecheck-changesoutput the way the shell did (strip[ ] ' ", split on commas), installsxmllintthroughsudo apt-getonly whenshutil.which('xmllint')is empty, runsxmllint --schema … --noout <files>, and returns 0 for--fail-condition never(the action input's default) — theset +ethe old block did.
RED / GREEN
- RED:
ci/test_qt_xml_validate.py— fails on master because the module is missing, the action still carries the three shell blocks, andci.tomlstill has theGEN-005block for this path. - GREEN: the module, the action's three one-line steps, and the deleted exception. Test also pins the behaviour on a stub
xmllintonPATH: argv (--schema,--noout, one argument per file), the JSON-list parsing, the empty-list no-op, andnevervserrorexit codes.
Not in scope
The xmllint schema itself and frontend/forms/XML-Schema-Qt5.15.xsd — the port reproduces the check, it does not change what it accepts.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 28, 2026
Claiming: investigation
The issue body above is the recon: three
run:blocks (action.yaml:15-21,23-32,44-58), one caller (check-format.yaml:58, in a job that already runssetup-uv), and the path-scopedci.toml:344-349exception that only clears when all three are gone. No environment change is needed, so it meets the definition of Ready.zackees commentedon Oct 28, 2026
/ready
zackees commentedon Oct 28, 2026
Claiming: GEN-005 qt-xml-validator port
ci/test_qt_xml_validate.py— fails on master (module missing, three shell blocks in the action,ci.toml:344-349block present).ci/qt_xml_validate.py(guard/validate), the action's three steps as one-lineuv run --no-project --scriptcalls, and theGEN-005exception deleted.master, unmerged. First PR in this tick.zackees commentedon Oct 28, 2026
PR #2726 implements this unit.
8d482e487:ci/test_qt_xml_validate.py, 14 tests / 9 failures / 2 errors on master (module missing, threerun: |blocks, exception present).5ad9360d1:ci/qt_xml_validate.py, the action's three one-lineuv run --no-project --scriptsteps, and theci.tomlexception deleted.precheck: 483 → 480 approved exceptions, violations unchanged at 11, noqt-xml-validatorline left;ci/local_gate.py --only self-testis green (373 tests).The first GREEN attempt tripped
LAYOUT-001on asys.platformcheck; the module now decides onshutil.which('apt-get')instead.zackees commentedon Oct 28, 2026
Merged on master as
fc0352611(#2726). The action's three shell steps are nowuv run --no-project --script ci/qt_xml_validate.py guard|validate, and itsGEN-005exception is gone:precheck483 → 480 approved exceptions, violations unchanged at 11, noqt-xml-validatorfinding left.Nothing else is outstanding on this unit. The remaining
GEN-005baseline in this family is the other composite actions (run-swift-format,steam-upload,setup-macos-codesigning,windows-analysis,windows-signing,build-obs,package-obs) — each its own path-scoped unit.ci(qt-xml): Port the UI XML validator action to Python (GEN-005, obs-…