-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ci: run tests on ARM and i686 using cross #5196
Conversation
13c11b3
to
8c19cf2
Compare
e53e4c4
to
ab5a081
Compare
This patch updates CI to use `cross` to run Tokio tests on virtualized ARM and i686 VMs. Because ipv6 doesn't work on Github action running in a docker instance, those tests are disabled
ab5a081
to
1b53862
Compare
use std::sync::Arc; | ||
|
||
for _ in 1..10 { | ||
let runtime = rt(); | ||
|
||
runtime.block_on(async { | ||
let socket = UdpSocket::bind((Ipv6Addr::LOCALHOST, 0)).await.unwrap(); | ||
let socket = UdpSocket::bind("127.0.0.1:0").await.unwrap(); |
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.
This test doesn't need to use IPv6
@@ -105,7 +105,7 @@ fn worker_park_count() { | |||
time::sleep(Duration::from_millis(1)).await; | |||
}); | |||
drop(rt); | |||
assert!(2 <= metrics.worker_park_count(0)); | |||
assert!(1 <= metrics.worker_park_count(0)); |
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.
There really should only be 1 park in this test, however, there often are more due to #5207. I believe the original test author just included the number they observed when implementing metrics.
let rx2 = RX2.load(SeqCst); | ||
assert_eq!(EXPECTED, rx1); | ||
assert_eq!(EXPECTED, rx2); | ||
loop { |
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.
Fixes another timing issue.
This patch updates CI to use
cross
to run Tokio tests on virtualizedARM and i686 VMs. Because ipv6 doesn't work on Github action running in
a docker instance, those tests are disabled