Skip to content

Move functorch tests from functorch/test/* to test/functorch/* - #86623

Closed
zou3519 wants to merge 2 commits into
gh/zou3519/550/basefrom
gh/zou3519/550/head
Closed

zou3519 wants to merge 2 commits into
gh/zou3519/550/basefrom
gh/zou3519/550/head

Conversation

@zou3519

@zou3519 zou3519 commented Oct 10, 2022 •

Copy link
Copy Markdown
Contributor

Stack from ghstack:

This is the first step described in
#86618 . test/functorch/* is
the final location for these tests.

Test Plan:

  • Check that the functorch shards in CI are still running tests.

This is the first step described in
#86618 . test/functorch/* is
the final location for these tests.

Test Plan:
- Check that the functorch shards in CI are still running tests.

[ghstack-poisoned]
@zou3519
zou3519 requested a review from a team as a code owner October 10, 2022 18:45
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Oct 10, 2022
@pytorch-bot

pytorch-bot Bot commented Oct 10, 2022 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86623

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures, 12 Pending

As of commit 8c6a68f:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

zou3519 added a commit that referenced this pull request Oct 10, 2022
This is the first step described in
#86618 . test/functorch/* is
the final location for these tests.

Test Plan:
- Check that the functorch shards in CI are still running tests.

ghstack-source-id: 8b6bec0
Pull Request resolved: #86623
Comment thread test/run_test.py
# This supports symlinks, so we can link domain library tests like functorch
# to PyTorch test directory
# This supports symlinks, so we can link domain library tests to PyTorch test directory
all_py_files = [pathlib.Path(p) for p in glob.glob(f"{cwd}/**/test_*.py", recursive=True)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cc @huydhn who did this change originally to get us sharding

Just want to check if you think we should keep it like this to support future symlinks or change back anything else originally done in #85321

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would prefer to keep the symlink logic here because it's more flexible than the old logic in itself. For functorch, this PR has already done exactly what needs to be done 1) removing the symlink to functorch/test and 2) moving all the tests to test/functorch.

@huydhn huydhn left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! There are only some minor lint error about setting the owner of the new tests. Also I have already attach the skip-pr-sanity-checks label to the PR, so that check should be bypassed now

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 11, 2022
…ch/*"

This is the first step described in
#86618 . test/functorch/* is
the final location for these tests.

Test Plan:
- Check that the functorch shards in CI are still running tests.

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Oct 11, 2022
This is the first step described in
#86618 . test/functorch/* is
the final location for these tests.

Test Plan:
- Check that the functorch shards in CI are still running tests.

ghstack-source-id: 38c1223
Pull Request resolved: #86623
@zou3519

zou3519 commented Oct 11, 2022

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@zou3519

zou3519 commented Oct 11, 2022

Copy link
Copy Markdown
Contributor Author

@pytorchbot help

@pytorch-bot

pytorch-bot Bot commented Oct 11, 2022

Copy link
Copy Markdown

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: argument command: invalid choice: 'help' (choose from 'merge', 'revert', 'rebase', 'label')

usage: @pytorchbot [-h] {merge,revert,rebase,label} ...

Try @pytorchbot --help for more info.

pytorchmergebot pushed a commit that referenced this pull request Oct 14, 2022
Now that its tests have been moved to PyTorch test.  This was a left over from #86623

Pull Request resolved: #86927
Approved by: https://github.com/clee2000
@facebook-github-bot
facebook-github-bot deleted the gh/zou3519/550/head branch June 8, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged skip-pr-sanity-checks topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants