Repository navigation
Conversation
…main The rebase onto main kept main's dist, built from the old main.go; this rebuilds it from the fixed main.go so consolebuild -check passes.
houko
force-pushed
the
fix/flaky-online-assets-tests
branch
from
December 1, 2026 03:02
2a2b57d to
aabbc59
Compare
Contributor
Author
|
|
This branch has not been deployed
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.
Fixes the flaky tests this area had in the last two days of failed
Testruns:TestSmokeViewerSeesNoActions(Windows),TestRunnerRecoversPanickingMatch(both panic tests), andTestWebTransportUnreliableNotBlockedByLostPacket(main).TestDLCResumesInterruptedDownloadViaRangeandTestZshCompletionwere stabilized on main by c42fbe3, PR #2621 merged the Windows editor file locks, and the rest of the list failed only on the branches that made them (see below).Console: a late 401 signed the console out of a session opened since
app.runcleared a service's identity on any 401 that was not an answer to the sign-in call. When the console loads,startasks every service who is signed in; on a page without a session each answer is 401. If one of those was delivered after the operator signed in to that service, it cleared the new session's identity: the service's pages left the navigation while the session was still valid.TestSmokeViewerSeesNoActionsfailed this way on a Windows runner, with the leaderboard page's entry missing aftersignInhad seen it.runnow records the identity the call was sent with and clears the service's identity only while the console still holds that same one; a 401 to a call made for a session the console has replaced keeps the newer session.TestStaleUnauthorizedKeepsNewerSessionholds the leaderboard's first whoami answer until the console has signed in, delivers it, and checks the page stays reachable.Runner panic tests counted time instead of ticks
Both panic tests gave
Runner.Runa 200 or 300 ms deadline and then required the sibling match to have ticked ten times. The Runner drops the ticks a busy machine delays instead of catching up, so a loaded runner never reached ten. The tests now count the sibling's ticks afterOnPanicstopped the panicking match and end the run at the tenth; a 30 s deadline only bounds a sibling that stops ticking, which is the failure they look for.The transport test's shaper took the lost packet's retransmission instead of its datagram
The shaper dropped the next UDP packet of at least 500 bytes. Packets are encrypted, so size was the only handle, and QUIC fills the room a datagram leaves with stream data it has to send — the lost reliable packet's retransmission included once its probe timeout had queued it. The datagram then left in a packet under 500 bytes, which the shaper held back with the retransmission, and the test waited out its deadline for a datagram only
releasecould deliver. Both parts also shared one connection, so the second part could drop a late retransmission of the first part's reliable packet instead of its datagram.armDrop(dropMin, dropMax, holdBelow)drops the first packet of a size range and holds back packets below a chosen size: the reliable packet and its retransmissions are 500 to 899 bytes, the datagram is padded past 900 bytes, and the second part drops 500 to 1280 bytes (quicInitialPacketSize, below every MTU probe) on a connection of its own.The other listed failures
TestDLCResumesInterruptedDownloadViaRange,TestZshCompletion: the stabilization in c42fbe3 replaced the assertions these runs failed on; 100 race runs of the DLC test pass.TestAdminRefusals(feat/admin-operators-2652),TestInstallPackTurnsItsPluginsOn(fix/ask-context-1937),TestOpenUpgradesVersion1Schema(feat/accounts-operator-api-2653),TestRunnerRecoversPanickingMatchon fix/host-stale-epoch: genuine failures of the branches that made them, not flaky.TestSharedDirFSReadsAsDirFSDoes,TestOpenSharedLetsTheFileBeRenamedReplacedAndDeleted: Windows file locks, the subject of the merged PR fix(editor): stop the background problem check and disk watcher from locking project files on Windows #2621.TestOpenFollowsTheProjectand the editormcp entry class belong to fix(editormcp): send a tool call's change notices when it ends #2716.Verification
go run ./pkg/online/admin/console/internal/consolebuild -check: CHECK-OK; the embedded build indistis regenerated anddist.inputsrecords the new inputs.go tool nsgo test ./pkg/online/admin/console/... ./pkg/online/netplay ./pkg/online/gameserver ./pkg/assets: 497 passed, 0 failed.-count=50 -racewith-cpu=1,2and8: 150 passed each; the console tests at-count=10 -race: 20 passed.go tool nsgo check -target macos .: vetted for macos_arm64 and macos_x64;GOOS=windows go vetover the three touched packages: clean.TestStaleUnauthorizedKeepsNewerSessionfails; without the shaper fix the transport test times out.