Skip to content

ci: record compact execution logs on the test jobs and diff two runs to name cache-miss causes (part of #13354) #13724

Open

Description

@TrapsterDK

preflight and quality-matrix on macos_arm64 still run about half their spawns locally (job 135031150690: 1449 of 2967 spawns ran in darwin-sandbox, about a 1900 s critical path). Nothing records why a spawn missed the remote cache, so each investigation starts over. The Julia chain (JuliaPrecompile, JuliaSysimage, JuliaLink) is one known cause: its outputs are not reproducible (#13448, #12869). When a cold run is cancelled at the job cap, its long actions never upload, so the next run starts cold too.

Where

  • .github/workflows/ci.yml: the test steps of preflight, quality-matrix and launch-heavy.
  • tools/testing/src/exec_log.rs: it reads only spawn fields 6, 7 and 8 (outputs, target label, mnemonic).
  • tools/testing/determinism_check.rs: the only user of exec_log.rs today.

Fix

  • Pass --execution_log_compact_file="$RUNNER_TEMP/exec.log" to those steps and upload the file with if: always() as exec-log-<job>-<platform>, keeping it for 7 days.
  • Extend exec_log.rs to read the spawn's digest (16), cache_hit (12), remote_cacheable (15), runner (11) and metrics.total_time (18.1), and to resolve input sets (6) to file digests.
  • Add a diff mode that takes two logs and prints the slowest local spawns. For each spawn key, it also prints the inputs, args and env that differ.
  • Unit tests: use small compact-log fixtures with a hit, a miss caused by a changed input, and a non-cacheable spawn.
  • Done when a diff of two consecutive main runs on macos_arm64 names the first input that differs for each of the 20 slowest local spawns.

Part of #13354.

Activity

  1. added
    P2
    on Nov 19, 2026
  2. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    Next slice: #13781 adds the exec logs on preflight/quality-matrix and determinism_check diff. Still to do: add the same flag and upload to launch-heavy once #13727 lands, then run the diff on two consecutive macos_arm64 main runs and check it names the first differing input for the 20 slowest local spawns.


    Generated by Claude Code

  3. added
    model:opus
    on Nov 19, 2026
  4. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    #14070 makes determinism_check diff rank only cacheable misses, sum uncacheable spawns per mnemonic, and print origin: lines tracing each changed input to its source or non-reproducible producer. Remaining:


    Generated by Claude Code

  5. TrapsterDK commented on Nov 20, 2026

    @TrapsterDK
    CollaboratorAuthor

    Blocked: #14067 (launch-heavy exec log) waits on draft #13727, and only one main ci.yml run (44517636243) has exec-log artifacts, so the two-run macos_arm64 diff waits on the next main run. Next slice: #14067 once #13727 lands, then determinism_check diff on two consecutive macos_arm64 main runs.


    Generated by Claude Code

  6. added
    blocked
    on Nov 20, 2026
  7. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor

    This issue has the blocked label but no Blocked on: line in its body. Add one naming the blocking issue (#N), a pull request URL, or the owner action. See CONTRIBUTING.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2blockedmodel:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions