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][core] Mark python tests flaky on CI #41195

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

rickyyx
Copy link
Contributor

@rickyyx rickyyx commented Nov 16, 2023

Why are these changes needed?

We are now tracking core flaky tests at functions level:

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: rickyyx <rickyx@anyscale.com>
Signed-off-by: rickyyx <rickyx@anyscale.com>
@@ -327,6 +327,10 @@ def has_client_deprecation_warn(warning: Warning, expected_replacement: str) ->
@pytest.mark.filterwarnings(
"default:Starting a connection through `ray.client` will be deprecated"
)
@pytest.mark.skipif(
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make a wrapper like "run_only_in_postmerge()"?

Copy link
Contributor

@rkooo567 rkooo567 Nov 16, 2023

Choose a reason for hiding this comment

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

Also @can-anyscale is there some sort of guarantee this env var won't change? Would like to avoid the env var name/behavior is changed, and we stop tracking flaky tests

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it can only be guarantee through code reviews. But unless core change it, I don't think a random engineer will change it though.

Copy link
Contributor Author

@rickyyx rickyyx Nov 16, 2023

Choose a reason for hiding this comment

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

can you make a wrapper like "run_only_in_postmerge()"?

I thought this would actually bring in additional dependency such as a test_util.py of where we define this run_only_in_postmerge() func

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. I don't think we will ever change the env. If there are times that this need to be changed, let us know!

@rickyyx I think that's probably fine? We don't have that many tests anyway. I want to make sure we have corresponding issue (so we can ensure reason is always passed properly) whenever we mark it like this.

Copy link
Contributor Author

@rickyyx rickyyx Nov 16, 2023

Choose a reason for hiding this comment

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

I want to make sure we have corresponding issue (so we can ensure reason is always passed properly) whenever we mark it like this.

that's a good point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually - it's required to pass in reason with skipif using booleans.

@can-anyscale
Copy link
Collaborator

Can we also skip this one https://buildkite.com/ray-project/postmerge/builds/1690#018bd506-9d94-4111-bd86-c64149eb997a/6-565; then I don't need this PR (#41189), thankks

Copy link
Collaborator

@can-anyscale can-anyscale left a comment

Choose a reason for hiding this comment

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

Signed-off-by: rickyyx <rickyx@anyscale.com>
@rickyyx rickyyx changed the title [ci][core] Move python flakey tests out of flaky files [ci][core] Mark python tests flaky on CI Nov 16, 2023
@can-anyscale
Copy link
Collaborator

docbuild is broken and blocking all merges :(

@can-anyscale
Copy link
Collaborator

you probably cannot merge because the docbuild is broken on master; let me know if you want to bypass and merge it

@rickyyx rickyyx merged commit 9fcd840 into ray-project:master Nov 16, 2023
2 checks passed
@rickyyx
Copy link
Contributor Author

rickyyx commented Nov 16, 2023

@can-anyscale will you be making a PR to enable this flag and actual remove the test names from the flakey test file?

@can-anyscale
Copy link
Collaborator

@rickyyx yes, will work on it today

ujjawal-khare pushed a commit to ujjawal-khare-27/ray that referenced this pull request Nov 29, 2023

---------

Signed-off-by: rickyyx <rickyx@anyscale.com>
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.

3 participants