Skip to content
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

update to Dropshot 0.13.0 (minimum changes) #7050

Merged
merged 16 commits into from
Nov 14, 2024

Conversation

davepacheco
Copy link
Collaborator

@davepacheco davepacheco commented Nov 13, 2024

This PR implements the minimum changes to update Dropshot to the newly-released 0.13.0. For more on this, see: https://github.com/oxidecomputer/dropshot/blob/main/CHANGELOG.adoc#breaking-changes

After this one, I will go back to #6730 to update Omicron to use the new builder interface that's in the latest release.

(I initially created this PR as a test-build of Omicron against Dropshot 0.13.0. See oxidecomputer/dropshot#1115.)

@davepacheco davepacheco changed the title test build for dropshot + API versioning update to Dropshot 0.13.0 (minimum changes) Nov 13, 2024
@@ -89,6 +89,7 @@ impl<'a> RequestBuilder<'a> {
body: dropshot::Body::empty(),
expected_status: None,
allowed_headers: Some(vec![
http::header::CONNECTION,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This curious change appears to be required due to this change in hyper v1.5. Without this fix, I found an update test failed, reporting that it expected a 500. In fact it did get a 500, but it failed the validation we do on all client responses that only these allowed headers were present. It failed that validation because there was a connection header present.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting

@davepacheco davepacheco changed the base branch from main to dap/fix-dropshot-coupling November 13, 2024 21:13
Copy link
Contributor

@ahl ahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship it

@@ -89,6 +89,7 @@ impl<'a> RequestBuilder<'a> {
body: dropshot::Body::empty(),
expected_status: None,
allowed_headers: Some(vec![
http::header::CONNECTION,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting

@@ -7,7 +7,7 @@
"url": "https://oxide.computer",
"email": "[email protected]"
},
"version": "20241204.0"
"version": "20241204.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hadn't considered this consequence. I can't see any problems with it; this version string does appear in CLI/SDK stuff...

Base automatically changed from dap/fix-dropshot-coupling to main November 14, 2024 00:36
@davepacheco davepacheco marked this pull request as ready for review November 14, 2024 00:37
@davepacheco davepacheco merged commit 3cbc953 into main Nov 14, 2024
19 checks passed
@davepacheco davepacheco deleted the dap/drafts/dropshot-update branch November 14, 2024 02:50
@iliana iliana mentioned this pull request Nov 14, 2024
iliana added a commit that referenced this pull request Nov 14, 2024
#7017 vs #7050 semantic merge conflict.
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.

2 participants