Repository navigation
Commit 5af7a1e
committed
Make scan exit alike in human and JSON output
A scan whose detail queries all succeeded but returned no records
exited 1 in human output ("could not fetch patch details") and 0 with
--json, so CI and a developer saw different results for the same API
state. Human --dry-run --prune also never previewed the GC that the
--json arm reports, and hosted --json passed the raw --prune flag
where the human arm used the policy-gated one.
Only a real fetch failure (every query errored) now fails either arm;
the human dry run previews the GC; hosted mode gets the gated prune in
both arms (#1062).
Assisted-by: Claude Code:claude-opus-5-51 parent 7c2eec7 commit 5af7a1e
4 files changed
Lines changed: 47 additions & 29 deletions
File tree
- crates/socket-patch-cli
- src/commands/scan
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
557 | 560 | | |
558 | 561 | | |
559 | 562 | | |
| |||
606 | 609 | | |
607 | 610 | | |
608 | 611 | | |
609 | | - | |
| 612 | + | |
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
| |||
503 | 502 | | |
504 | 503 | | |
505 | 504 | | |
506 | | - | |
507 | 505 | | |
508 | 506 | | |
509 | 507 | | |
510 | 508 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
515 | 512 | | |
516 | 513 | | |
517 | | - | |
518 | 514 | | |
519 | 515 | | |
520 | 516 | | |
| |||
2544 | 2540 | | |
2545 | 2541 | | |
2546 | 2542 | | |
| 2543 | + | |
2547 | 2544 | | |
2548 | 2545 | | |
2549 | 2546 | | |
| |||
2843 | 2840 | | |
2844 | 2841 | | |
2845 | 2842 | | |
2846 | | - | |
2847 | | - | |
2848 | | - | |
2849 | | - | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
2850 | 2848 | | |
2851 | 2849 | | |
2852 | 2850 | | |
| |||
2864 | 2862 | | |
2865 | 2863 | | |
2866 | 2864 | | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
2870 | | - | |
2871 | | - | |
2872 | | - | |
2873 | | - | |
2874 | 2865 | | |
2875 | 2866 | | |
2876 | 2867 | | |
| |||
3228 | 3219 | | |
3229 | 3220 | | |
3230 | 3221 | | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
3231 | 3235 | | |
3232 | 3236 | | |
3233 | 3237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2852 | 2852 | | |
2853 | 2853 | | |
2854 | 2854 | | |
2855 | | - | |
2856 | | - | |
| 2855 | + | |
| 2856 | + | |
2857 | 2857 | | |
2858 | 2858 | | |
2859 | 2859 | | |
2860 | 2860 | | |
2861 | | - | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
2862 | 2867 | | |
2863 | 2868 | | |
2864 | 2869 | | |
| |||
2887 | 2892 | | |
2888 | 2893 | | |
2889 | 2894 | | |
2890 | | - | |
2891 | | - | |
2892 | | - | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
2893 | 2901 | | |
2894 | 2902 | | |
2895 | 2903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
937 | 940 | | |
938 | 941 | | |
939 | 942 | | |
| |||
0 commit comments