-
Notifications
You must be signed in to change notification settings - Fork 43
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 test errors and type checking errors induced by a previous PR. #194
base: main
Are you sure you want to change the base?
Conversation
f"event_args_{version.get_version_str()}.yaml", | ||
) | ||
) | ||
pkg_path: Path = Path(__file__).parent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to get package path this way instead of using importlib.resources.files(package)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both should work, but HTA has been using the same method from the start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm :)
@fengxizhou has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
) Summary: ## What does this PR do? Fixes # 193 - Wrong Configuration Path Caused Test Failures This PR fixes four things in a previous diff. (1) A wrong file path for event_args_formats caused test errors. The fix is to update to the correct path. (2) A type checking error caused by Library stubs not installed for "yaml". The fix is to add the following lines into `pyproject.toml` file. ``` [[tool.mypy.overrides]] module = "yaml" ignore_missing_imports = true ``` (3) Update mypy setting in .pre-commit-config.yaml to workaround errors: "Source file found twice under different module names" (4) Fix format warnings when importing sorces fbcode into github. ## Before submitting - [ x] Was this discussed/approved via a Github issue? (no need for typos, doc improvements) - [ ] N/A - [ ] Did you write any new necessary tests? - [x ] N/A - [ ] Did you make sure to update the docs? - [x ] N/A - [x] Did you update the [changelog](https://github.com/facebookresearch/HolisticTraceAnalysis/blob/main/CHANGELOG.md)? - [ ] N/A Reviewed By: briancoutinho, sraikund16 Differential Revision: D64839500 Pulled By: fengxizhou
db04f8d
to
39c169b
Compare
This pull request was exported from Phabricator. Differential Revision: D64839500 |
) Summary: ## What does this PR do? Fixes # 193 - Wrong Configuration Path Caused Test Failures This PR fixes four things in a previous diff. (1) A wrong file path for event_args_formats caused test errors. The fix is to update to the correct path. (2) A type checking error caused by Library stubs not installed for "yaml". The fix is to add the following lines into `pyproject.toml` file. ``` [[tool.mypy.overrides]] module = "yaml" ignore_missing_imports = true ``` (3) Update mypy setting in .pre-commit-config.yaml to workaround errors: "Source file found twice under different module names" (4) Fix format warnings when importing sorces fbcode into github. ## Before submitting - [ x] Was this discussed/approved via a Github issue? (no need for typos, doc improvements) - [ ] N/A - [ ] Did you write any new necessary tests? - [x ] N/A - [ ] Did you make sure to update the docs? - [x ] N/A - [x] Did you update the [changelog](https://github.com/facebookresearch/HolisticTraceAnalysis/blob/main/CHANGELOG.md)? - [ ] N/A Reviewed By: briancoutinho, sraikund16 Differential Revision: D64839500 Pulled By: fengxizhou
39c169b
to
0921d22
Compare
This pull request was exported from Phabricator. Differential Revision: D64839500 |
…acebookresearch#194) Summary: ## What does this PR do? Fixes # 193 - Wrong Configuration Path Caused Test Failures This PR fixes four things in a previous diff. (1) A wrong file path for event_args_formats caused test errors. The fix is to update to the correct path. (2) A type checking error caused by Library stubs not installed for "yaml". The fix is to add the following lines into `pyproject.toml` file. ``` [[tool.mypy.overrides]] module = "yaml" ignore_missing_imports = true ``` (3) Update mypy setting in .pre-commit-config.yaml to workaround errors: "Source file found twice under different module names" (4) Fix format warnings when importing sorces fbcode into github. ## Before submitting - [ x] Was this discussed/approved via a Github issue? (no need for typos, doc improvements) - [ ] N/A - [ ] Did you write any new necessary tests? - [x ] N/A - [ ] Did you make sure to update the docs? - [x ] N/A - [x] Did you update the [changelog](https://github.com/facebookresearch/HolisticTraceAnalysis/blob/main/CHANGELOG.md)? - [ ] N/A Pull Request resolved: facebookresearch#194 Differential Revision: D64839500 Privacy Context Container: L1200110 Reviewed By: briancoutinho, sraikund16
What does this PR do?
Fixes # 193 - Wrong Configuration Path Caused Test Failures
This PR fixes four things in a previous diff.
(1) A wrong file path for event_args_formats caused test errors. The fix is to update to the correct path.
(2) A type checking error caused by Library stubs not installed for "yaml". The fix is to add the following lines into
pyproject.toml
file.(3) Update mypy setting in .pre-commit-config.yaml to workaround errors: "Source file found twice under different module names"
(4) Fix format warnings when importing sorces fbcode into github.
Before submitting