Repository navigation
Description
Gap
ci-lint precheck reports two GEN-005 findings on
.github/actions/flatpak-manifest-validator/action.yaml:
[GEN-005] APPROVED EXCEPTION .github/actions/flatpak-manifest-validator/action.yaml
what: runs.steps[0]: run: step violates the shell budget (more than one line)
[GEN-005] APPROVED EXCEPTION .github/actions/flatpak-manifest-validator/action.yaml
what: runs.steps[2]: run: step violates the shell budget (more than one line; control syntax (;); leading if/for/while)
steps[0]is the Windows runner guard:echothe reason,exit 2.steps[2]is the manifest order check:::group::, anif [[ ... == never ]]that
turnsset +eon,PYTHONUNBUFFERED=1 uv run --no-project build-aux/format-manifest.py build-aux/io.github.obs_rust.OBSStudioRust.json --check --loglevel INFO,::endgroup::.
The exception is path-scoped, so the action's block leaves the baseline only when
both steps are one call each.
Call sites
| Caller | Inputs used |
|---|---|
.github/workflows/check-format.yaml (Format 🔍 / checks) |
failCondition: error |
The action installs its own pinned astral-sh/setup-uv (with the CACHE-013 pr-<N>
cache-suffix), so the port needs nothing from the caller. The guard step used to run
before that install, which is why it could be plain shell; a port that calls uv has
to install the toolchain first, so Set Up uv moves above the guard and the guard still
fails an unsupported runner before the check runs.
Work
ci/flatpak_manifest_validate.py(uv run --no-project --script, standard library only)
with two subcommands:guard --notice …(print the notice, exit 2 — the action's own
if: runner.os == 'Windows'still selects it) andvalidate --manifest … --fail-condition …
(runbuild-aux/format-manifest.py --check, return its status unless the condition is
never, bracketing the output in::group::/::endgroup::).- Both
run:steps become one line each;--manifestand--fail-conditioncarry the
values the step hard-coded and thefailConditioninput. ci/test_flatpak_manifest_validator.pypins the guard's notice and exit code, the four
fail-conditionoutcomes against real manifest fixtures (formatted, unformatted, missing,
default), the group annotations, the action's one-line steps withuvinstalled before
both calls, and the absence of the GEN-005[[exceptions]]block.- The GEN-005 exception for the action is deleted with the port.
Noticed while porting, left alone: the action's manifestFile input is declared but unused
(the path is hard-coded), and the guard's notice text says "services-validation action"
because the block was copied from services-validator. Both are pre-existing.
Evidence
ci/test_flatpak_manifest_validator.py: 16 tests — RED 13 failures + 2 errors on
origin/master, GREEN 16 OK.ci-lint precheckbefore:11 violation(s), 489 approved exception(s), 10 needs_review;
after:11 violation(s), 487 approved exception(s), 10 needs_review, no
flatpak-manifest-validatorfinding left (the block carries two findings).ci/test_ci_toml.py41 tests OK,ci/test_uv_run.py5 tests OK,ruff checkclean.- No
docs/features.mdline: build tooling only.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 27, 2026
Claiming: the Flatpak manifest validator shell-budget port.
Plan (one PR, two commits, local RED evidence):
3b08bf817:ci/test_flatpak_manifest_validator.pypins both steps — 16 tests, 13 failures + 2 errors onorigin/master(module absent, bothrun: |blocks still there, GEN-005 block still in ci.toml).6c5dc66eb:ci/flatpak_manifest_validate.py(guard/validatesubcommands) makes each step oneuv run --no-project --scriptline,Set Up uvmoves above the guard, and the ci.toml GEN-005 block is deleted.ci-lint precheck489 -> 487 approved exceptions, same 11 violations, no finding left;ci/test_ci_toml.py41 OK,ci/test_uv_run.py5 OK,ruff checkclean.One behaviour note for review: the guard step now runs after
Set Up uv(it callsuv, which a Windows runner does not have on its own). It still exits 2 before the check. PR opens now.zackees commentedon Oct 27, 2026
Opened #2688 (branch
infra/flatpak-manifest-validator-python, base master, 2 commits): RED3b08bf81(16 tests, 13 failures + 2 errors), GREEN6c5dc66e(16 OK,ci-lint precheck489 -> 487 approved exceptions, no finding left). WatchingFormat 🔍 / checksthrough PR CI — it is the job that runs both scripts.ci: One Python call runs each Flatpak manifest validator step (GEN-00…