Skip to content

fix(bazel): pin rules_wasm_component via git_override (Rocq Proofs unblocker)#328

Merged
avrabe merged 2 commits into
mainfrom
fix/bazel-rules-wasm-component-git-override
May 25, 2026
Merged

fix(bazel): pin rules_wasm_component via git_override (Rocq Proofs unblocker)#328
avrabe merged 2 commits into
mainfrom
fix/bazel-rules-wasm-component-git-override

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 24, 2026

Summary

Pin rationale

Test plan

  • CI — Rocq Proofs job is the one to watch
  • Verify other PRs' Rocq Proofs go green after this merges

Refs: REQ-086

🤖 Generated with Claude Code

PR #315 added `bazel_dep(name = "rules_wasm_component", version =
"1.0.0")` for the REQ-086 witness MC/DC work, but did not add a
git_override clause. The Bazel Central Registry does not publish
rules_wasm_component, so Bazel reports:

  ERROR: Error computing the main repository mapping: in module
  dependency chain <root> -> rules_wasm_component@1.0.0: module
  rules_wasm_component@1.0.0 not found in registries:
    * https://bcr.bazel.build/modules/rules_wasm_component/1.0.0/MODULE.bazel: not found

…and the Rocq Proofs CI job exits non-zero after ~5 seconds. This
has been red on every PR since #315 merged on 2026-05-23.

Mirror the rules_rocq_rust pattern that already lives in this file:
declare bazel_dep at the BCR version + git_override to the pulseengine
repo at a pinned commit. Pin to fbe2057 (#470, "feat: add Nix flake
for a reproducible development environment", 2026-05-22 — the most
recent commit on rules_wasm_component default branch as of this fix
and the closest to the date PR #315 was merged).

Refs: REQ-086

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

First CI attempt on this branch surfaced a different Bazel error:

  ERROR: error during computation of main repo mapping: error running
  'git reset --hard fbe20571eedaa75676b1f97e74dde0b3ff2f8050' while
  working with @rules_wasm_component+

The earlier fbe2057 commit is still in the upstream history but
Bazel's shallow git fetch (and/or the self-hosted runner's git cache)
can't resolve it on-demand. d2347fb is current main HEAD on
rules_wasm_component — shallow clones land on it directly so the
`git reset --hard` is a no-op.

This isolates the unblocker to the production-side that actually
works under our runner geometry.

Refs: REQ-086

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: bcc267c Previous: 89f243c Ratio
store_insert/10000 17336324 ns/iter (± 2078544) 12242554 ns/iter (± 359791) 1.42
link_graph_build/10000 35635454 ns/iter (± 3605710) 23196972 ns/iter (± 438410) 1.54
validate/10000 19024398 ns/iter (± 2701047) 12155462 ns/iter (± 114767) 1.57

This comment was automatically generated by workflow using github-action-benchmark.

@avrabe avrabe merged commit 54d609a into main May 25, 2026
18 of 38 checks passed
@avrabe avrabe deleted the fix/bazel-rules-wasm-component-git-override branch May 25, 2026 04:20
avrabe added a commit that referenced this pull request May 25, 2026
Same transient-connection-drop flake class that landed in
fetch_page_with_retry (PR-train preceding v0.13.0). The raw
TcpStream POST + read_to_end occasionally returns empty data on
self-hosted-runner contention, leaving the HTTP status parsed as 0
and the assertion failing with "got status 0" — observed on PR #328
(no serve-code change in the PR, the failure was the test, not the
production code).

Extract a `post_reload_status` helper that retries once on
`status == 0` after a 200 ms backoff (mirroring fetch_page_with_retry
exactly), and use it from test_reload_yaml_error_returns_error_response.
The other reload tests already work fine via fetch_with_timeout so
they don't need the helper yet.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
avrabe added a commit that referenced this pull request May 25, 2026
Same transient-connection-drop flake class that landed in
fetch_page_with_retry (PR-train preceding v0.13.0). The raw
TcpStream POST + read_to_end occasionally returns empty data on
self-hosted-runner contention, leaving the HTTP status parsed as 0
and the assertion failing with "got status 0" — observed on PR #328
(no serve-code change in the PR, the failure was the test, not the
production code).

Extract a `post_reload_status` helper that retries once on
`status == 0` after a 200 ms backoff (mirroring fetch_page_with_retry
exactly), and use it from test_reload_yaml_error_returns_error_response.
The other reload tests already work fine via fetch_with_timeout so
they don't need the helper yet.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
avrabe added a commit that referenced this pull request May 25, 2026
Same transient-connection-drop flake class that landed in
fetch_page_with_retry (PR-train preceding v0.13.0). The raw
TcpStream POST + read_to_end occasionally returns empty data on
self-hosted-runner contention, leaving the HTTP status parsed as 0
and the assertion failing with "got status 0" — observed on PR #328
(no serve-code change in the PR, the failure was the test, not the
production code).

Extract a `post_reload_status` helper that retries once on
`status == 0` after a 200 ms backoff (mirroring fetch_page_with_retry
exactly), and use it from test_reload_yaml_error_returns_error_response.
The other reload tests already work fine via fetch_with_timeout so
they don't need the helper yet.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
avrabe added a commit that referenced this pull request May 25, 2026
Same transient-connection-drop flake class that landed in
fetch_page_with_retry (PR-train preceding v0.13.0). The raw
TcpStream POST + read_to_end occasionally returns empty data on
self-hosted-runner contention, leaving the HTTP status parsed as 0
and the assertion failing with "got status 0" — observed on PR #328
(no serve-code change in the PR, the failure was the test, not the
production code).

Extract a `post_reload_status` helper that retries once on
`status == 0` after a 200 ms backoff (mirroring fetch_page_with_retry
exactly), and use it from test_reload_yaml_error_returns_error_response.
The other reload tests already work fine via fetch_with_timeout so
they don't need the helper yet.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
avrabe added a commit that referenced this pull request May 25, 2026
Same transient-connection-drop flake class that landed in
fetch_page_with_retry (PR-train preceding v0.13.0). The raw
TcpStream POST + read_to_end occasionally returns empty data on
self-hosted-runner contention, leaving the HTTP status parsed as 0
and the assertion failing with "got status 0" — observed on PR #328
(no serve-code change in the PR, the failure was the test, not the
production code).

Extract a `post_reload_status` helper that retries once on
`status == 0` after a 200 ms backoff (mirroring fetch_page_with_retry
exactly), and use it from test_reload_yaml_error_returns_error_response.
The other reload tests already work fine via fetch_with_timeout so
they don't need the helper yet.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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