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

fix: Improve how in progress tests are displayed #673

Closed
wants to merge 2 commits into from
Closed

Conversation

aanorbel
Copy link
Member

Fixes ooni/probe#2658

Proposed Changes

if (cursor.moveToFirst()) {
cursor.getColumnIndex("in_progress_count").let {
if (it == -1) {
return@let
Copy link
Member

Choose a reason for hiding this comment

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

What does return@let do?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exit the let call and not the function

@@ -151,6 +151,10 @@ private void runTest(AbstractTest... tests) {
currentTest.run(app, app.getPreferenceManager(),app.getLogger(), app.getGson(), result, i, this);
}
}
if (result.countTotalMeasurements() == tests.length) {
Copy link
Member

Choose a reason for hiding this comment

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

Where is this function defined?

Maybe this function should be called "countTotalCompletedMeasurements" or something of that sort.

Also, what exactly is counted here? Is it really a measurements or is it a nettest in a group?

For example if you run web_connectivity against 10 URLs and then whatsaapp, would this count be 11 or would it be 2?

Copy link
Member Author

@aanorbel aanorbel Feb 21, 2024

Choose a reason for hiding this comment

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

  1. The nettest paired with the input it is run with to create the measurement.

@aanorbel aanorbel closed this Jul 15, 2024
@aanorbel aanorbel deleted the issues/2658 branch October 21, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

probe-mobile: improve how in progress tests are displayed
2 participants