diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffa403c1ac..7b71d6b839 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -572,6 +572,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | @@ -661,6 +667,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | @@ -750,6 +762,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | @@ -839,6 +857,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | @@ -928,6 +952,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | @@ -1018,6 +1048,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | @@ -1108,6 +1144,12 @@ jobs: for part in ci-parts/atlas-part-*; do mv "$part" "ci-parts/${part#ci-parts/atlas-part-}" done + # A rerun of the run's jobs also finds the part this job uploaded in + # an earlier attempt; it is never this job's input, and the shard + # writes into an empty directory. + case "$LEXLEAN_EXAMPLES_PART" in + shard:*) rm -rf "ci-parts/${LEXLEAN_EXAMPLES_PART##*:}" ;; + esac ls ci-parts - name: Reserve bounded overflow memory for native Atlas run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index a16c623cf9..42cf0ebc8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ workspace carried at those versions without a tag. ## Unreleased +- An Atlas shard of the gate drops the part it uploaded in an earlier attempt + of its run before it runs (SPEC.md §9.4, `RP-14`). "Re-run all jobs" + downloaded that part with the rest, and the shard refused the non-empty + directory (`LLI9001`), so a gate could be recovered only by a new dispatch. - Arrays of fixed-width integers (SPEC.md §17.12, *Arrays*, `SM-39`; no new diagnostic code; changes the language-1.2 identity). Language 1.2 gains the type `array{element: T}` over one fixed-width integer type, lowered to the diff --git a/crates/conformance/src/cases/repository.rs b/crates/conformance/src/cases/repository.rs index 36a232a8c3..8d848e6d22 100644 --- a/crates/conformance/src/cases/repository.rs +++ b/crates/conformance/src/cases/repository.rs @@ -2441,6 +2441,12 @@ pub(crate) fn run(id: &str) { !body.contains("run-id") && !body.contains("github-token"), "§9.4: `{key}` reads the artifacts of this run only" ); + assert!( + body.contains( + " shard:*) rm -rf \"ci-parts/${LEXLEAN_EXAMPLES_PART##*:}\" ;;\n" + ), + "§9.4: `{key}` drops its own part from an earlier attempt before it runs" + ); } for (shard, job_key) in &runs { if shard == crate::shards::JOIN {