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

ci: run tests on ARM and i686 using cross #5196

Merged
merged 3 commits into from
Nov 18, 2022
Merged

ci: run tests on ARM and i686 using cross #5196

merged 3 commits into from
Nov 18, 2022

Conversation

carllerche
Copy link
Member

@carllerche carllerche commented Nov 15, 2022

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

@carllerche carllerche force-pushed the github-ci-arm branch 2 times, most recently from 13c11b3 to 8c19cf2 Compare November 15, 2022 19:47
@Darksonn Darksonn added the A-ci Area: The continuous integration setup label Nov 15, 2022
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
@carllerche carllerche changed the title try an ARM ci ci: run tests on ARM and i686 using cross Nov 18, 2022
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();
Copy link
Member Author

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

@carllerche carllerche marked this pull request as ready for review November 18, 2022 00:06
@@ -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));
Copy link
Member Author

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 {
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixes another timing issue.

@carllerche carllerche merged commit 808d525 into master Nov 18, 2022
@carllerche carllerche deleted the github-ci-arm branch November 18, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: The continuous integration setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants