Skip to content

Conversation

@uh-oh-monteiro
Copy link

@uh-oh-monteiro uh-oh-monteiro commented Jan 22, 2026

For any number of clients subscribed to a test, each will be able to view the test reports of the child tests on the web ui. Previously only 1 client (the earliest subscribing one) was able to view child test results. The others could only view the parent test. This was a huge issue with having visibility on ICT test results in real time.

This was done with Claude.

Works fine with a single parent test, and for multislot tests

uh-oh-monteiro and others added 2 commits January 22, 2026 11:45
This fixes several issues with multislot test display in the web UI:

1. pub_sub.py: Handle send errors gracefully so all clients receive
   messages even if one client fails (e.g., due to event loop issues
   in child test threads)

2. station_server.py:
   - Add phase descriptor caching to persist after test completion
   - Detect new child tests when polling and re-poll to include them
   - Fix race condition by updating _last_update_message before publish()
   - Track 'update' messages separately from 'record' messages for
     new subscriber initial state

3. station.service.ts: Don't overwrite stored child tests with empty
   array when 'record' messages arrive

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21232247966

Details

  • 0 of 100 (0.0%) changed or added relevant lines in 2 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.6%) to 60.904%

Changes Missing Coverage Covered Lines Changed/Added Lines %
openhtf/output/servers/pub_sub.py 0 4 0.0%
openhtf/output/servers/station_server.py 0 96 0.0%
Files with Coverage Reduction New Missed Lines %
openhtf/output/servers/station_server.py 4 0.0%
Totals Coverage Status
Change from base Build 17748747896: -0.6%
Covered Lines: 4689
Relevant Lines: 7699

💛 - Coveralls

@uh-oh-monteiro uh-oh-monteiro merged commit e6b6276 into halter-mods Jan 22, 2026
14 checks passed
@uh-oh-monteiro uh-oh-monteiro deleted the fix/multislot-reporting branch January 22, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants