Skip to content

chore(ci): add testing on Java 17 and dependabot #113

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 3 commits into from
Aug 15, 2022

Conversation

ckipp01
Copy link
Contributor

@ckipp01 ckipp01 commented Jul 1, 2022

No description provided.

@ckipp01
Copy link
Contributor Author

ckipp01 commented Jul 1, 2022

Valid failure on 17 I need to check out.

@ckipp01 ckipp01 marked this pull request as draft July 1, 2022 04:32
Copy link
Contributor Author

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

Ok, this should make it all 🟢


val res3 = requests.post(
"https://httpbin.org/post",
compress = requests.Compress.Deflate,
data = new RequestBlob.ByteSourceRequestBlob("Hear me moo")
)
assert(read(new String(res2.bytes))("data").toString ==
""""data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="""")
assert(read(new String(res3.bytes))("data").toString ==
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this was supposed to be res3, not res2 or else we're never doing anything with res3.

@@ -191,16 +191,15 @@ object RequestTests extends TestSuite{
compress = requests.Compress.Gzip,
data = new RequestBlob.ByteSourceRequestBlob("I am cow")
)
assert(read(new String(res2.bytes))("data").toString ==
""""data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="""")
assert(read(new String(res2.bytes))("data").toString.contains("data:application/octet-stream;base64,H4sIAAAAAA"))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is interesting. So this was changed in #108 from a contains like I have here to an exact match. However, I notice a difference between Java 8 and 17 here. With 8 you'll get

// "data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="

but with 17 you'll get

// "data:application/octet-stream;base64,H4sIAAAAAAAA//NUSMxVSM4vBwCAGeD4CAAAAA=="

I'm not exactly sure why, but is this potentially why it used to be a contains instead of an exact match to account for this? Is there something different with gzip between 8 and 17 here, and that's also why it doesn't change for the Deflate example down below?

@ckipp01 ckipp01 marked this pull request as ready for review July 2, 2022 11:30
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@lefou lefou merged commit 6d4a223 into com-lihaoyi:master Aug 15, 2022
@ckipp01 ckipp01 deleted the ci branch August 15, 2022 19:56
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