-
Notifications
You must be signed in to change notification settings - Fork 568
[fbgemm_gpu] Add Scripts for Generating Release Reports #3676
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
Conversation
q10
commented
Feb 11, 2025
•
edited
Loading
edited
- Add scripts for generating release reports
❌ Deploy Preview for pytorch-fbgemm-docs failed.
|
0bae084
to
06e7f6b
Compare
@q10 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: - Add scripts for generating release reports Differential Revision: D72581171 Pulled By: q10
This pull request was exported from Phabricator. Differential Revision: D72581171 |
Summary: X-link: facebookresearch/FBGEMM#1022 - Add scripts for generating release reports Differential Revision: D72581171 Pulled By: q10
This pull request was exported from Phabricator. Differential Revision: D72581171 |
Summary: X-link: facebookresearch/FBGEMM#1022 - Add scripts for generating release reports Differential Revision: D72581171 Pulled By: q10
This pull request was exported from Phabricator. Differential Revision: D72581171 |
Summary: Add scripts for generating release reports. The previous interation of the scraper script was based on a flawed understanding of the GItHub PR API. Initially, I thought it was possible to grep the API for merged PRs in reverse sorted order, but it turns out that PR timestamps can be updated after merge, and PR information is based on open/close state of PR, not merge state. So it is much better to first fetch all parent commits for a given branch/tag/ref from a start timetamp, then for each commit, search the API for its associated PR, and then pull the PR information. Even though this invokes more API calls and is slower, it is more accurate. Additionally, the code has been rewritten to support more operations in the future. For example, in this diff is a new command that fetches unlabeled PRs, which is useful for us as we construct a release report. Differential Revision: D72581171 Pulled By: q10
This pull request was exported from Phabricator. Differential Revision: D72581171 |
Summary: Add scripts for generating release reports. The previous interation of the scraper script was based on a flawed understanding of the GItHub PR API. Initially, I thought it was possible to grep the API for merged PRs in reverse sorted order, but it turns out that PR timestamps can be updated after merge, and PR information is based on open/close state of PR, not merge state. So it is much better to first fetch all parent commits for a given branch/tag/ref from a start timetamp, then for each commit, search the API for its associated PR, and then pull the PR information. Even though this invokes more API calls and is slower, it is more accurate. Additionally, the code has been rewritten to support more operations in the future. For example, in this diff is a new command that fetches unlabeled PRs, which is useful for us as we construct a release report. Example releases report: P1778912161 Example report of unlabeled PRs: P1778913261 Test Plan: Imported from GitHub, without a `Test Plan:` line. Example: ``` python scrape.py release-report --ref v1.1.2-rc1 --since 2025-04-01 ``` Differential Revision: D72581171 Pulled By: q10
This pull request was exported from Phabricator. Differential Revision: D72581171 |
Summary: X-link: facebookresearch/FBGEMM#1022 Add scripts for generating release reports. The previous interation of the scraper script was based on a flawed understanding of the GItHub PR API. Initially, I thought it was possible to grep the API for merged PRs in reverse sorted order, but it turns out that PR timestamps can be updated after merge, and PR information is based on open/close state of PR, not merge state. So it is much better to first fetch all parent commits for a given branch/tag/ref from a start timetamp, then for each commit, search the API for its associated PR, and then pull the PR information. Even though this invokes more API calls and is slower, it is more accurate. Additionally, the code has been rewritten to support more operations in the future. For example, in this diff is a new command that fetches unlabeled PRs, which is useful for us as we construct a release report. Example releases report: P1778912161 Example report of unlabeled PRs: P1778913261 Test Plan: Imported from GitHub, without a `Test Plan:` line. Example: ``` python scrape.py release-report --ref v1.1.2-rc1 --since 2025-04-01 ``` Differential Revision: D72581171 Pulled By: q10
This pull request was exported from Phabricator. Differential Revision: D72581171 |
Summary: Pull Request resolved: facebookresearch/FBGEMM#1022 Add scripts for generating release reports. The previous interation of the scraper script was based on a flawed understanding of the GItHub PR API. Initially, I thought it was possible to grep the API for merged PRs in reverse sorted order, but it turns out that PR timestamps can be updated after merge, and PR information is based on open/close state of PR, not merge state. So it is much better to first fetch all parent commits for a given branch/tag/ref from a start timetamp, then for each commit, search the API for its associated PR, and then pull the PR information. Even though this invokes more API calls and is slower, it is more accurate. Additionally, the code has been rewritten to support more operations in the future. For example, in this diff is a new command that fetches unlabeled PRs, which is useful for us as we construct a release report. Example releases report: P1778912161 Example report of unlabeled PRs: P1778913261 X-link: pytorch#3676 Test Plan: Imported from GitHub, without a `Test Plan:` line. Example: ``` python scrape.py release-report --ref v1.1.2-rc1 --since 2025-04-01 ``` Reviewed By: spcyppt Differential Revision: D72581171 Pulled By: q10 fbshipit-source-id: 88e998a1dcc98078526dcb7e1b2d566b467080ea