Repository navigation
fix(tasks): one malformed file no longer stops tasks inspect - #227
Conversation
…ks inspect Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
…e does not stop tasks inspect Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #227 +/- ##
========================================
Coverage 92.25% 92.25%
========================================
Files 236 239 +3
Lines 29582 29937 +355
Branches 4865 4918 +53
========================================
+ Hits 27290 27618 +328
- Misses 1615 1632 +17
- Partials 677 687 +10
🚀 New features to boost your workflow:
|
Review: #227 — fix(tasks): one malformed file no longer stops tasks inspectHead d68e563 · base 85b8d84 · verdict: approve, minor suggestions Verified claimsProbe
All 4 new test cases fail on base and pass on head. Swept for the same class of bug, all fine on both trees: FindingsNone at important or higher. Suggestions (minor)
|
… a path Review on intel#227: tests: 5 no longer crashed but passed with no problem, while a bad questions value gets one. The non-list test cases now assert exact items and the problem, and tests: true is a case of its own. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
|
Thanks. 403cf7a takes the first two:
Full suite, ruff and mypy pass on Linux. I left |
Summary
tasks inspectlet one malformed file end the whole scan, so no other file under the path was reported:tests: 5ortests: true, and a dokimi questions file with"questions": nullor5: the value was iterated without a type check (TypeError). Both now read as no items; the questions loader still reports the bad value as a problem. The fix is the expression suggested in the review on feat(harnesses): per-phase network policy for docker-* runs, off by default #218.AttributeErroronstartswith), and an explore task withlines: [.inf](OverflowError, which_parse_linesdid not catch). Found while sweepingtask_formats/for the same class.Evidence
python cli.py tasks inspect <dir>on a directory with the bad file plus a valid samples file: main -> traceback, nothing reported; this branch -> both files reported.Merge Danger
Door: two-way. Revert restores the crashes and nothing else.
Blast Radius:
tasks inspect(and the explore task loader's error type for an infinite line), only on the malformed values above.