Skip to content

infra: Delete the dead upstream composite actions (sparkle-appcast, run-clang-format, run-gersemi) #2676

Closed

Description

@zackees

Summary

ci-lint precheck on origin/master (pin a1917ce7…) reports 265 GEN-005 approved exceptions, and three composite actions in that baseline are dead: no workflow, action or script in the tree references them, so their run: steps (and their .ps1/.xslt siblings) are leftover upstream OBS CI the fork no longer calls. They can be deleted rather than "ported to Python" — there is no caller to port for.

Evidence — zero callers

git grep -l '<action>' origin/master -- . ':!docs/ci-evidence' returns only each file itself, its ci.toml [[exceptions]] block, and (for two) a comment:

Action GEN-005 findings Referencing files (excluding itself)
.github/actions/sparkle-appcast/ 8 none (ci/test_no_upstream_updater.py asserts the appcast jobs are gone from publish.yaml)
.github/actions/run-clang-format/ 3 none (ci/local_gate.py runs clang-format directly; ci/test_local_gate.py:185 only names it in a docstring)
.github/actions/run-gersemi/ 3 none (check-format.yaml runs uv run --no-project ci/local_gate.py --only gersemi)

ci/test_no_upstream_updater.py::test_upstream_appcast_jobs_are_gone already pins that the fork removed upstream's Sparkle appcast jobs; the action file was simply left behind.

Plan (one PR per action)

For each action: delete its files, delete that path's GEN-005 [[exceptions]] block in ci.toml, and pin the deletion with a test so a re-added file fails. sparkle-appcast also lets us extend the existing test_upstream_appcast_jobs_are_gone (assert the action directory is gone), which is the natural home for the pin.

Acceptance

  • The three paths have no GEN-005 [[exceptions]] block in ci.toml.
  • ci-lint precheck's approved-exception count drops by 14 (one PR: by that action's count).
  • No workflow or action references a deleted path (git grep).

No docs/features.md line: CI tooling only, no user-visible change.

Activity

  1. added
    infra
    on Oct 27, 2026
  2. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: investigation — re-check that the three actions have no callers and that deleting them needs no replacement, then /ready it for the per-action PRs.

  3. added
    needs-investigation
    on Oct 27, 2026
  4. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    /ready

  5. added
    ready
    and removed
    needs-investigation
    on Oct 27, 2026
  6. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: .github/actions/sparkle-appcast/ (the 8-finding action) as the first unit. Verified it is dead: git grep sparkle-appcast origin/master -- . ':!docs/ci-evidence' matches only the action itself, its ci.toml GEN-005 block, and ci/test_no_upstream_updater.py's test_upstream_appcast_jobs_are_gone (which asserts the upstream appcast jobs are gone from publish.yaml).

    Plan (one PR):

    1. RED: extend ci/test_no_upstream_updater.py::test_upstream_appcast_jobs_are_gone to assert .github/actions/sparkle-appcast/ is gone and ci.toml has no GEN-005 exception for it — fails on master (the files are present).
    2. GREEN: delete the action (action.yaml + the two .xslt) and its ci.toml [[exceptions]] block. ci-lint precheck: 505 -> 497 approved exceptions.
      First PR within the hour; the other two actions follow in separate PRs.
  7. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    First unit up: #2677 — delete .github/actions/sparkle-appcast/ (action.yaml + the two .xslt) and its ci.toml GEN-005 exception.

    • RED 362dde093 (test-only): test_upstream_appcast_jobs_are_gone asserts the action directory and its GEN-005 exception are gone — fails on master.
    • GREEN ba987b133: the deletion. ci-lint precheck 505 -> 497 approved exceptions (GEN-005 265 -> 257), violations/needs_review unchanged; ci/test_no_upstream_updater.py + ci/test_ci_toml.py = 52 tests OK.
    • Green PR CI, queued to merge.
  8. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: .github/actions/run-clang-format/ + .github/actions/run-gersemi/ (the other two dead actions in this issue).

    Re-checked against origin/master (3db5449): nothing references either action. .github/workflows/check-format.yaml runs both checks through the Fast Gate's lint lane now — uv run --no-project ci/local_gate.py --only clang-format and --only gersemi (pinned by ci/test_format_jobs.py::test_jobs_use_the_local_gate_not_brew, which asserts the job contains no ./.github/actions/run-) — and the only remaining uses: ./.github/actions/run-* in that workflow is run-swift-format, which stays. git grep -n 'actions/run-clang-format\|actions/run-gersemi' -- . ':!docs' matches only the two ci.toml GEN-005 exception blocks and one docstring mention in ci/test_local_gate.py; build-aux/run-clang-format and build-aux/run-gersemi are separate files that stay.

    Plan (one PR for both, since they are the same dead-code class and one test pins both):

    1. RED: extend ci/test_format_jobs.py with a class asserting both action directories and both ci.toml GEN-005 exceptions are gone — fails on master.
    2. GREEN: delete both action directories and the two exception blocks.
    3. Report the ci-lint precheck header before/after, run ci/test_format_jobs.py + ci/test_ci_toml.py, then hand off.
      Resume of infra: Delete the dead upstream composite actions (sparkle-appcast, run-clang-format, run-gersemi) #2676; the first unit (ci: Delete the dead upstream sparkle-appcast composite action (#2676) #2677) is merged.
  9. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Second unit up: #2679 — delete .github/actions/run-clang-format/ and .github/actions/run-gersemi/ plus their two ci.toml GEN-005 exceptions (one PR, since one test pins both and they are the same class).

    • RED e9184e7db (test-only): DeadFormatActionsTest in ci/test_format_jobs.py asserts both action files and both exception blocks are gone — 2 failures on master.
    • GREEN cf8123325: the deletions + the two [[exceptions]] blocks. ci-lint precheck 497 -> 491 approved exceptions (GEN-005 257 -> 251); 11 violations / 10 needs_review unchanged. ci/test_format_jobs.py (5), ci/test_ci_toml.py (41) and test_local_gate/test_no_upstream_updater/test_cache013_actions/test_workflow_duplicate_keys/test_describe_match (36) all OK; ruff check clean.

    With #2677's 8, that is the issue's 14 findings: acceptance item 2 ("count drops by 14") is met once #2679 lands, so #2679 says Fixes #2676.

    Follow-up worth its own issue (not done here, it is not an action): build-aux/run-clang-format and build-aux/run-gersemi are the shell formatters those actions called. Now that nothing in CI calls them, their only references are build-aux/README.md (documented manual usage) and the ci/local_gate.py docstring, and ci/local_gate.py --only clang-format|gersemi duplicates them with the pinned tools — so they are deletable dead code with 2 more GEN-005 findings, but deleting a documented developer entry point is a docs decision, not part of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions