Skip to content

ci: validate isolated Flatpak rebuild without download or compiler state - #1715

Merged
zackees merged 15 commits into
masterfrom
infra/1269-flatpak-pruned-build
Oct 22, 2026
Merged

zackees merged 15 commits into
masterfrom
infra/1269-flatpak-pruned-build

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Current qualification — Flatpak probe succeeded

Fifth full trial 39739711001 on ae128dc is terminal FAILURE due only to independent Windows Tier2 cm_print_error (#1713/#1739) and aggregate gate. Flatpak job119694606911 SUCCESS: actual copied OSTree fsck, all6dependency hits, forced OBS rebuild, binary/icon/XML and all3AppStream/builddir/repo lint checks passed. HostedOSTree2026.2, bare-user-only,70typedlinks, fsck18.644s, isolatedbuild935.793s excludingcopy/fsck/validation.

Reviewed terminal evidence is now committed at5c97ce84f; compression-onlyc6e9bce4d preserves originalJSONbytes in gzip. Source is unchanged since successful experiment. Linux358/355+3Pulse skips OFF/ON and Mac4x202/201+1SVT passed; Windows failed beforeCTest. Prior4fullfailedtrials preserved. No fullgreen, actualtransport saving, productionpolicy, runtimeprofile, representative-day or globalcapacity claim. #1269 remains open; #1723 held. Current PR Gate must pass before queueing.

Historical implementation/experiment notes follow; earlier pending statements describe those captures.

Refs #1269 under #1667. Draft: actual isolated hosted application rebuild remains unproven.

Scope

Default-off manual Flatpak probe after normal full build/output validation. Copy only the dependency OSTree repository (cache), excluding downloads, compiler entries and transient scaffolding. Preserve exact checksum-shaped .file link objects as opaque data without dereferencing; reject structural links. Run real ostree fsck on the isolated copy before building.

A temporary manifest forces the final obs module's executable check and marker. Require all six dependency cache hits and reject an obs cache hit. Validate binary/icon/XML plus existing AppStream/builddir/repo lint. Commands are bounded; temporary state/manifest cleaned on success/failure.

No production writer/key/path/limit change, new workflow, C-test/public-header/plugin edit or runtime/saved-profile claim. Global allocation/native retention remain unresolved; #1723 remains separately held.

Evidence — two terminal failures preserved

  • First full run39725882580 on659756295: normal Flatpak build/validation passed; generic link guard failed before isolated rebuilding. Exact link location unknown. All other selected jobs passed.
  • Second full run39729660321 on446a12945: narrower guard rejected a concrete OSTree .file link before rebuilding. Link target/repository mode were not logged. Windows independently failed linking cm_print_error in test_video_output_plan, reported under existing owner rust: Port the video output conversion plan in obs.c to obs-core #1713. Other selected jobs passed. Aggregate Gate failed.
  • Committed evidence retains capture-time and terminal metadata, failed artifacts, log hashes/excerpts and coverage. Neither trial establishes pruned rebuild success.

RED → GREEN / review

  • Initial RED406fb7c2c; GREENe8642f481 (original54645ed68/659756295).
  • Transient projection REDb14a99448; GREEN66ac4c826; structural link regression0cb95f862.
  • Typed object RED e5cc741 (pre-rebase4d941bfcd); GREEN f4cbc95.
  • 31 focused checks pass after rebase. Full lint passed91.1s before explicit user-requested rebase. One primary clud-review reviewer clean.
  • Real local OSTree2026.1 bare-repository fixture proves opaque copy/fsck/isolation/cleanup only, deliberately stopping before application build. Binary/helper/fixture identities and scope limits recorded.
  • User-requested rebase onto master cf4b47b replaced remote446a12945 with f4cbc95. Both independent default-off probe inputs/steps remain preserved.

Current qualification

Exactly one third changed-source full trial 39732161172 dispatched on f4cbc95 after both prior full trials were terminal. pruned=true, cache-probe=false, native=false. Preserve full selected coverage and failures; no unchanged workflow retry. Results pending. Production transport/allocation adoption needs separate actual trusted producer/consumer qualification and honest global capacity.

Terminal third trial and reviewed branch correction

Run39732161172 completed FAILURE. Copied OSTree fsck passed10 commits/19,104 objects and forced OBS marker appeared, but all six dependencies rebuilt; guard correctly rejected missing dependency cache hits before isolated output validation. Windows independently failed cm_print_error (#1713/#1739); Mac and Linux passed. Full evidence committed.

Cause identified in pinned builder/action source: --state-dir scopes stage refs to the absolute manifest path; random temporary manifest selects a different branch. RED28a6b1efc reproduces selection failure. GREEN218c48278 aliases original stage refs only in the independent copy, before fsck, retaining all six-hit/forced-rebuild guards. Real OSTree fixture verifies matching commit and no original ref mutation.31 focused checks pass, full lint132.9s pass, sole primary review clean.

Define exactly one fourth changed-source full trial on218c48278 after all previous trials terminal, pruned=true/cache-probe=false/native=false. No unchanged retry or production adoption. Actual dependency reuse plus full isolated output validation remain unproven.

Terminal fourth trial and screenshot parity

Run39735957434 completed FAILURE. All6 dependency hits, forced OBS marker, binary/icon/XML and AppStream lint passed. Builddir lint rejected appstream-external-screenshot-url because probe omitted production screenshot mirroring; repository lint did not run. Windows independently failed the known cm_print_error linker error. Terminal metadata/log hashes/artifact/coverage committed.

REDf1d53548f and7fdff3615 require production builder screenshot options and media repository commit. GREENae128dc16 matches both on isolated outputs before unchanged lint; no exceptions/coverage relaxed.31focusedPASS, full lint42.5sPASS, one primary review clean. Real OSTree copy/ref/fsck fixture rerun passed (stops before real build).

Define one fifth changed-source full trial on ae128dc, after all prior trials terminal, pruned=true/cache-probe=false/native=false. No unchanged retry. Full isolated output qualification, actual cache transport/allocation and #1269 remain unfinished.

@zackees
zackees force-pushed the infra/1269-flatpak-pruned-build branch from 446a129 to f4cbc95 Compare October 22, 2026 06:08
@zackees
zackees marked this pull request as ready for review October 22, 2026 08:04
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit 7d50081 Oct 22, 2026
24 checks passed
@zackees
zackees deleted the infra/1269-flatpak-pruned-build branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant