Skip to content

Raise the stop flag after the first key, not after 50 ms (0.6.7) - #57

Merged
sotashimozono merged 1 commit into
mainfrom
stop-after-first
Sep 25, 2026
Merged

sotashimozono merged 1 commit into
mainfrom
stop-after-first

Conversation

@sotashimozono

Copy link
Copy Markdown
Member

test_run_adversarial.jl's "stop_flag raised mid-execution" test raised the flag from a 50 ms Timer. That assumed run! starts within 50 ms.

With QAtlasHub/DataVault.jl#58 (0.8.7), the run-start observation also keeps every package the process loaded, so that a revision can be recomputed from itself. Startup then takes about 0.5–0.7 s (measured with 21 packages). The timer fires before any key runs, and result.done >= 1 fails with 0 >= 1.

That is the failure in #58's downstream SweepRunner job. I reproduced it locally with the test from main against DataVault 0.8.7.

Change. A concurrent task still raises the flag, but now it waits until the first key has finished instead of waiting on a clock. The test checks the same thing and no longer depends on startup time. Locally, the whole file passes against DataVault 0.8.7 (6 testsets).

Test-only change. The version bump is for VersionCheck.

🤖 Generated with Claude Code

The test assumed `run!` starts within 50 ms. With DataVault 0.8.7 a run-start
observation keeps the packages the process loaded, which takes most of a
second, so the timer fired before any key ran and `result.done >= 1` failed
(0 >= 1), both on DataVault#58's downstream job and locally. The old test was
run against 0.8.7 here and fails the same way; this one passes.

The flag is still raised by a concurrent task, now once the first key has
finished, so the test says the same thing without a clock.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

📚 Docs preview: https://qatlashub.github.io/SweepRunner.jl/previews/PR57/

(updates on each push to this PR)

@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sotashimozono
sotashimozono merged commit 1f1580c into main Sep 25, 2026
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant