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

Pytest skip 2 #3448

Merged
merged 24 commits into from
Jul 2, 2024
Merged

Pytest skip 2 #3448

merged 24 commits into from
Jul 2, 2024

Conversation

KuuCi
Copy link
Contributor

@KuuCi KuuCi commented Jul 1, 2024

What does this PR do?

This PR is meant to fix flakiness in composer daily test. In particular, it's suspected that pytest skip, test tmp directories are being cleared before being used during clean up, leading to directory not found. All this change does is adds a time.sleep(10) before skipping to make sure all thread directories are created before clean up process starts

What issue(s) does this change relate to?

N/A

Before submitting

  • Have you read the contributor guidelines?
  • Is this change a documentation change or typo fix? If so, skip the rest of this checklist.
  • Was this change discussed/approved in a GitHub issue first? It is much more likely to be merged if so.
  • Did you update any related docs and document your change?
  • Did you update any related tests and add any new tests related to your change? (see testing)
  • Did you run the tests locally to make sure they pass?
  • Did you run pre-commit on your change? (see the pre-commit section of prerequisites)

@KuuCi KuuCi marked this pull request as ready for review July 1, 2024 20:03
@KuuCi
Copy link
Contributor Author

KuuCi commented Jul 1, 2024

(saw it was still flaky with 5 seconds :( )

@KuuCi KuuCi requested a review from a team as a code owner July 1, 2024 21:18
@KuuCi KuuCi requested a review from mvpatel2000 July 1, 2024 23:12
tests/trainer/test_fsdp_checkpoint.py Outdated Show resolved Hide resolved
Co-authored-by: Mihir Patel <mihir.v.patel7@gmail.com>
@KuuCi KuuCi merged commit d7032da into dev Jul 2, 2024
14 checks passed
@KuuCi KuuCi deleted the pytest-skip-2 branch July 2, 2024 00:34
mvpatel2000 added a commit to mvpatel2000/composer that referenced this pull request Jul 21, 2024
* test

* test

* test

* test

* test

* test

* fix

* sleep before skip

* fix

* pull request target

* revert

* revery pr_target branches

* sleep 1

* 10 sec

* uncomment

* dist barrier

* test

* dist works!

* update 0.0.9

* mihir comment

Co-authored-by: Mihir Patel <mihir.v.patel7@gmail.com>

---------

Co-authored-by: v-chen_data <v-chen_data@example.com>
Co-authored-by: Mihir Patel <mihir.v.patel7@gmail.com>
mvpatel2000 added a commit that referenced this pull request Jul 21, 2024
* test

* test

* test

* test

* test

* test

* fix

* sleep before skip

* fix

* pull request target

* revert

* revery pr_target branches

* sleep 1

* 10 sec

* uncomment

* dist barrier

* test

* dist works!

* update 0.0.9

* mihir comment

Co-authored-by: Mihir Patel <mihir.v.patel7@gmail.com>

---------

Co-authored-by: v-chen_data <v-chen_data@example.com>
Co-authored-by: Mihir Patel <mihir.v.patel7@gmail.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.

2 participants