Skip to content

ci: distinguish cumulative Flatpak counters from job performance - #1383

Merged
zackees merged 2 commits into
masterfrom
infra/1286-flatpak-counter-scope
Oct 18, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1286-flatpak-counter-scope

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

Summary

Refs #1286.

The completed Flatpak consumer reports Hits: 602 / 889, but these statistics include restored history. The pinned builder action restores the whole state directory after the separate compiler-cache restore, and the workflow has no counter reset/baseline after that final restore. The collector previously stored these values without identifying that scope.

Add counter_scope: restored-cumulative and job_delta_available: false to Flatpak ccache observations. Keep raw counts, other compiler reports, repeated observations and unknown baselines unchanged. No subtraction across unrelated runs; no new workflow, cache policy, test skip, or extra full build.

RED → GREEN and actual feed

  • RED b891f78b6: the new observed-value regression fails because scope metadata is absent.
  • GREEN: uv run -m unittest ci.test_cache_metrics ci.test_ci_tests_stdlib_only ci.test_tool_guard ci.test_uv_run passes all 31 tests.
  • Parsed the actual gh run view 39090099191 --job 117564891083 --log feed: both repeated ccache observations preserve 602/889 and explicitly mark restored cumulative scope with no per-job delta.
  • git diff --check passes. Raw local proof: build_ci_audit/flatpak-counter-scope-real-proof.json.

Focused collector correction: local RED and separate GREEN pushed together under coordination policy. This improves measurement fidelity; it does not add per-build counter capture or claim a throughput improvement.

@zackees
zackees enabled auto-merge October 18, 2026 02:53
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit 2e9fa51 Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-flatpak-counter-scope branch October 26, 2026 15:45
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