Skip to content

ci: axera and grainmedia owners, prune old refs/ci/built markers - #219

Merged
widgetii merged 2 commits into
openipcfrom
ci/followups
Nov 27, 2026
Merged

widgetii merged 2 commits into
openipcfrom
ci/followups

Conversation

@widgetii

Copy link
Copy Markdown
Member

Owners tables for the two vendors whose history narrows. Over the last
40 commits of each branch: axera, 11 to one leg of three and 1 to two
(the AX620E and AX620U first stages, openipc/-spl/, are most of
its work); grainmedia, 6 to two legs of three (nsboot). Values are what
make olddefconfig resolves: the AX630C builds board axera/ax620e, the
GM813x pair builds grainmedia/grainmedia.

The other vendors without a table narrow at most one or two commits in
forty (anyka, fullhan, gk710x) or none (allwinner, ingenic, rockchip,
xm), so they keep building every leg for anything but docs.

ci-prune.yml deletes refs/ci/built/* markers older than 30 days every
Monday. A marker is only read by the push landing its pull request, so
an old one is dead weight; deleting one early costs a rebuild.

Owners tables for the two vendors whose history narrows. Over the last
40 commits of each branch: axera, 11 to one leg of three and 1 to two
(the AX620E and AX620U first stages, openipc/<soc>-spl/, are most of
its work); grainmedia, 6 to two legs of three (nsboot). Values are what
`make olddefconfig` resolves: the AX630C builds board axera/ax620e, the
GM813x pair builds grainmedia/grainmedia.

The other vendors without a table narrow at most one or two commits in
forty (anyka, fullhan, gk710x) or none (allwinner, ingenic, rockchip,
xm), so they keep building every leg for anything but docs.

ci-prune.yml deletes refs/ci/built/* markers older than 30 days every
Monday. A marker is only read by the push landing its pull request, so
an old one is dead weight; deleting one early costs a rebuild.
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Narrow Axera and Grainmedia CI builds and prune stale markers

⚙️ Configuration changes ✨ Enhancement 📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Add ownership tables so Axera and Grainmedia changes build only affected legs when paths are
 recognized.
• Delete CI build markers older than 30 days to keep remote references manageable.
• Document the expanded ownership rules and weekly marker cleanup.
Merge Risk 🟢 Low

Blast radius 🔴 High 💥 3 capabilities

  • 3 affected capabilities span independent functional scopes: Axera vendor CI integration, Grainmedia vendor CI integration, Repository CI marker lifecycle.
  • The changed ownership table is consumed by the Axera selector and build workflow to determine which Axera firmware build and smoke legs execute; it is one bounded vendor CI integration.
  • The changed ownership table is consumed by the Grainmedia selector and build workflow to determine which Grainmedia firmware build and smoke legs execute; it is one bounded vendor CI integration distinct from Axera's.
  • The workflow changes persistent refs that vendor push workflows read to decide whether already-tested trees need rebuilding; retention and deduplication form one bounded CI operations capability.
Sources

.github/ci/grainmedia.yml[27-35]

owners:
  gm8136:
    config: grainmedia
    board: grainmedia/grainmedia
    paths:
      - openipc/gm8136_config
      - arch/arm/mach-grainmedia/soc.c
      - arch/arm/mach-grainmedia/include/mach/grainmedia.h
      - board/grainmedia/nsboot/
Behavioral complexity 🟡 Medium 🧩 Interacting branches

  • Before, no repository workflow performed this marker lifecycle operation.
  • After, each marker moves through enumeration, age comparison, keep, delete, or failure states, with separate scheduled and manually supplied thresholds.
  • The new correctness condition is that only markers older than the selected cutoff are deleted and any age/API failure preserves the marker while causing a failed run.
Potential damage 🟡 Medium 🩹 Recoverable

  • If a path is misclassified, an affected Axera leg may not be validated, or unrelated legs may run.
  • Reverting fixes future selection; missed validation requires rerunning the affected CI.
  • No firmware runtime effect is established.
  • Revert the ownership mapping and rerun the affected Axera workflow; previously omitted validation is not restored automatically.
Assessed commit ddad915
Diagram

graph TD
  A["Changed paths"] --> C["CI selector"] --> D["PR builds"] --> E[("Built refs")] --> F["Weekly prune"] --> G["Expired refs removed"]
  B["Owner tables"] --> C
Loading
High-Level Assessment

Extend the existing fail-open ownership selector rather than introduce another selection mechanism. Scheduled pruning is a straightforward fit for markers that are only useful around the landing push; deleting one early can cause a rebuild without reducing coverage.

Files changed (4) +141 / -2

Documentation (1) +3 / -2
CLAUDE.mdDocument ownership coverage and marker retention +3/-2

Document ownership coverage and marker retention

• Lists Axera and Grainmedia among vendors with ownership tables and documents weekly deletion of markers older than 30 days.

CLAUDE.md

Other (3) +138 / -0
axera.ymlMap Axera paths to three build legs +40/-0

Map Axera paths to three build legs

• Adds ownership claims for the AX620U, AX620E and AX630C legs, including their resolved board and config values. Shared claims select all affected legs; unclaimed paths continue to select every leg.

.github/ci/axera.yml

grainmedia.ymlMap Grainmedia paths to GM813x and GM8126 legs +39/-0

Map Grainmedia paths to GM813x and GM8126 legs

• Adds ownership claims for three legs, distinguishing the GM813x pair's shared board and first-stage paths from GM8126-specific paths. This lets recognized changes avoid unrelated builds.

.github/ci/grainmedia.yml

ci-prune.ymlPrune expired CI build references weekly +59/-0

Prune expired CI build references weekly

• Adds a Monday schedule and manual dispatch to delete refs/ci/built markers whose commits are older than 30 days by default. The workflow validates the threshold, reports deletion counts and fails if a deletion fails.

.github/workflows/ci-prune.yml

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. A commit lookup failure deletes fresh markers ✓ Resolved

Resolving commit: ddad915

Resolution reason
A lookup or date-parse failure no longer falls through to deletion. The marker is kept, the failure
is logged and counted in failed, and the loop continues, so fresh markers are no longer removed on
transient API errors.
Description
The prune step sets date to an empty value when gh api cannot read a marker’s commit, then falls
through to deleting that marker regardless of its age. If commit lookups fail temporarily after the
marker list succeeds, even recently created markers are removed, causing the landing pushes to
repeat builds their pull requests already passed.

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@widgetii
widgetii merged commit c8d2e99 into openipc Nov 27, 2026
2 checks passed
@widgetii
widgetii deleted the ci/followups branch November 27, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant