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

Support force stop of running tests #1941

Open
agrabeli opened this issue Dec 21, 2021 · 3 comments
Open

Support force stop of running tests #1941

agrabeli opened this issue Dec 21, 2021 · 3 comments
Assignees
Labels
bug Something isn't working correctly ooni/probe-cli ooni/probe-desktop ooni/probe-mobile issues related to OONI Probe mobile partner training 2021 priority/low Nice to have

Comments

@agrabeli
Copy link
Member

During the OONI Partner Training, a participant said that the interruption of an OONI Probe test is not immediate, and that it takes some time to terminate a running test. Can we look into this?

@hellais
Copy link
Member

hellais commented Jan 19, 2022

This is because when you interrupt a test, it will finish running the currently pending tests and finish uploading the results. This is the clean way of performing a shutdown of a running test.

I suppose we could potentially also add support for forcing the shutdown of the test immediately (maybe the user has to tap again "stop the test now"), but in general I think we should be discouraging this.

@hellais hellais added ooni/probe-desktop ooni/probe-mobile issues related to OONI Probe mobile priority/low Nice to have labels Jan 19, 2022
@hellais hellais changed the title Make the interruption of a test immediate Support force stop of running tests Jan 19, 2022
@bassosimone
Copy link
Contributor

@hellais I think we should respect what the users want more aggressively. I know it's a shame interrupting a test midway, but it's also annoying to users if a test runs for a long time. Because of timeouts and submission, interrupting a running test could actually take a minute or more (if summing every possible bad-luck event together).

Ideally, tapping twice would be the right thing to implement. Given that doing that is not super simple to implement, I am actually going to suggest we refactor the code to religiously honor a context and bail as soon as a context is explicitly canceled. Because we also have background runs, I think it is not worth it wrestling with extra complexity to implement smooth test interruption.

Another middle ground implementation, instead, could be that, when the user taps interrupt we arm a five second timer and we say to the user "giving five seconds to the current test to finish". And then, after the give seconds, we cancel the context and cause the experiment to stop at the point at which it was running, regardless of which that point was.

Your thoughts?

@bassosimone
Copy link
Contributor

@agrabeli I would like to know whether this issue is desktop, cli, mobile, or all of them. It would quite useful to know to assign it a scope.

@bassosimone bassosimone assigned majakomel and unassigned sarathms Apr 6, 2023
@hellais hellais added this to Roadmap Jan 7, 2025
@hellais hellais removed this from Roadmap Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly ooni/probe-cli ooni/probe-desktop ooni/probe-mobile issues related to OONI Probe mobile partner training 2021 priority/low Nice to have
Projects
None yet
Development

No branches or pull requests

5 participants