Skip to content

Mock IA CDX response in test_agg_select_mem_unrewrite_headers#987

Merged
ato merged 1 commit into
mainfrom
ia-cdx-fixture
Mar 31, 2026
Merged

Mock IA CDX response in test_agg_select_mem_unrewrite_headers#987
ato merged 1 commit into
mainfrom
ia-cdx-fixture

Conversation

@ato
Copy link
Copy Markdown
Collaborator

@ato ato commented Mar 27, 2026

Description

This makes test_agg_select_mem_unrewrite_headers use a local fixture instead of the live response from https://web.archive.org/cdx.

Motivation and Context

The IA CDX service frequently times out causing transient test failures.

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed.

The IA CDX service frequently times out causing transient failures of this test.
@wumpus
Copy link
Copy Markdown

wumpus commented Mar 30, 2026

This is a good idea. cdx_toolkit testing is now 100% mocked because of IA's cdx api and Common Crawl's cdxj api have a lot of rate limits, thanks to abuse.

@ato ato merged commit 350d940 into main Mar 31, 2026
8 checks passed
@ato ato deleted the ia-cdx-fixture branch March 31, 2026 01:05
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