Skip to content

test: catch INDEXER_RS_MIN_GRT_PER_30_DAYS drift from indexer-rs upstream - #690

Open
ayushsingh82 wants to merge 1 commit into
edgeandnode:mainfrom
ayushsingh82:test/indexer-rs-min-grt-drift-check
Open

test: catch INDEXER_RS_MIN_GRT_PER_30_DAYS drift from indexer-rs upstream#690
ayushsingh82 wants to merge 1 commit into
edgeandnode:mainfrom
ayushsingh82:test/indexer-rs-min-grt-drift-check

Conversation

@ayushsingh82

Copy link
Copy Markdown

Closes #620.

Summary

INDEXER_RS_MIN_GRT_PER_30_DAYS in bin/dipper-service/src/config.rs mirrors indexer-rs's [dips.min_grt_per_30_days] table, but the only thing pinning it was a docstring referencing a commit. When upstream changes those values, the const silently goes stale and operators run selection against ceilings that no longer match what indexers actually publish.

Added it_min_grt_per_30_days_matches_indexer_rs_upstream, an integration test that fetches indexer-rs's current main branch config and fails if the parsed [dips.min_grt_per_30_days] values diverge from our const, instead of drift going unnoticed until someone checks by hand.

Also fixed the docstring's upstream link — it pointed at mb9/dips-signalling-endpoint, which was merged via indexer-rs#1037 back in June and the branch deleted since, so the link 404s today.

No production code changes — purely a new integration test plus a doc-comment fix.

Test plan

  • cargo test -p dipper-service it_min_grt_per_30_days_matches_indexer_rs_upstream — passes live against indexer-rs's current main
  • Confirmed it's excluded from just test-unit's filter (tests:: minus tests::it_) and picked up by just test-it's filter (tests::it_)
  • just check (cargo clippy -- -D warnings --force-warn deprecated --force-warn dead-code) — clean
  • just fmt-check (cargo +nightly fmt --all -- --check) — clean

…ream

The const mirrors indexer-rs's [dips.min_grt_per_30_days] table but was
only pinned in a docstring, so an upstream change would go unnoticed
until an operator ran against stale ceilings. Adds an integration test
that fetches indexer-rs's current main branch and fails if the values
diverge, and updates the stale docstring reference (the branch it
pointed to was merged via indexer-rs#1037 and deleted back in June).

Closes edgeandnode#620
@ayushsingh82

Copy link
Copy Markdown
Author

@MoonBoi9001 opened this against #620 — would appreciate a look when you have a moment.

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.

Default selection ceilings silently drift from indexer-rs upstream

1 participant