Skip to content

Phase 2 - Evan Liem#38

Open
EVAnunit1307 wants to merge 13 commits intoUWARG:mainfrom
EVAnunit1307:main
Open

Phase 2 - Evan Liem#38
EVAnunit1307 wants to merge 13 commits intoUWARG:mainfrom
EVAnunit1307:main

Conversation

@EVAnunit1307
Copy link

Tests:

  • python -m tests.integration.test_heartbeat_sender
  • python -m tests.integration.test_heartbeat_receiver
  • python -m tests.integration.test_telemetry
  • python -m tests.integration.test_command
  • python -m pylint modules tests bootcamp_main.py
  • python -m pytest

Logs:

  • logs/heartbeat_sender
  • logs/heartbeat_receiver
  • logs/telemetry
  • logs/command

19:26:33: [INFO] [C:\Users\aclie\bootcamp_WARG_Evan_Liem\autonomy-bootcamp-2025-p2\tests\integration\test_heartbeat_receiver.py | read_queue | 79] Heartbeat status: Disconnected
19:26:35: [INFO] [C:\Users\aclie\bootcamp_WARG_Evan_Liem\autonomy-bootcamp-2025-p2\tests\integration\test_heartbeat_receiver.py | read_queue | 79] Heartbeat status: Disconnected
19:26:36: [INFO] [C:\Users\aclie\bootcamp_WARG_Evan_Liem\autonomy-bootcamp-2025-p2\tests\integration\test_heartbeat_receiver.py | read_queue | 79] Heartbeat status: Disconnected
19:26:36: [INFO] [C:\Users\aclie\bootcamp_WARG_Evan_Liem\autonomy-bootcamp-2025-p2\tests\integration\test_heartbeat_receiver.py | read_queue | 79] Heartbeat status: Connected
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be 4 disconnects in a row

# Mock starting a worker, since cannot actually start a new process
# Create a worker controller for your worker
controller = worker_controller.WorkerController()
args = controller
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just put the controller in the arguements instead

bootcamp_main.py Outdated
Comment on lines 259 to 263
try:
command_output = command_to_main_queue.queue.get(timeout=0.2)
main_logger.info(f"Command output: {command_output}", True)
except queue.Empty:
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be in the same try and except block

@ellyokes253
Copy link
Contributor

reviewed!

Comment on lines 76 to 77
if telemetry_data is None:
break
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just because there's nothing in the queue yet doesn't mean the logic should break

All review feedback addressed:
- Fixed heartbeat_receiver to show 4+ disconnects (timer +3)
- Added queue draining to all test stop() functions
- Combined try-except blocks in bootcamp_main.py
- Fixed command_worker queue handling (timeout/continue pattern, no break on None)
- All integration tests passing
- Code formatted with black
- No linter errors
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.

2 participants