-
Notifications
You must be signed in to change notification settings - Fork 4k
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
THRIFT-5564: add a rust GitHub action and cross test [skip ci] #2632
Conversation
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.
Reviewed everything but the github actions. In general this looks great! Were you able to run the cross tests successfully?
lib/rs/src/protocol/compact.rs
Outdated
let possible_element_count = (header & 0xF0) >> 4; | ||
if possible_element_count != 15 { | ||
let element_count = if possible_element_count != 15 { |
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.
Oh - didn't know you could do that now.
test/rs/src/bin/test_client.rs
Outdated
@@ -492,8 +483,8 @@ fn make_thrift_calls( | |||
s_cmp_nested_2.insert(Numberz::SIX, empty_insanity); | |||
|
|||
let mut s_cmp: BTreeMap<UserId, BTreeMap<Numberz, Insanity>> = BTreeMap::new(); | |||
s_cmp.insert(1 as UserId, s_cmp_nested_1); | |||
s_cmp.insert(2 as UserId, s_cmp_nested_2); | |||
s_cmp.insert(1_i64, s_cmp_nested_1); |
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.
Could you leave these two as before please?
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.
@allengeorge 1 as UserId
will cause clippy::unnecessary_cast
error: casting integer literal to `i64` is unnecessary
test/rs/src/bin/test_client.rs
Outdated
s_cmp.insert(1 as UserId, s_cmp_nested_1); | ||
s_cmp.insert(2 as UserId, s_cmp_nested_2); | ||
s_cmp.insert(1_i64, s_cmp_nested_1); | ||
s_cmp.insert(2_i64, s_cmp_nested_2); |
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.
And this?
lib/rs/src/server/multiplexed.rs
Outdated
.invoked | ||
.compare_and_swap(false, true, Ordering::Relaxed); | ||
if res { | ||
let res = |
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.
Interesting: I had no idea this was deprecated now.
@@ -33,7 +33,6 @@ use kitchen_sink::recursive; | |||
use kitchen_sink::recursive::{CoRec, CoRec2, RecList, RecTree, TTestServiceSyncClient}; | |||
use kitchen_sink::ultimate::{FullMealServiceSyncClient, TFullMealServiceSyncClient}; | |||
|
|||
use thrift; |
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.
Is there a reason we don't have to include the use
definition here?
test/rs/src/bin/test_server.rs
Outdated
@@ -16,14 +16,12 @@ | |||
// under the License. | |||
|
|||
use clap::{clap_app, value_t}; | |||
use env_logger; |
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'm a little surprised that we don't need the use declaration anymore.
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.
@allengeorge this is clippy::single_component_path_imports
error: this import is redundant
test/rs/src/lib.rs
Outdated
@@ -15,5 +15,11 @@ | |||
// specific language governing permissions and limitations | |||
// under the License. | |||
|
|||
// FIXME - need changes in gen before lifting this exception | |||
#![allow( |
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.
Could you create a followup JIRA for this?
Unfortunately it looks like all the rust cross-tests are failing in the "Build/cross-test" action - even the rust<->rust ones, which should always work. |
07f4936
to
8f700dc
Compare
8f700dc
to
76da1f1
Compare
fix path for rust
0a7b7ae
to
233ca53
Compare
i'm merging this given the failure is due to missing uuid impl in rust:
|
as it replaces both
[skip ci]
anywhere in the commit message to free up build resources.