Repository navigation
Conversation
tire-fire
force-pushed
the
feature/preflight-rounds
branch
from
November 13, 2026 05:28
66bb9b7 to
b600d06
Compare
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.
Summary
engine/engine.go,engine/db/preflight.go,engine/db/servicechecks.go,engine/db/teams.go,www/api/graphs.go,www/api/services.go,www/api/admin.go):ScoringEngine.PreflightPending()is true (!GetCompetitionStarted() && !HasScoredRound()),ScoringEngineread methods (LastRound,WithUptimes,TeamSummary,ServiceAllChecksByTeam) serve preflight round results and uptimes through/api/graphs/services,/api/graphs/uptimes,/api/services/{team_id},/api/services/{team_id}/{service_name}(all gated toadminbyCheckCompetitionStarted), and/api/engine(gated byADMINAUTH)./admin/engineand/admin/runnerslabel round progress asPreflight round Nduring preflight.round_schemas/service_check_schemas/UptimePerService).GET /api/engine/preflightendpoint now that the WebUI endpoints serve preflight directly.engine/engine.go):preflight()publishesround_finishon Rediseventsat the end of each preflight round so Divisor rotates runner source IPs during preflight too.engine/db/db.go):ResetScores()setsCompetitionStateSchema.Started = falsewhile preservingStartedAt(the imported-inject anchor) so resetting scores always returns the engine to preflight.Verification
go vet ./...go test -race -p 1 ./engine -run 'TestPreflight|TestResetScores'go test -race -p 1 ./tests/integration -run 'TestGraphs|TestPreflight'/graphs,/services(including drilldown), and/admin/engineduring preflight