Skip to content

Ensure the HTTP index is updated after a yank/unyank #5022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

jtgeibel
Copy link
Member

The intent of this PR is to apply the fix in the final commit to enqueue a sync of the HTTP index whenever a yank/unyank is performed. This mirrors the way that a sync is enqueued by the publish background job after a new version is published. Once this is deployed, we will need to run a full index sync to correct any existing divergence between the official git index and the experimental HTTP index.

The other commits only affect the test harness and http-data files. A new RECORD=force cargo test mode allows for regenerating these data files. In this mode all responses are simulated as a status=200 success with an empty body and no response headers. Apparently we have no existing tests to cover failed S3 requests. The old recording mode where the request is actually proxied to the destination is still available via RECORD=passthrough, though we can probably remove this mode as I don't think any of the current team has ever used it.

I could decouple these changes for individual review, but it was very useful to build on top of the test harness improvements to update the data files and I don't think it adds much review overhead as only the final commit changes application behavior.

@Turbo87
Copy link
Member

Turbo87 commented Aug 3, 2022

@jtgeibel I'll split this PR up to make the review a bit more manageable. hope that's okay with you :)

@bors
Copy link
Contributor

bors commented Aug 3, 2022

☔ The latest upstream changes (presumably 48763bf) made this pull request unmergeable. Please resolve the merge conflicts.

@Turbo87 Turbo87 force-pushed the sync-http-index-after-yank branch from fa9f4c2 to 542d7b3 Compare August 3, 2022 10:50
@Turbo87 Turbo87 merged commit d707a7f into rust-lang:master Aug 3, 2022
@jtgeibel jtgeibel deleted the sync-http-index-after-yank branch August 4, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants