Skip to content

e2e: deposit-short top-up fetch under-pays by about two intervals in CI since #2709 #2718

Closed

Description

@thiras

anvil e2e (journeys) fails in CI on crates/e2e/tests/cli_fetch_topup.rs — fetch_of_blob_far_exceeding_deposit_settles_whole_wire_cost_once, in all three nextest tries:

Error: under-pay: settled 18095 µUSDC, below the whole-blob WIRE cost of 20083 µUSDC. A paid frontier derived from a stale per-leg baseline overshoots the true one and skips billing exactly this way

This is the same journey as #2629, which #2662 closed. The shortfall now is 1988 µUSDC (one try showed 2000), about two 1 MiB intervals at this rate. #2629 showed 996.

When it fails

Run Ref Result
40707738910 main @ 80d49c9 pass
40717568317 #2709 @ eae17c6 pass
40721618766 #2709 @ 19521b5 fail (18095, 18083)
40724425626 #2709 @ b1f869d pass
40726354301 main @ 6d610cf (#2709 merged) fail (18095 ×3)
40741912153 #2712 @ c383eb9 fail (18095 ×3)

So it is intermittent and depends on load, like #2629, and it appears with #2709. #2709 makes the admit path count getPool.totalRedeemed toward a resolved pool's remaining, so the node now sees less headroom on a pool it seeded. In this deposit-short journey, a lower remaining makes the mid-stream PoolExhausted stop, and the client's top-up and resume, happen earlier or more often. That is where #2629's stale-baseline under-pay came from.

Ask

Find out whether this is a real under-pay or a test that reads the lane too early. Candidates:

Fix the cause, not the bound.

Repro

Load is the trigger, as in #2629:

cargo build -p decdn-cli -p decdn-node
cargo nextest run -p decdn-e2e --features anvil-e2e --retries 0 --no-fail-fast

Run it several times. Run alone, the test passes.

Activity

  1. added
    kind:test
    area:payments
    on Oct 28, 2026
  2. thiras commented on Oct 28, 2026

    @thiras
    ContributorAuthor

    Another failure: 40747573264, #2712 @ 84651ca. Settled 18095 / 18083 / 18095 against 20083 in the three tries. The suite is fail-fast, so only 48 of 113 tests ran.

  3. self-assigned this
    on Oct 28, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  5. moved this from In progress to Done in deCDNon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:paymentskind:test

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions