Repository navigation
Fix etcd test flakiness with shared container - #25
Merged
Merged
Conversation
Replace per-test container startup (13 containers) with a single shared container via TestMain, using per-test key prefixes for isolation. Add a health check in TestMain to ensure etcd is ready before tests run. Reduces test runtime from ~39s to ~6s and eliminates timeout flakiness caused by Docker resource contention during parallel test execution. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
bpalermo
added a commit
that referenced
this pull request
Sep 13, 2026
…768) Clears the two open Dependabot alerts on the site's Python closure: - #24 GHSA-9xwg-3r6f-jcx2 (medium): path traversal in the b64 extension lets an <img src> read files outside base_path. Affects <= 10.21.3, fixed in 11.0.0. - #25 GHSA-gm37-52c6-37mw (high): exponential-backtracking ReDoS in the caret, tilde, betterem, and magiclink inline processors. Affects <= 11.0.0, fixed in 11.0.1. pymdown-extensions 10.21.3 -> 11.0.2 Nothing else in the lock moved. pymdown-extensions is transitive via mkdocs-material, so requirements.in now carries an explicit `pymdown-extensions>=11.0.1` floor with the advisory ids. uv already resolves 11.0.2 from mkdocs-material 9.7.7 alone (the pin in the lock was simply stale), but the floor is what keeps a future resolution — and the alert — from sliding back. Lock regenerated with the exact command in the requirements.in header; MODULE.bazel.lock picks up the new pip hub wheels. Verified: - bazel test //website:all -> //website:site_test PASSED (the strict mkdocs build, --strict, plus the third-party audit) - bazel build //website:site; untarred (149 files) and grepped for unpkg.com, cdn.jsdelivr.net, fonts.googleapis.com, fonts.gstatic.com, cdnjs.cloudflare.com, api.github.com -> 0 hits - make format-check -> clean - bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //... -> clean Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TestMaint.Name()) for data isolation between testsTestMainto verify etcd is ready before tests runt.Cleanupfor consistent resource cleanupResults
Root cause: Each test spawned its own etcd container. When run in parallel with other targets via
bazel test //..., Docker resource contention caused container startup delays exceeding the 5s dial timeout.Test plan
bazel test //...)--runs_per_test=3)🤖 Generated with Claude Code