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

Support HTTP.jl 1.0 #560

Merged
merged 9 commits into from
Jun 28, 2022
Merged

Support HTTP.jl 1.0 #560

merged 9 commits into from
Jun 28, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Jun 20, 2022

No description provided.

@iamed2
Copy link
Member

iamed2 commented Jun 20, 2022

bors try

bors bot added a commit that referenced this pull request Jun 20, 2022
@quinnj
Copy link
Member Author

quinnj commented Jun 20, 2022

Oh, I just barely tagged GitHub.jl release w/ HTTP.jl 1.0, so we may need to wait 10-15 minutes until that release is public for things to work here.

@bors
Copy link
Contributor

bors bot commented Jun 20, 2022

try

Build failed:

src/utilities/request.jl Show resolved Hide resolved
src/utilities/request.jl Show resolved Hide resolved
@iamed2
Copy link
Member

iamed2 commented Jun 20, 2022

Oh, I just barely tagged GitHub.jl release w/ HTTP.jl 1.0, so we may need to wait 10-15 minutes until that release is public for things to work here.

Your modified compat shows HTTP 0.9 as supported, but tests appear to fail with HTTP 0.9.

@quinnj
Copy link
Member Author

quinnj commented Jun 20, 2022

Ok, pushed an update with better 0.9 support; and the GitHub.jl release is now public.

@iamed2
Copy link
Member

iamed2 commented Jun 20, 2022

bors try

bors bot added a commit that referenced this pull request Jun 20, 2022
@bors
Copy link
Contributor

bors bot commented Jun 20, 2022

try

Build failed:

@quinnj
Copy link
Member Author

quinnj commented Jun 20, 2022

Ok, looks like I'm going to need to go thru the tests so me more and fix things up.

@quinnj
Copy link
Member Author

quinnj commented Jun 21, 2022

bors try

bors bot added a commit that referenced this pull request Jun 21, 2022
test/runtests.jl Outdated Show resolved Hide resolved
@bors
Copy link
Contributor

bors bot commented Jun 21, 2022

try

Build failed:

src/deprecated.jl Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@quinnj
Copy link
Member Author

quinnj commented Jun 21, 2022

bors try

bors bot added a commit that referenced this pull request Jun 21, 2022
@bors
Copy link
Contributor

bors bot commented Jun 21, 2022

try

Build failed:

@quinnj
Copy link
Member Author

quinnj commented Jun 21, 2022

bors try

bors bot added a commit that referenced this pull request Jun 21, 2022
@bors
Copy link
Contributor

bors bot commented Jun 21, 2022

try

Build failed:

@quinnj
Copy link
Member Author

quinnj commented Jun 21, 2022

bors try

@bors
Copy link
Contributor

bors bot commented Jun 21, 2022

try

Build failed:

@quinnj
Copy link
Member Author

quinnj commented Jun 21, 2022

bors try

bors bot added a commit that referenced this pull request Jun 21, 2022
@bors
Copy link
Contributor

bors bot commented Jun 21, 2022

@quinnj
Copy link
Member Author

quinnj commented Jun 21, 2022

Woohoo! Tests pass! @iamed2, do you have any concerns on the Julia version bump? Or anyone else?

@quinnj
Copy link
Member Author

quinnj commented Jun 24, 2022

Bump; anyone up for reviewing? Anyone mind if I merge next Monday and tag a new release?

@mattBrzezinski
Copy link
Member

Bump; anyone up for reviewing? Anyone mind if I merge next Monday and tag a new release?

I can take a look and play around with it this weekend most likely!

@iamed2
Copy link
Member

iamed2 commented Jun 24, 2022

Woohoo! Tests pass! @iamed2, do you have any concerns on the Julia version bump? Or anyone else?

Maybe this got lost in an Internet blip, but I don't have any concerns there. I think we should check whether downstream packages like CloudWatchLogs.jl and AWSS3.jl continue to work under both backends, then I'm comfortable proceeding. @mattBrzezinski would that be something you could test?

@mattBrzezinski
Copy link
Member

Sorry I've been busy last couple days with other stuff. Going to look into these changes now, I will test w/ AWSS3.jl and CloudWatchLogs.jl as well.

@mattBrzezinski
Copy link
Member

Code changes LGTM! Going to play around with this for a bit, see if anything breaks and will report back.

@mattBrzezinski
Copy link
Member

mattBrzezinski commented Jun 28, 2022

Just tested AWSS3.jl with this branch, everything went well. I forgot that CWL.jl requires a stack setup, just made a dummy PR to test this functionality, here.

EDIT: Julia1.3 is failing, as expected, rest looks fine.

👍

Copy link
Member

@mattBrzezinski mattBrzezinski left a comment

Choose a reason for hiding this comment

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

These changes LGTM, not sure if @iamed2 has any other thoughts?

@quinnj
Copy link
Member Author

quinnj commented Jun 28, 2022

Thanks @mattBrzezinski; yeah, if there are other downstream dependents, feel free to ping me and I can make PRs to upgrade or help review. AWS.jl is a big one, so it should unblock a lot of others updating.

test/runtests.jl Outdated
Comment on lines 41 to 45
# backwards compat
function HTTP.StatusError(status, resp)
return HTTP.StatusError(status, resp.request.method, resp.request.target, resp)
end

Copy link
Member

Choose a reason for hiding this comment

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

This is bad piracy; this actually gets called by submit_request as far as I can tell.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yes, forgot to clean this up.

Copy link
Member Author

Choose a reason for hiding this comment

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

Pushed a clean up

src/utilities/request.jl Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@mattBrzezinski
Copy link
Member

bors try

bors bot added a commit that referenced this pull request Jun 28, 2022
@bors
Copy link
Contributor

bors bot commented Jun 28, 2022

@iamed2
Copy link
Member

iamed2 commented Jun 28, 2022

Alright I'll tag #562 as a patch and then merge and tag this as a minor

@iamed2
Copy link
Member

iamed2 commented Jun 28, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 28, 2022

@bors bors bot merged commit 549fe10 into master Jun 28, 2022
@bors bors bot deleted the jq/http1 branch June 28, 2022 19:37
@@ -129,7 +133,7 @@ function submit_request(aws::AbstractAWSConfig, request::Request; return_headers
if HTTP.header(response, "Location") != ""
request.url = HTTP.header(response, "Location")
else
e = HTTP.StatusError(response.status, response)
e = statuserror(response.status, response)
Copy link
Member

Choose a reason for hiding this comment

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

I think this broke some things for the Downloads backend, because it assumes the response is coming from HTTP.jl and has method and target fields, whereas before it just wrapped the response, which could be coming from Downloads.jl and may not have those fields. I guess the AWS tests aren't enough to check this case, but I saw when adding Downloads.jl tests to AWSS3: JuliaCloud/AWSS3.jl#262. See https://github.com/JuliaCloud/AWSS3.jl/runs/7409333758?check_suite_focus=true#step:6:388.

Copy link
Member

Choose a reason for hiding this comment

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

Can the DownloadsBackend-created HTTP.Response that's returned just include the request here?

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.

None yet

4 participants