Repository navigation
Description
Summary
.github/actions/flatpak-builder-lint/action.yaml is one of the 56 paths still carrying a
GEN-005 approved exception ("CI logic must live in Python, not shell/batch/PowerShell"). The
action contains two inline run: blocks — an artifact-type guard and the lint invocation with
its jq-based annotation parser:
| Step | Lines | Logic |
|---|---|---|
Check artifact type |
15-22 | bash =~ guard over builddir|repo|manifest|appstream, ::error:: + exit 2 |
Run flatpak-builder-lint |
27-75 | runs flatpak-builder-lint --exceptions --user-exceptions … capturing exit code, then a two-stage jq pipeline turning the JSON warnings/errors arrays into ::warning::/::error:: annotations,with the appstream short-circuit and exit ${return} |
Three call sites, all in build-project.yaml's flatpak-build job (manifest, appstream,
builddir, repo): lines 831, 949, 962 on master. That job sets up
astral-sh/setup-uv (line 816) before the action runs, on the host runner (a composite uses:
runs on the runner, not inside the flatpak container), so the action can call uv.
Evidence
uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint precheck
on master 1369daf30:
ci-lint precheck: 11 violation(s), 485 approved exception(s), 10 needs_review
== GEN-005 (245) ==
[GEN-005] APPROVED EXCEPTION .github/actions/flatpak-builder-lint/action.yaml (x2)
Plan (one PR)
- RED —
ci/test_flatpak_builder_lint.py(stdlib only,#!/usr/bin/env -S uv run --script):- asserts the action has no inline
run:block left and each remaining step isuv run --no-project ci/flatpak_builder_lint.py …; - drives the module on stubs: artifact-type validation accepts the four kinds and rejects others with exit 2, a stubbed
flatpak-builder-lintreturning warnings/errors yields the exact::warning::/::error::lines (including thefound in the Flatpak <artifact>suffix), an empty body with a non-zero exit is the "Error while running" exit 2, and theappstreamartifact prints the raw body and returns the tool's exit code.
- asserts the action has no inline
- GREEN —
ci/flatpak_builder_lint.pywithguardandlintsubcommands;action.yamlrepointed at it withuv run --no-project; the[[exceptions]]block inci.tomldeleted. - Verify: the new test fails on master and passes after the change;
ci-lint precheck's GEN-005 count drops by 2 with no new finding; the flatpak job's step semantics preserved (same annotations, same exit codes).
Not in scope: the other four .github/actions/* run-block exceptions (package-obs, build-obs,
steam-upload, setup-macos-codesigning, windows-*) — separate units.
Refs #962 (closed tracker; this is one of the ~245 remaining GEN-005 exceptions).
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 27, 2026
Claiming: investigation
Recon done while filing: both
run:blocks are self-contained (a=~guard and aflatpak-builder-lintcall plus a two-stagejqannotation pipeline), the three call sites areflatpak-buildsteps inbuild-project.yaml(831, 949, 962) and that job hasastral-sh/setup-uvbefore the action. Closing the two GEN-005 findings needs both blocks converted, since the exception is path-scoped.zackees commentedon Oct 27, 2026
/ready
Definition of Ready: scope is one composite action; the acceptance is mechanical (no inline
run:in the action, same annotations and exit codes, GEN-005 count -2); no open design question; one PR.zackees commentedon Oct 27, 2026
Claiming: port the flatpak-builder-lint action to Python
ci/test_flatpak_builder_lint.py— fails on master (inlinerun:blocks present, module missing).ci/flatpak_builder_lint.py(guard,lint),action.yamlrepointed atuv run --no-project,ci.tomlGEN-005 block removed, precheck GEN-005 count 245 -> 243.run:blocks against the new module on the same fixtures.ci: port the flatpak-builder-lint action to Python (GEN-005, #2700)
zackees commentedon Oct 27, 2026
PR: #2702 —
ci/flatpak_builder_lint.py(guard,lint), the action repointed atuv run --no-project, the GEN-005 exception block removed.RED
9e34df047(ci/test_flatpak_builder_lint.py, 10 failures on master), GREENf433806e0.ci-lint precheck485 -> 483 approved exceptions (GEN-005 245 -> 243), 11 violations unchanged.One behavioural finding from the differential run of the old block against the module: the old
jqfilter interpolated${template}inside a single-quoted program, so every annotation ended with the literal text${template}. The port emits the intendedfound in the Flatpak <artifact>suffix; that is pinned by the test.fixup: give publish's flatpak job uv, and drop the docstring escape w…
fixup: give publish's flatpak job uv, and drop the docstring escape w…
zackees commentedon Oct 27, 2026
Landed as #2702 (squash
c96cd57d0). What changed:ci/flatpak_builder_lint.py(guard,lint; stdlib only) replaces both inlinerun:blocks;.github/actions/flatpak-builder-lint/action.yamlcalls it asuv run --no-project, no shell left;[[exceptions]]block is gone;ci-lint precheck485 -> 483 approved exceptions, violations unchanged at 11;CI Gate ✅green, and the full local gate passed (./lintok,./unittest: rust-test ok, tier2-linux ok, 587/587 cmake tests).Latent bug fixed on the way: the old
jqfilter interpolated${template}inside a single-quoted program, so every annotation ended with the literal text${template}instead offound in the Flatpak <artifact>. Pinned byci/test_flatpak_builder_lint.py.Left for other units: the remaining GEN-005 exception paths (package-obs, build-obs, steam-upload, setup-macos-codesigning, windows-*, the zsh
.github/scripts/*, thelint/unittestshims).ci: Port the flatpak-builder-lint action to Python (GEN-005) (obs-rus…