Skip to content

fix(weave): real VCR passthrough for integration tests via vcr_config - #7097

Merged
gtarpenning merged 1 commit into
masterfrom
auto-griffin-claude/vcr-ignore-localhost-integrations
Jun 9, 2026
Merged

fix(weave): real VCR passthrough for integration tests via vcr_config#7097
gtarpenning merged 1 commit into
masterfrom
auto-griffin-claude/vcr-ignore-localhost-integrations

Conversation

@gtarpenning

@gtarpenning gtarpenning commented Jun 8, 2026

Copy link
Copy Markdown
Member

WB-35389

Summary

  • allowed_hosts=[...] on @pytest.mark.vcr(...) is a no-op: pytest-recording only reads it for its block_network feature, never for cassette matching, so it's passed to vcr.use_cassette() and ignored. ClickHouse/wandb traffic was never actually passed through.
  • It bit verifiers_test (9/9 fail on the nightly CH leg with CannotOverwriteExistingCassetteException on the localhost:8123 clickhouse-connect request) and was latent in 21 other integration suites.
  • Add a shared vcr_config fixture (tests/integrations/conftest.py) with the real passthrough (ignore_localhost=True, ignore_hosts=["api.wandb.ai"]) and remove the dead allowed_hosts from all 22 files. No cassette records a localhost/wandb request, so no replayed interaction changes.

Testing

verified on a real clickhouse backend locally: verifiers_test 1 error -> 1 passed, and the full openai shard 27 passed (no regression).

@wandbot-3000

wandbot-3000 Bot commented Jun 8, 2026

Copy link
Copy Markdown

allowed_hosts=[...] on @pytest.mark.vcr is a no-op (pytest-recording only reads
it for block_network, not cassette matching), so clickhouse/wandb traffic was
never passed through. It bit verifiers_test (9/9 fail on the nightly CH leg) and
was latent in 21 other integration suites. Add a shared vcr_config fixture with
the real passthrough (ignore_localhost + ignore_hosts=[api.wandb.ai]) and drop
the dead allowed_hosts from all 22 files.

Co-Authored-By: auto-griffin-claude <auto-griffin-claude@users.noreply.github.com>
@gtarpenning
gtarpenning force-pushed the auto-griffin-claude/vcr-ignore-localhost-integrations branch from ceef216 to 3cb6df9 Compare June 8, 2026 22:47
@gtarpenning
gtarpenning marked this pull request as ready for review June 8, 2026 22:54
@gtarpenning
gtarpenning requested a review from a team as a code owner June 8, 2026 22:54
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gtarpenning
gtarpenning merged commit e902eae into master Jun 9, 2026
179 checks passed
@gtarpenning
gtarpenning deleted the auto-griffin-claude/vcr-ignore-localhost-integrations branch June 9, 2026 01:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants