Traffic-Based App Rewards: Resolve bootstrap errors - #6466
Draft
adetokunbo wants to merge 7 commits into
Draft
Conversation
adetokunbo
force-pushed
the
adetokunbo/cip-104-first-sv-missing-traffic-summaries-schema-fix
branch
from
July 22, 2026 05:15
13968ea to
974c65c
Compare
8 tasks
Signed-off-by: Tim Emiola <adetokunbo@emio.la>
Signed-off-by: Tim Emiola <adetokunbo@emio.la>
Signed-off-by: Tim Emiola <adetokunbo@emio.la>
Signed-off-by: Tim Emiola <adetokunbo@emio.la>
Signed-off-by: Tim Emiola <adetokunbo@emio.la>
Signed-off-by: Tim Emiola <adetokunbo@emio.la>
…available Signed-off-by: Tim Emiola <adetokunbo@emio.la>
adetokunbo
force-pushed
the
adetokunbo/cip-104-first-sv-missing-traffic-summaries-schema-fix
branch
from
July 23, 2026 02:56
e1b7109 to
5e792a1
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrects the bootstrap logic in the ingestion pipeline to remove the potential causes of flakes in the
TrafficBasedRewardsTimeBasedIntegrationTestFixes #6463
Fixes #6499
The firstSV bootstrap creates the app activity meta row before the sequencer serves traffic, which conflated round completeness metadata with the traffic summary enforcement boundary. This caused spurious
NoTrafficSummarieserrors on subsequent verdict batches.Additionally,
earliestRoundused a fallback chain wherelastArchivedRoundOcould shadow the-1bootstrap when verdict ingestion lagged behind the reference store, permanently excluding round 0 from the completeness range.Changes:
started_ingesting_atnullable (V073 migration). The meta row is created with NULL during bootstrap;updateStartedIngestingAtIfNullDBIOpopulates it when the first batch with traffic summaries arrives. This a metadata-only change in PostgresSql, which should make it possible to apply without truncationearliestRoundunconditionally-1for firstSV, matching the existing unconditional override onlastArchived.The hardcoded
-1/0will be generalized toinitialRound - 1/initialRoundfor non-zero round bootstrap in PR #6000 (de29752a87). That commit adopts theif/elsepattern from this PR on rebase.Pull Request Checklist
Cluster Testing
/cluster_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./upgrade_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./hdm_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./lsu_teston this PR to request it, and ping someone with access to the DA-internal system to approve it.PR Guidelines
Fixes #n, and mention issues worked on using#nMerge Guidelines