Skip to content

fix(solvers/test): correct instance-bucket paths, v1→v2 competition endpoint, retention note - #659

Open
KaiserSnipes wants to merge 1 commit into
cowprotocol:mainfrom
KaiserSnipes:fix/solver-test-instances
Open

fix(solvers/test): correct instance-bucket paths, v1→v2 competition endpoint, retention note#659
KaiserSnipes wants to merge 1 commit into
cowprotocol:mainfrom
KaiserSnipes:fix/solver-test-instances

Conversation

@KaiserSnipes

Copy link
Copy Markdown
Contributor

The "Sample Test Instances" section of docs/cow-protocol/tutorials/solvers/test.md points at instance URLs that no longer exist and at the retired v1 competition endpoint. Verified on 2026-09-03:

  • …/prod-mainnet/$AUCTION_ID.json → HTTP 404. The bucket's live layout is prod/{chain}/auction/{id}.json (and staging/{chain}/auction/{id}.json for barn), with chain prefixes mainnet, xdai, arbitrum-one, base, polygon, bnb, avalanche, linea, ink, plasma (from a list-type=2&delimiter=/ listing of the bucket).
  • Objects are served with Content-Encoding: gzip; curl --compressed decodes them (noted on the page, since a plain download yields gzip bytes).
  • The bucket keeps roughly the last 30 days: the oldest object on most chains is stamped 2026-08-04T00:00Z, Linea/Plasma 2026-08-03 — a lifecycle expiry, so "all recent auctions" is now "roughly the last 30 days".
  • api/v1/solver_competition/by_tx_hash/… → 404; api/v2/… → 200. The page's 2023 example (0x17271e39…, auction 6462225) no longer resolves on v2 or in the bucket, so it is replaced with a current one that resolves end to end: tx 0xc90348e3… → v2 by_tx_hash → auctionId 13730541 → prod/mainnet/auction/13730541.json (HTTP 200) — plus a one-line pointer to /api/v2/solver_competition/latest so the example does not rot the same way.

No other content on the page is touched (it is still draft: true; the rest predates the current stack and is out of scope here).

…note on the solver test page

The "Sample Test Instances" section pointed at instance URLs that no longer
exist (prod-mainnet/$AUCTION_ID.json -> 404) and at the retired v1
solver_competition endpoint. Verified 2026-09-03: the bucket's layout is
prod/{chain}/auction/{id}.json (staging/... for barn) across mainnet, xdai,
arbitrum-one, base, polygon, bnb, avalanche, linea, ink and plasma; objects
are served gzip-encoded and expire after roughly 30 days; v2 serves.
The 2023 example no longer resolves on v2 or in the bucket, so it is
replaced with a current one that resolves end to end, plus a pointer to
/latest so the example does not rot again.
@KaiserSnipes
KaiserSnipes requested a review from a team as a code owner September 3, 2026 19:16
@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

@KaiserSnipes is attempting to deploy a commit to the cow Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 7abbf4e1-8ca5-4d18-9c5b-496c4587ed03


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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