Repository navigation
Conversation
bburda
force-pushed
the
feat/rosbag-retention-2
branch
from
December 1, 2026 15:43
4b2e539 to
254b11d
Compare
bburda
force-pushed
the
feat/rosbag-retention-2
branch
from
December 2, 2026 12:15
254b11d to
79c4af5
Compare
* feat(fault_manager,gateway): list each rosbag recording's retention priority * fix(gateway): read every attached fault before a rosbag scope check gives up * fix(gateway): download a recording where the list or a fault route shows it * docs(gateway): name the fault manager's App in the rosbag download rule
bburda
force-pushed
the
feat/rosbag-retention-2
branch
from
December 2, 2026 18:24
79c4af5 to
d8ff920
Compare
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.
Pull Request
Summary
Issue 705 asks for the retention metadata on the bulk-data list, so that a client can download the most important recordings first. This PR adds each recording's retention priority to
GET /api/v1/{entity}/bulk-data/rosbags. It also lets the fault manager's own App list and download every recording, and makes the download scope match what the entity's list and fault routes show.This PR is on top of five PRs in the stack. Please review those first. The diff of this PR is against the branch of the PR directly below it.
What it adds:
x-medkit.priorityon every rosbag descriptor: the highest retention priority of the recording's faults, from each fault's current severity. It is 0 without valid retention rules. A recording shared by several entities shows the same value under each.ListRosbags.srv: requestbool all_recordings, responseint64[] priorities, one per row. The fault manager reads the priorities for a whole response with a fixed number of storage reads, not one read per recording.unmanifested_nodes: ignore; in manifest-only discovery it has to be declared.docs/api/rest.rst,docs/requirements/specs/bulkdata.rst,docs/config/fault-manager.rst, the gateway and fault manager READMEs.What changes for users
x-medkit.priorityon each rosbag descriptor.ListRosbags.srvchanged. The gateway and the fault manager must come from the same release.Issue
Type
Testing
colcon build --packages-up-to ros2_medkit_fault_manager ros2_medkit_gateway ros2_medkit_integration_tests, thencolcon test --packages-select ros2_medkit_fault_manager ros2_medkit_gateway ros2_medkit_integration_testsandcolcon test-result --verbose.src/ros2_medkit_integration_tests/test/features/test_rosbag_priority_list.test.py. It covers:all_recordingswith an empty entity.snapshots.rosbag.retention.severity.CRITICAL.priority: 900anddefaults.priority: 10, confirm a WARN and a CRITICAL fault, and readGET /api/v1/apps/<app>/bulk-data/rosbags.Checklist