Repository navigation
Fix TeamHeartbeat failure/corrupt-frame retention and stale TeamHudReading tests - #5290
Merged
Merged
Conversation
…overy, and stale TeamHudReading tests
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
Fixes two real bugs in heartbeat board publication plus 4 stale
TeamHudReading/TeamUpdateStoretest sites exposed bytests/test_team_notifications.py:TeamHeartbeat.failedpre-HUD failure retention (src/agent_comms/team/team_heartbeat.py:466,src/agent_comms/team/team_hud.py:593):TeamHudfor a recipient,TeamHeartbeat.failed()skipped appending tochanged_huds, dropping the failure packet fromTeamBoardPublicationStoreso muted-heartbeat failure retention returned()and repeated failures failed to deduplicate.TeamHud.for_failure(...)and retained the failure packet inTeamBoardPublicationStoreeven before a first full HUD frame exists.src/agent_comms/team/team_hud.py:896,1014):TeamBoardPublicationStore.replace_all()already caughtRecordProblemsto overwrite an unreadable future-build publication file, butTeamBoardPublicationStore.retained()andwrite_all()crashed withRecordProblemsbeforeTeamHeartbeatEffects.pass_bodyever reachedreplace_all().retained()andwrite_all()now treat an unreadable stored publication as empty for writers while readers (read,read_cut,read_for) continue surfacingRecordProblems->TeamHudUnreadable.tests/test_team_notifications.py):test_team_page_reads_each_beats_frame_and_nothing_betweenandtest_preparing_the_board_answers_each_read_outcome_through_its_ownerto exercise synchronousTeamHudReading.prepare(comms, revision)/RetryObservationStep/TeamHudObserved.cut.hudsinstead of the removed asyncreading.preparation/reading.read_boardattributes.TeamUpdateStoretest sites (:451,:590,:862) toTeamBoardPublicationStore/TeamUpdate.latestand updatedTeamHeartbeat.servedmonkeypatch signature (snapshot=None).Verification
tests/test_team_notifications.py(all 10 previously failing/updated tests): 10 passed (30.57s, plus 39 other tests passing in the prior run -> 49/49).tests/test_team_plan_absent.py+tests/test_shared_team_frames.py: 27 passed (0.97s).REL_IMPORTS=0.