Skip to content

ci: a Play track clear answers 200 with no body - #93

Merged
xroche merged 1 commit into
masterfrom
play-promote-empty-body
Jul 30, 2026
Merged

ci: a Play track clear answers 200 with no body#93
xroche merged 1 commit into
masterfrom
play-promote-empty-body

Conversation

@xroche

@xroche xroche commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Clearing a track answers 200 with an empty body, and put_track called r.json() on every 2xx, so the live promote of vc89 died between its two PUTs. Nothing had been committed at that point, so Play was left untouched and the tracks are exactly as they were, but the promote could not finish.

The test stub always answered a PUT with a JSON body, which is why the suite missed this; it now models the body-less 200, and reverting the one-line fix makes the suite fail with the same JSONDecodeError the run produced.

put_track called r.json() on every 2xx, so the live promote died on its second
PUT. Nothing had been committed, so Play was left untouched, but the promote
could not finish.

The stub always answered a PUT with a JSON body, which is why the suite missed
it; it now models the body-less 200 and the old code fails against it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche enabled auto-merge (squash) July 30, 2026 12:35
@xroche
xroche merged commit dd4337c into master Jul 30, 2026
6 checks passed
@xroche
xroche deleted the play-promote-empty-body branch July 30, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant