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

Release tests with no failures are also shown as failed tests. #39

Open
aslonnie opened this issue Jun 5, 2023 · 11 comments
Open

Release tests with no failures are also shown as failed tests. #39

aslonnie opened this issue Jun 5, 2023 · 11 comments

Comments

@aslonnie
Copy link
Collaborator

aslonnie commented Jun 5, 2023

Because release tests do not run for every commit.

@aslonnie
Copy link
Collaborator Author

aslonnie commented Jun 5, 2023

@ollie-iterators

@aslonnie
Copy link
Collaborator Author

aslonnie commented Jun 5, 2023

closed those as dups of this.

@ollie-iterators do you have interests to fix this?

@ollie-iterators
Copy link

closed those as dups of this.

@ollie-iterators do you have interests to fix this?

I don't know. Do you have any helpful tips about where the code determines which tests are included in https://flakey-tests.ray.io/?

@aslonnie
Copy link
Collaborator Author

aslonnie commented Jun 7, 2023

:)

the test results are fetched and saved in a sqlite database, and these queries generates aggregated test results to show:

https://github.com/ray-project/travis-tracker-v2/blob/master/ray_ci_tracker/database.py#L254

@aslonnie
Copy link
Collaborator Author

aslonnie commented Jun 7, 2023

the reason that it is failing is that it calculates the "weights" assuming 100 test results for the last 100 commits, but release tests only run every night so the results are rather sparse.

you would need to figure a way to adjust the query, at least for release tests, so that the weight is normalized to the number of runs/commits that have test results.

@ollie-iterators
Copy link

the reason that it is failing is that it calculates the "weights" assuming 100 test results for the last 100 commits, but release tests only run every night so the results are rather sparse.

you would need to figure a way to adjust the query, at least for release tests, so that the weight is normalized to the number of runs/commits that have test results.

There is also an issue with tests that are not release tests being kept in flakey-ray.tests.io when they have no test failures. Any suggestions about that?

@aslonnie
Copy link
Collaborator Author

aslonnie commented Jun 7, 2023

not release tests being kept

it's probably the same issue as release tests. I do not think the tracker treats release tests differently when it is trying to judge if the test is flaky or not.

@ollie-iterators
Copy link

Would a solution be to add "AND is_labeled_flaky = 1" to the top_failed_tests sentence?

@aslonnie
Copy link
Collaborator Author

aslonnie commented Jun 8, 2023

Would a solution be to add "AND is_labeled_flaky = 1" to the top_failed_tests sentence?

I do not think so. is_labeled_flaky means if the test has a flaky label in the test's definition. it does not have much to do with the result filtering on the tracker.

@ollie-iterators
Copy link

I don't think I have any other ideas right now other than using a for loop to go through the commits for a test and counting the number of results that are flaky or failed and if the number of flaky or failed results is greater than 1 saying that it is a flaky test.

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

No branches or pull requests

2 participants