Repository navigation
Commit ae94cc4
committed
test(traces): prove the ref budget answers 413 at the endpoint
MTR-13. Capacity was only asserted at the unit level, by calling `code_refs`
directly. The budget is actually reached through the advertisement, so the endpoint
is what has to be measured.
The new case seeds a legacy traces ref plus 4098 branch refs (bulk SQL, because that
many pushes would dominate the suite), requests
`/third-party/mtr94-control.git/info/refs?service=git-upload-pack`, and requires
**413**.
Measured: `FIX13_ENDPOINT_413 status=413 Payload Too Large`.
Three of my own errors were fixed getting here: the case had no `#[tokio::test]`
wrapper so it silently did not run, my first INSERT used a non-existent
`ref_tree_hash` column, and the second used `'Branch'` for an enum that stores
`branch`.
Verified: `code_clone_ref_budget_answers_413` passes (96.81s).
Still open: the ref-race rejection control, an AC-8 oracle that can distinguish a
traces-only object, and the full algorithm x transport x protocol x mode matrix.
Signed-off-by: Eli Ma <eli@patch.sh>1 parent 34874d3 commit ae94cc4
1 file changed
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5753 | 5753 | | |
5754 | 5754 | | |
5755 | 5755 | | |
| 5756 | + | |
| 5757 | + | |
| 5758 | + | |
| 5759 | + | |
| 5760 | + | |
| 5761 | + | |
| 5762 | + | |
| 5763 | + | |
| 5764 | + | |
| 5765 | + | |
| 5766 | + | |
| 5767 | + | |
| 5768 | + | |
| 5769 | + | |
| 5770 | + | |
| 5771 | + | |
| 5772 | + | |
| 5773 | + | |
| 5774 | + | |
| 5775 | + | |
| 5776 | + | |
| 5777 | + | |
| 5778 | + | |
| 5779 | + | |
| 5780 | + | |
| 5781 | + | |
| 5782 | + | |
| 5783 | + | |
| 5784 | + | |
| 5785 | + | |
| 5786 | + | |
| 5787 | + | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
| 5794 | + | |
| 5795 | + | |
| 5796 | + | |
| 5797 | + | |
| 5798 | + | |
| 5799 | + | |
| 5800 | + | |
| 5801 | + | |
| 5802 | + | |
| 5803 | + | |
| 5804 | + | |
| 5805 | + | |
| 5806 | + | |
| 5807 | + | |
| 5808 | + | |
| 5809 | + | |
5756 | 5810 | | |
5757 | 5811 | | |
5758 | 5812 | | |
| |||
7835 | 7889 | | |
7836 | 7890 | | |
7837 | 7891 | | |
| 7892 | + | |
| 7893 | + | |
| 7894 | + | |
| 7895 | + | |
| 7896 | + | |
7838 | 7897 | | |
7839 | 7898 | | |
7840 | 7899 | | |
| |||
0 commit comments