Repository navigation
fly: weekly emulator-freshness check (mudflaps/spritzer) - #816
Merged
Merged
Conversation
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).
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.
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-injectablelatestRelease/checkFreshnessoverintentius/mudflapsandintentius/spritzer, reading the pins fromemulator-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 writesbehind+ a Markdownbodyto$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 afterlexicon-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
checkFreshnessboth paths, non-ok fetch throws.0.3.1== latestv0.3.1).emulator-freshness.ymlYAML 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.