Skip to content

ci: attribute remaining Flatpak compiler costs on demand - #1803

Merged
zackees merged 5 commits into
masterfrom
infra/1760-flatpak-diagnostics
Oct 22, 2026
Merged

zackees merged 5 commits into
masterfrom
infra/1760-flatpak-diagnostics

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #1760. Actual warm production rebuild39812201578/119942032116 succeeded480s with329directhits/2misses; the target remains450s and a three-job median. Add default-off manual compiler attribution to explain remaining costs without changing compiler flags or freshness.

  • flatpak-compiler-diagnostics is passed only from workflow_dispatch, defaultfalse in existing caller/reusable workflows; no new workflow files.
  • Configure only generated OBSmodule CCACHE_LOGFILE; dependencies and existing environment remain unchanged.
  • Pinned Flatpak action supports keep-build-dirs, enabled only here so the module-local log survives. Build directories are excluded from production projected archives and experimental compiler/dependency artifacts.
  • Summarize at most16MiB/eight logs into repository-relative source labels, result codes, unsupported option names without values, and log spans. Upload only JSON, not raw commands/environment. Explicitly disclose concurrency and exec-fallback timing limits.
  • Existing full app, Rust wrapper bypass, validators and publication policy remain intact. No user-visible product behavior change or features-ledger requirement. Rust test tiers do not apply to this CI diagnostic.

RED → GREEN and review

RED 6e02903ab: missing helper fails focused import. GREEN ae7b6e9ed: focused23tests pass including interleaved calls, PID reuse, sensitive option/environment exclusion, size bound, module-only configuration and default-off workflow wiring. Full CI self-tests ran1101cases with one failure: new test imported the ci namespace, which the stdlib/local-module checker rejects. Corrected to the existing local-module import convention and verified that checker plus focused suites; remaining1100cases had no failure (6skips).

Parser also consumed an existing real ccache log (two invocations and literal result codes). Same primary reviewer PASS; actual hosted log discovery/output remains to qualify on this branch after PR CI. Existing unchanged workflows are the normal merge gate. No performance saving claimed by this diagnostic itself.

Hosted qualification

Required PR CI Gate119956072020 passed on run39816026591 at ae7b6e9ed. One frozen branch diagnostic run39816641317 is dispatched; actual discovery/report coverage remains pending. No master dispatch or production default changed.

Hosted parser correction

First diagnostic Flatpak job119956905407 succeeded463s; sanitized artifact12442513554 contains347calls,328directhits/3misses and16unsupported results. It did not identify those options/sources: ccache4.14.1 emits canonical Compiler option ... is unsupported before Source file. No unsupported-call attribution is claimed from that first report.

RED 92c06356d reproduces the canonical message, compound option and early rejection. GREEN 9cbb3247e captures supported canonical message forms, strips option values, and parses only the source operand after -c from the private command line as a fallback. Commands/environment remain unpublished. Focused24checks pass; same primary reviewer PASS. New-head CI39818608669 and corrected hosted coverage remain pending.

Completed hosted qualification

Corrected diagnostic run 39820372855, frozen code9cbb3247e, completed the full Flatpak job successfully in472s. The bounded artifact attributes all16 uncacheable calls to obs-browser C++20 sources rejected for -fmodules-ts;347 calls total,327 direct hits and4 cache misses. Log spans do not measure full fallback compiler execution. Portable evidence is committed at59a771cc6; this final commit changes documentation only. Current required CI Gate passed at HEAD59a771cc6. This PR provides opt-in diagnostics; it does not claim the parent performance target is achieved.

@zackees
zackees marked this pull request as ready for review October 22, 2026 17:35
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit 29722de Oct 22, 2026
29 checks passed
@zackees
zackees deleted the infra/1760-flatpak-diagnostics branch October 22, 2026 18:10
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