CI: isolate network tests from required suite - #752
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughChangesCI network test integration
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/runtests.yml (1)
142-145: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick winConsider setting
persist-credentials: falseon the checkout step.The
actions/checkout@v4action persists theGITHUB_TOKENin the local git config by default. Since this job only runs tests and performs no git pushes or authenticated registry operations, disabling credential persistence reduces the risk of token leakage through artifacts or debug outputs.🔒️ Suggested change
- uses: actions/checkout@v4 with: fetch-tags: 'true' fetch-depth: '0' + persist-credentials: false🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/runtests.yml around lines 142 - 145, Update the actions/checkout@v4 step to set persist-credentials to false alongside the existing fetch settings, while preserving fetch-tags and fetch-depth behavior.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/runtests.yml:
- Around line 142-145: Update the actions/checkout@v4 step to set
persist-credentials to false alongside the existing fetch settings, while
preserving fetch-tags and fetch-depth behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: bd75b1db-7537-42ca-bbac-0bc9ea9a3e3d
📒 Files selected for processing (3)
.github/actions/load-shared-vars/action.yml.github/test_code.sh.github/workflows/runtests.yml
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #752 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 152 152
Lines 14929 14929
=========================================
Hits 14929 14929
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
The localhost HTTP/fsspec tests are marked
networkand can intermittently hang while h5py probes remote HDF5 metadata. Because they currently run inside the required test matrix, those transport-level flakes can block unrelated changes.This PR separates that coverage from the required suite:
-m "not network"and retains coverage reporting;networkrunner mode selects all tests carrying the marker;This is a CI-policy change only. The remote-HDF5 implementation and its existing tests are unchanged.
Validation:
./.github/test_code.sh network: 100 passed initially; coverage-enabled revalidation passed 99 with 1 timeout skip../.github/test_code.sh: 7229 passed, 87 skipped, 100 deselected, 3 xfailed.Changelog
none
Checklist
I have (if applicable):
Summary by CodeRabbit
Tests
Chores