Commit 378a36e
committed
test(agents): cover memo no-poison contract for throwing readOwnerProcessArgs (#86509)
`readOwnerProcessArgs` helper one layer above the memo already catches
resolver throws and returns null, so `cleanStaleLockFiles` does not
propagate the error. The memo's addition is write-after-success
ordering: a throwing resolver does not occupy the cache slot, so later
locks for the same pid retry the resolver fresh instead of cache-hitting
on a stale failure. Pin that with three same-pid locks against a
throwing resolver and assert the resolver runs three times.1 parent 71cd8ef commit 378a36e
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
779 | 817 | | |
780 | 818 | | |
781 | 819 | | |
| |||
0 commit comments