Repository navigation
Reduce redundant CI tests and repeated simulation setup - #1337
Merged
Merged
Conversation
Confidence Score: 5/5
[Low impact] The PR appears safe to merge; no actionable regression was found. SummaryThis PR reduces repeated test setup without changing production code.
No actionable issue was found. This review used source inspection; tests were not run. Reviews (2) · Last reviewed commit: "test(ci): consolidate redundant tests an..." · Reviewed by Greptile |
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.
Description
pytest collects 18,292 cases, down from 18,384 (92 fewer). This PR consolidates tests across 23 files and updates the light-test references in
.ci/test-efficiency-coverage.json.In a previous
full-prrun, the test execution step took 4 h 38 min 47 s. The GPU phase took 2 h 34 min and the simulation phase took 1 h 57 min. Together they accounted for about 97% of the step. This PR targets repeated scene creation, robot initialization, and state readback in those phases. Original CI jobTests consolidated
robot_firstandscene_firstproposals were selected. Separate unit tests cover one-way selection. Handover still exercises both preloaded and online grasps, with their shared target check run once.fastcollects 44 fewer cases,gpu18 fewer, andsim30 fewer. The counts fordocsanddistributedare unchanged.Three other cleanups keep the same number of collected cases.
tests/sim/spawn/test_visuals.py, covering 12 test functions and one helper. The later definitions already shadowed the earlier ones, so pytest still collects 126 cases from the file.Validation and timings
Each row shows pytest elapsed time for the specified group, run separately on the same machine in
py312. The full PR job duration still needs to be measured in CI.Full test collection completed before and after the change. Focused tests exercised native simulation, GPU readback, and wheel installation with multiple workers. All 192 tests in
tests/cipassed.Type of change
Checklist
black .with Black 26.10.1 and passed the repository-wide formatting check.python docs/scripts/check_api_docs.py. All 5,081 public exports are documented.filelock, which the wheel tests use.