Skip to content

fly: weekly emulator-freshness check (mudflaps/spritzer) - #816

Merged
lex00 merged 1 commit into
mainfrom
feat/808-emulator-freshness
Jul 12, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/808-emulator-freshness

Conversation

@lex00

@lex00 lex00 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Completes #808 (T2, second half).

What

Now that the emulator tags are single-sourced (#814), add a weekly advisory check comparing each pinned tag against its latest GitHub release. Dependabot can't help here — the pins are TypeScript constants, not a Dockerfile — so this is a small purpose-built check.

  • emulator-freshness.ts — pure, tested core: parseVersion, compare, and a fetch-injectable latestRelease / checkFreshness over intentius/mudflaps and intentius/spritzer, reading the pins from emulator-images.ts (the single source from fly: single-source the mudflaps/spritzer emulator image pins #814).
  • emulator-freshness-cli.ts — prints a report; in CI writes behind + a Markdown body to $GITHUB_OUTPUT. Advisory: exits 0 whether or not behind (a hard network/API failure exits 1).
  • emulator-freshness.yml — Mondays 07:00 UTC (an hour after lexicon-upgrade). When a pin is behind, opens or refreshes a single tracking issue. Never an auto-bump — the tag moves only when a consuming test needs the newer emulator (Fly fidelity: spec-drift + emulator freshness for Machines/mudflaps and Sprites/spritzer #808 policy).

Validation

  • 11 unit tests (mocked fetch): version parse, semver compare (behind/current/ahead), checkFreshness both paths, non-ok fetch throws.
  • Live CLI run: both pins report current (0.3.1 == latest v0.3.1).
  • emulator-freshness.yml YAML validated; fly suite green (191 passed).

#808 now complete

Fidelity across fly / mudflaps / Sprites / spritzer is now covered: spec-drift for Machines, a hand-authored contract + emulator-coverage for Sprites, and freshness on both emulator pins.

Second half of T2: now that the emulator tags are single-sourced, add a weekly
advisory check comparing each pinned tag against its latest GitHub release.

- emulator-freshness.ts: pure, tested core — parseVersion, compare, and a
  fetch-injectable latestRelease/checkFreshness over intentius/mudflaps and
  intentius/spritzer, reading the pins from emulator-images.ts (single source).
- emulator-freshness-cli.ts: prints a report and, in CI, writes `behind` + a
  Markdown body to $GITHUB_OUTPUT. Advisory — exits 0 whether or not behind.
- emulator-freshness.yml: Mondays 07:00 UTC (an hour after lexicon-upgrade).
  When a pin is behind, opens or refreshes a single tracking issue. Never an
  auto-bump — the tag moves only when a consuming test needs it (#808 policy).
- Unit tests (mocked fetch) cover version parsing, comparison, and both
  behind/current paths.

Verified live: both pins report current (0.3.1 == latest v0.3.1).
@lex00
lex00 merged commit 5918f7a into main Jul 12, 2026
5 checks passed
@lex00
lex00 deleted the feat/808-emulator-freshness branch July 12, 2026 07: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