-
Notifications
You must be signed in to change notification settings - Fork 239
[CALCITE-5136] Avatica build (or CI) must fail if there are deprecation warnings #272
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
Conversation
b6f86d9 to
8b1efc6
Compare
0435ac9 to
9ac4eb7
Compare
Are you sure ? We're dependency managing Junit to 4.12 , and I could not find 4.13.1 in the gradle dependecy output anywhere ? We should upgrade to 4.13.2 anyway (in a different JIRA) |
9ac4eb7 to
3a02a90
Compare
I could have sworn this failed locally for me... but now I can't reproduce that failure. I've pulled that change and pushed. Let's see what CI makes of it now. |
| private static boolean isKdcStarted = false; | ||
| private static boolean isHttpServerStarted = false; | ||
|
|
||
| private static URL httpServerUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should update the names in these cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed the rename. I think this was the only case where we changed the type.
3a02a90 to
d51c487
Compare
|
FYI: I pounded on the test that failed on macOS locally and see the following pattern: The existing code doesn't account for "connection reset". I have a fix for this... does it need a JIRA issue, and a separate PR? |
|
Thank you. Preferably yes. CALCITE-6799 already exists for the issue. |
| filePath += "/"; | ||
| } | ||
| try { | ||
| // We need to encode path. For instance, " " should become "%20" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
Is this comment still needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, probably not. Removed... but closer inspection here forced me to fix something else. This branch of the code is making a very "odd" URI/URL. It's a hierarchical URI, with a relative path and a scheme. I don't know if they're illegal under the RFC... but it's certainly weird. I had to subtly tweak things here to construct one by treating it as a non-heirarchical URL (args here are: scheme, scheme-specific-part, fragment). The behavior now matches the old code.
stoty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
d51c487 to
da93125
Compare
|
This PR looks in a good shape, shall we move on? |
da93125 to
fd947c7
Compare
Fixed. |
|
Should have rebased... missed that you updated to 4.13.2. Will adjust accordingly |
fd947c7 to
28c98b0
Compare
8f21bf5 to
4d3aaac
Compare
.idea/vcs.xml
Outdated
| <mapping directory="$PROJECT_DIR$" vcs="Git" /> | ||
| </component> | ||
| </project> | ||
| <component name="CommitMessageInspectionProfile"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to include this @chrisdennis ?
It doesn't seem related to the deprecations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not... I guess IntelliJ got over-eager with the reformatting and I did an ill-advised git add ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted.
…on warnings Fixes applied are: * move `new URL(...)` to `new URI(...).toUrl()` * move `Assert.assertThat(...)` to `MatcherAssert.assertThat(...)` * move `ExpectedException` to `Assert.assertThrows(...)` * in all other cases either propagate the deprecation or suppress it.
28c98b0 to
b5bc68e
Compare
|
merged manually. |
Fixes applied are:
new URL(...)tonew URI(...).toUrl()Assert.assertThat(...)toMatcherAssert.assertThat(...)ExpectedExceptiontouse manual code since Guava version changes cause the code to see both 4.12 and 4.13.1 JUnit versions.Assert.assertThrows(...)