Skip to content

Reject zero per-repo concurrency - #17

Closed
dumontg wants to merge 1 commit into
imports/10-head-refnamefrom
imports/11-zero-concurrency
Closed

dumontg wants to merge 1 commit into
imports/10-head-refnamefrom
imports/11-zero-concurrency

Conversation

@dumontg

@dumontg dumontg commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Stacked on #16.

Imports tobi/walgit#87 by @behinddwalls, unchanged. A per-repository concurrency of 0 made every git request for a repository wait forever; it is now a config error.

Verified on the top of this stack: cargo clippy --workspace --all-targets -- -D warnings, cargo fmt --check, the crate test suites, and the Azure harness (just test-azure: store contract plus git push, clone, pull and cold restart on Azurite) pass. Known unrelated failures: the runtime stall timing tests in e2e (also intermittent on main) and the web UI asset tests that need pnpm run build.

A zero-sized per-repository semaphore can never grant a permit, so a valid-looking configuration caused every Git request for a repository to wait indefinitely.

Require `server.max_concurrent_per_repo` to be positive and add a regression test for the invalid zero value.

✅ `cargo test -p walgit-config zero_per_repo_concurrency_is_rejected`
✅ `cargo fmt --all -- --check`
✅ `git diff --check`

Closes tobi#79

(cherry picked from commit 77ade75)
@dumontg

dumontg commented Oct 7, 2026

Copy link
Copy Markdown
Owner Author

Landed on main in 8347913 (merge of the stack top 59b206f), so this PR's changes are on main.

@dumontg dumontg closed this Oct 7, 2026
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.

2 participants