Repository navigation
Commit 20150bd
* Start fix for superseded hosted gem takeover
Refs #2129. Empty commit that opens the draft PR; the failing test
and the fix follow.
Assisted-by: Claude Code:claude-fable-5-2
* Test vendoring a hosted gem on a superseded patch
Two failing hermetic cases for #2129: a hosted-pinned gem whose
installed copy holds an older patch's bytes must be vendored at the
newer patch, and a native gem in that state must be refused for its
extension. Both report package_not_installed today.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeT7HWFSwgbuzoQv6kJ
* Vendor a hosted gem whose patch was superseded
A gem on a hosted patch has that patch's bytes installed. Once a newer
patch is published, those bytes match neither side of the new record,
so the vendored variant probe skipped the gem and the run reported it
as package_not_installed, though it is installed and the dry run
previewed success.
A sole gem candidate under a live hosted pin now passes the probe with
its installed dir as the source. The gem backend takes no file from
that dir (the copy is the service's build) and still reads its name and
gemspec, so a platform gem or a native extension is refused for what it
is. PyPI got the matching exemption earlier.
Fixes #2129
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeT7HWFSwgbuzoQv6kJ
* Test the hosted-gem gate at judge; share mocks
Review follow-ups: a unit test drives CandidateGates::judge for a
hosted-pinned gem (with and without an older ledger entry), and the
suite's API mocks take the patch uuid so the newer-patch fixture reuses
them instead of copying them.
Assisted-by: Claude Code:claude-fable-5-2
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeT7HWFSwgbuzoQv6kJ
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 26d112f commit 20150bd
2 files changed
Lines changed: 334 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2860 | 2860 | | |
2861 | 2861 | | |
2862 | 2862 | | |
2863 | | - | |
2864 | | - | |
| 2863 | + | |
| 2864 | + | |
2865 | 2865 | | |
2866 | 2866 | | |
2867 | 2867 | | |
| |||
2876 | 2876 | | |
2877 | 2877 | | |
2878 | 2878 | | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
2879 | 2895 | | |
2880 | 2896 | | |
2881 | 2897 | | |
| |||
3004 | 3020 | | |
3005 | 3021 | | |
3006 | 3022 | | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
3015 | 3038 | | |
3016 | | - | |
3017 | 3039 | | |
3018 | 3040 | | |
3019 | 3041 | | |
| |||
5453 | 5475 | | |
5454 | 5476 | | |
5455 | 5477 | | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
| 5485 | + | |
| 5486 | + | |
| 5487 | + | |
| 5488 | + | |
| 5489 | + | |
| 5490 | + | |
| 5491 | + | |
| 5492 | + | |
| 5493 | + | |
| 5494 | + | |
| 5495 | + | |
| 5496 | + | |
| 5497 | + | |
| 5498 | + | |
| 5499 | + | |
| 5500 | + | |
| 5501 | + | |
| 5502 | + | |
| 5503 | + | |
| 5504 | + | |
| 5505 | + | |
| 5506 | + | |
| 5507 | + | |
| 5508 | + | |
| 5509 | + | |
| 5510 | + | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
| 5514 | + | |
| 5515 | + | |
| 5516 | + | |
| 5517 | + | |
| 5518 | + | |
| 5519 | + | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
| 5523 | + | |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
| 5527 | + | |
| 5528 | + | |
| 5529 | + | |
| 5530 | + | |
| 5531 | + | |
| 5532 | + | |
| 5533 | + | |
| 5534 | + | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
| 5539 | + | |
| 5540 | + | |
| 5541 | + | |
| 5542 | + | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
5456 | 5547 | | |
5457 | 5548 | | |
5458 | 5549 | | |
| |||
0 commit comments