Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/sharded-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,20 @@ on:
description: 'Report what the timing history says about the shape of the suite.'
type: boolean
default: true
cache:
description: >
Cache the Julia depot between runs with `julia-actions/cache`. `true` is right for a
HOSTED runner, whose depot is gone at the end of the job. Set it FALSE on a pool whose
depot already persists: there the restore is a no-op and the SAVE is not.

Measured on one green eight-shard run (FunctionMeasures.jl 30826019824): 44–182 s of
post-step per shard, ≈620 s of runner time per run, against 58–268 s of actual testing —
a cache costing about what the tests cost, for a depot that was already on the box. And
when it does not merely cost, it hangs: three jobs on 2026-08-03 whose test step
SUCCEEDED went red or never finished in that post-step, one of them holding a runner for
114 minutes, which reads downstream as ordinary queueing. See #62.
type: boolean
default: true
steal:
description: >
Claim work instead of being assigned it. Each shard runs whatever is still unclaimed,
Expand Down Expand Up @@ -320,6 +334,7 @@ jobs:
with:
version: ${{ inputs.julia-version }}
- uses: julia-actions/cache@v3
if: ${{ inputs.cache }}
with:
cache-name: testshards
include-matrix: 'false'
Expand Down Expand Up @@ -442,6 +457,7 @@ jobs:
with:
version: ${{ inputs.julia-version }}
- uses: julia-actions/cache@v3
if: ${{ inputs.cache }}
with:
# ONE key for all shards. They instantiate the same project, so a per-shard key
# would keep N separate depots and pay precompilation N times over — the dominant
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "TestShards"
uuid = "acceef1d-f5e0-4fe4-a546-818dc56ce7b2"
version = "0.3.33"
version = "0.3.34"
authors = ["sota shimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp>"]

[deps]
Expand Down
Loading