Skip to content

fly: single-source the mudflaps/spritzer emulator image pins - #814

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

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

Conversation

@lex00

@lex00 lex00 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Part of #808 (T2, first half).

What

The mudflaps (Machines) and spritzer (Sprites) emulator image tags were duplicated across flaps.ts, sprites-emulator.ts, the fly-deploy composite, and tests — and had already drifted: the activity pinned mudflaps:0.3.1 while the composite's docstring still said 0.3.0. This is the exact scatter T2 sets out to prevent.

Adds lexicons/fly/src/op/activities/emulator-images.ts exporting MUDFLAPS_IMAGE and SPRITZER_IMAGE as the single source of truth; all sites reference it. A bump now touches one line.

Changes

  • New emulator-images.ts with the two pinned image constants + the bump policy in the docstring.
  • flaps.ts / sprites-emulator.ts use the constants for the emulatorLifecycle image.
  • fly-deploy.ts composite docstring no longer hardcodes a (stale) version.
  • flaps.test.ts references MUDFLAPS_IMAGE so the test tracks the constant.

Validation

  • No hardcoded ghcr.io/intentius/{mudflaps,spritzer}:<version> literals remain outside emulator-images.ts.
  • fly lexicon builds; fly suite green (173 passed, the docker integration booting spritzer:0.3.1 via the constant included).

Remaining T2

The freshness-check automation (query GHCR for newer mudflaps/spritzer releases, surface a "N releases behind" notice — never auto-merge) is a distinct piece and lands in a focused follow-up. This PR gives it a single target to compare against.

The emulator tags were duplicated across flaps.ts, sprites-emulator.ts, the
fly-deploy composite, and tests — and had already drifted: the activity pinned
mudflaps 0.3.1 while the composite's docstring still said 0.3.0. Exactly the
scatter this consolidates.

Add lexicons/fly/src/op/activities/emulator-images.ts exporting MUDFLAPS_IMAGE
and SPRITZER_IMAGE as the single source; point flaps.ts, sprites-emulator.ts,
the composite docstring, and flaps.test.ts at it. A bump now touches one line,
and the emulator-freshness check (remaining T2 half) has one target to compare
against the latest GHCR release.
@lex00
lex00 merged commit bb9ce13 into main Jul 12, 2026
5 checks passed
@lex00
lex00 deleted the feat/808-emulator-pins branch July 12, 2026 07:34
lex00 added a commit that referenced this pull request Jul 27, 2026
…rifting with upstream main (#1144) (#1145)

The ARM schema fetch pulled refs/heads/main.tar.gz unpinned, so a cold
~/.chant cache regenerated against whatever upstream state currently
existed while a warm cache kept serving the old one — nondeterministic
per-runner CI failures (bit PR #1141). Pin to a commit SHA instead,
following the fly (#814) single-source-pin precedent, and name the cache
file after the pin so a stale cached tarball can never mask a bump.

At the pinned commit, Microsoft.Compute's naive "latest date wins" schema
selection picks a disk-only delta file that drops virtualMachines,
virtualMachineScaleSets, and availabilitySets entirely (Azure alternates
"VM flavor" and "disk flavor" snapshots of this file rather than
publishing one cumulative one). Extend PROVIDER_VERSION_OVERRIDES
(previously just Microsoft.Authorization, #223) to pin Microsoft.Compute
to the last date that still has the VM family, restoring the composites'
and validate.ts's expected exports without touching any composite source.
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