Repository navigation
Record what each repo's own CI said of its Mojo version moves - #270
Open
winding-lines wants to merge 3 commits into
Open
winding-lines wants to merge 3 commits into
winding-lines wants to merge 3 commits into
Conversation
A new daily pipeline, mojo_ci (09:00 UTC), asks GitHub for the workflow runs on each commit that moved a repo to another Mojo version and keeps the answer in mojo.migration_ci: passed, failed, running, none, gone or blocked, with the counts of the repo's own workflows. Runs GitHub starts itself (paths under dynamic/) are left out. It asks about commits of the last 270 days that have no settled answer yet, newest first, at most 1,500 a run, and stops asking about a commit three days after it, once its runs have finished. GitHub drops run records after some months, so older commits have nothing to give. The site shows it in three places: a CI column beside each migration on a repo page, a "What their CI said" table per Mojo version on /migrations, and a "ci" object on each migration in /api/repos/<owner>/<name>. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsxF3PkSX49fnv7cSZd
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsxF3PkSX49fnv7cSZd
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsxF3PkSX49fnv7cSZd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The census knows when a repo moved to another Mojo version (
mojo.migrations), but not whether the move worked. Many repos already answer that themselves: their own GitHub Actions ran on the commit that moved the version. This PR records that answer. It builds nothing and costs one GitHub API request per commit.What it adds
pipelines/mojo_ci.mojo, daily at 09:00 UTC. For eachmojo_versionmigration it asksGET /repos/{repo}/actions/runs?head_sha={sha}and writes one row per commit to the newmojo.migration_citable.src/ci.mojo):failedif any of the repo's workflows failed, elserunning, elsepassed, elsenone(no workflow ran).goneandblockedare for a repo or commit GitHub no longer serves. Runs GitHub starts itself, such as CodeQL's default setup (pathunderdynamic/), are not counted./migrations: a "What their CI said" table per Mojo version: repos moved, how many ran CI, passed, failed, and which failed. A repo counts once per version, by its latest commit with an answer./api/repos/<owner>/<name>: each migration gains"ci": {"state", "runs", "passed", "failed", "checked_at"}ornull.Which commits it asks about
Commits of the last 270 days without a settled answer, newest first, at most 1,500 a run (
MOJO_CI_MAX_REQUESTS). An answer is settled three days after the commit, once nothing is still running. A request that fails for another reason writes no row and is asked again the next day.GitHub drops run records after some months: bgreni/EmberJson's runs from before about mid-January 2026 are no longer listed. So older migrations get
none, and the history can't be filled in later.How much it covers
Measured with the same rules against the live census on 2026-11-30, over 227 repos that use pixi and are on Mojo 1.2 or 1.3 (one owner's 261 bulk repos left out):
Checked
pixi run test: 42 test files, 286 tests, none failed.tests/test_ci.mojois new (5 tests), andtests/test_console_routes.mojogains 2.pixi run build,pixi run test-register(registersmojo_ciunder bothmorca.tomlandmorca.dev.toml) andpixi run test-upgrade.mojo_versionmigrations within 270 days.Not checked
The site against a real lake: the pages are covered by route tests only. Beta will show them once
mojo_cihas run.Deploying
No step is needed.
mojo_ciuses the GitHub token secret thatmojo_statsandmojo_issuesuse. The first backfill is about 2,700 commits, so the table fills over the first two daily runs.Not in this PR
get_repotool does not carryciyet./apiendpoint for the per-version table.🤖 Generated with Claude Code
https://claude.ai/code/session_017TycsxF3PkSX49fnv7cSZd