Skip to content

Retry workspace discovery after cancellation - #2629

Draft
zaniebot wants to merge 2 commits into
quality-stack-20261014-04-b02from
quality-stack-20261014-05-b03
Draft

zaniebot wants to merge 2 commits into
quality-stack-20261014-04-b02from
quality-stack-20261014-05-b03

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

A cancelled build could leave workspace discovery registered without a result, causing later discovery for the same root to wait indefinitely. Retry initialization when the original discovery is cancelled.

@zaniebot
zaniebot deployed to automations October 14, 2026 15:08 — with GitHub Actions Active
@codspeed

codspeed Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 54 untouched benchmarks
🆕 15 new benchmarks
⏩ 35 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
🆕 WallTime git_fetch_cold_precise[django] N/A 5.3 s N/A
🆕 WallTime git_fetch_cold_precise[flask] N/A 278.4 ms N/A
🆕 WallTime git_fetch_cold_precise[sampleproject] N/A 36 ms N/A
🆕 WallTime git_fetch_revision_history[django/1] N/A 5.3 s N/A
🆕 WallTime git_fetch_revision_history[django/10] N/A 7.5 s N/A
🆕 WallTime git_fetch_revision_history[django/4] N/A 6.1 s N/A
🆕 WallTime git_fetch_warm_commit[django] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_commit[flask] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_commit[sampleproject] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[django] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[flask] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[sampleproject] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_reference[django] N/A 8.2 ms N/A
🆕 WallTime git_fetch_warm_reference[flask] N/A 8.2 ms N/A
🆕 WallTime git_fetch_warm_reference[sampleproject] N/A 5.9 ms N/A

Comparing quality-stack-20261014-05-b03 (b978d2d) with quality-stack-20261014-04-b02 (8a6cfe6)

Open in CodSpeed

Footnotes

  1. 35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@astral-automations-bot astral-automations-bot Bot added the bug Something isn't working label Oct 14, 2026
@zaniebot
zaniebot added this pull request to stack #2716 October 14, 2026 16:30
@zaniebot
zaniebot force-pushed the quality-stack-20261014-05-b03 branch from 2e89d6f to 8d7cd80 Compare October 14, 2026 17:57
@zaniebot
zaniebot deployed to automations October 14, 2026 18:01 — with GitHub Actions Active
@zaniebot
zaniebot deployed to automations October 14, 2026 18:04 — with GitHub Actions Active
Comment on lines +2923 to +2927
let root = tempfile::TempDir::new()?;
fs_err::write(
root.path().join("pyproject.toml"),
"[project]\nname = 'demo'\nversion = '0.1.0'\n",
)?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Follow the existing workspace fixture style

Use ChildPath and write_str with a multiline TOML literal, matching workspace_cache_reuses_workspace_for_member and workspace_cache_does_not_store_partial_discovery immediately above. This introduces the module’s only fs_err::write fixture setup and compresses the manifest into escaped newlines, making fixture changes harder to read and departing from the required neighboring test style.

@zaniebot
zaniebot force-pushed the quality-stack-20261014-05-b03 branch from 85ab7de to b978d2d Compare October 14, 2026 21:08
@zaniebot
zaniebot deployed to automations October 14, 2026 21:11 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
automations — b978d2d2 Deployed Oct 14, 2026 by zaniebot via review-code-quality / code quality review #10268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants