Skip to content

Conversation

@DavisVaughan
Copy link
Contributor

@DavisVaughan DavisVaughan commented Jan 23, 2025

I've been exploring nextest a bit for ark, and I would get some consistent false positive timeouts with a 1s timeout. I think having multiple processes running at once causes some kind of contention, so we need a longer timeout. With this one change (and after #669) I can run cargo nextest run on my mac without any issues.

I don't think having a big timeout here is that big a deal, we aren't trying to ensure its fast, we just dont want it to get hung.

I would really like to look into nextest as I think it will help us simplify our test infra quite a bit (no management of locks or global state or needing to worry about not cross contaminating the test R session, because each test gets its own R session). It looks like we can just switch to it if we want to with little extra effort, then start simplifying

@DavisVaughan DavisVaughan requested a review from lionel- January 23, 2025 21:10
@DavisVaughan
Copy link
Contributor Author

DavisVaughan commented Jan 23, 2025

Is the world just slow today? Lots of fun with timeouts, unrelated to nextest. But these also look like false alarms so I'll just up these too.

thread 'test_live_updates' panicked at crates/ark/tests/data_explorer.rs:1084:86:
called `Result::unwrap()` on an `Err` value: Timeout

Again, the test is not about speed, it's just about blowing up at some point when it looks like we are really hung
@DavisVaughan

This comment was marked as resolved.

@DavisVaughan

This comment was marked as resolved.

// Wait for the new comm to show up.
let msg = comm_manager_rx
.recv_timeout(std::time::Duration::from_secs(1))
.recv_timeout(std::time::Duration::from_secs(10))
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably worth using a named constant?

@DavisVaughan DavisVaughan merged commit 846b9e7 into main Jan 27, 2025
5 of 6 checks passed
@DavisVaughan DavisVaughan deleted the feature/dummy-frontend-timeout branch January 27, 2025 14:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants