Add fail during execution and start test + bug fixes + clean up of list_containers#98
Merged
eywalker merged 3 commits intonauticalab:devfrom Oct 14, 2025
Merged
Conversation
…ner into two functions
There was a problem hiding this comment.
Pull Request Overview
Adds new failure handling tests, status variants, and refactors orchestration logic to improve error reporting and cleanup.
- Introduce tests for pods that fail at start or during execution and refactor
basic_testintoexecute_wrapper - Extend orchestrator to report
FailedToStartPoderrors and newStarting/Undefinedstatuses, with polling for results - Clean up container listing filters and centralize run-info extraction in core implementation
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/orchestrator.rs | Refactored test helper, added failure tests, and cleaned up list assertions |
| src/uniffi/orchestrator/mod.rs | Added Starting/Undefined statuses and derived PartialEq on PodRun |
| src/uniffi/orchestrator/docker.rs | Wrapped start_container errors in a FailedToStartPod kind and added wait polling |
| src/uniffi/error.rs | Defined FailedToStartPod error variant and helper methods |
| src/core/orchestrator/docker.rs | Centralized run-info extraction and added name-based filters |
| src/core/error.rs | Updated Debug impl to include the new error variant |
Comments suppressed due to low confidence (5)
tests/orchestrator.rs:168
- The comment says the pod should be deleted, but the assertion below checks that it exists in the list. Update the comment to match the intent, or adjust the assertion.
// Make sure the pod has been deleted after failing to start
src/uniffi/error.rs:137
- The doc comment is incomplete. Expand it to explain when
get_container_namereturnsSomeand what it represents.
/// Returns container name if the
src/uniffi/orchestrator/mod.rs:27
- New
StartingandUndefinedstatus variants were added but not exercised by any tests. Consider adding tests that cover these states to ensure correct handling.
Starting,
tests/orchestrator.rs:1
- The crate-level attribute block is indented by one space, which prevents it from being applied. Move
#![expect(...)]to column 0 so it’s recognized.
#![expect(
src/core/orchestrator/docker.rs:12
- There is no
bollard::secretmodule. ImportContainerInspectResponseandContainerSummaryfrombollard::modelsinstead to compile correctly.
secret::{ContainerInspectResponse, ContainerSummary},
Comment on lines
+206
to
+208
| pod.image = "alpine:3.14".to_owned(); | ||
| pod.command = "python file_does_not_exist.py".to_owned(); | ||
|
|
There was a problem hiding this comment.
This assignment is immediately overwritten on the next line. Remove the redundant pod.image (and the first pod.command) to keep the test setup clear.
Suggested change
| pod.image = "alpine:3.14".to_owned(); | |
| pod.command = "python file_does_not_exist.py".to_owned(); |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
eywalker
approved these changes
Oct 14, 2025
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.
Added
Other stuff:
Agent: Add configurable storage ofPodResult#94 to allow test cases above to work