Repository navigation
Support int64 scalar tensor data for fold_in() - #206339
jbschlosser wants to merge 8 commits into
Conversation
[ghstack-poisoned]
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Findings (1): Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/206339
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit b32c155 with merge base bcff2f4 ( 🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:
reason: FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
albanD
left a comment
There was a problem hiding this comment.
Sounds fair but should be clearer about the mapping.
in particular, if I pass 12 as data as uint64 or int64, I should get the same result right? Only if I pass a negative int64 do I get remapped to the top of the uint64 range?
| ``uint64``, contain a single value, and reside on the same device | ||
| as ``key``. | ||
| ``uint64`` or ``int64`` (whose negative values are remapped the same | ||
| way), contain a single value, and reside on the same device as |
There was a problem hiding this comment.
What does remapped the same way means?
this is correct; lemme get this reworded to make this clear |
## Author Notes We should never collapse things that would prevent merging. ## Agent Notes Cancelled jobs land in `failedJobs`, so `isDrciGreen` treats them as failures: they make the Dr. CI headline ❌, block the "ready for review" promotion (`isCiGoodForReview`) and block merging. Their section was nonetheless rendered collapsed, the only blocking section to be so (NEW FAILURES, UNCLASSIFIED and AWAITING APPROVAL are open), sitting next to the collapsed non-blocking FLAKY / BROKEN TRUNK / UNSTABLE sections, so it read as non-blocking. For example, pytorch/pytorch#206339 stays `in progress` only because of 4 collapsed cancelled Lint jobs. This renders the CANCELLED JOBS section open and adds a test for it. Tested with `npx jest --no-watchman test/drci.test.ts` (67/67 pass). This PR was written by Claude Code on behalf of albanD.
…head (#9616) ## Author Notes Making the (rare) case where a single workflow running on a single hash work better. In particular, when you rerun the older run, it doesn't become the "newer" because it's ID doesn't change. And so reruning cannot clear a other workflow being cancelled or failed for flaky reason. Making it so that success > fail > most recent. ## Agent Notes `reorganizeWorkflows` keeps one run per workflow file (`workflowUniqueId`) on the PR head and drops every job of the other runs. It used to keep the run with the highest ID. A re-run keeps its run ID (only `run_attempt` changes), so re-running the older run never makes it win, and a newer cancelled or flakily failed run keeps blocking. Example: pytorch/pytorch#206339 got two Lint runs in the same second; concurrency cancelled the newer one (45427672193) while the older one (45427672059) passed every job, yet Dr. CI dropped the passing run and listed 4 cancelled jobs, keeping the PR from being promoted to "ready for review". The run is now picked by rank, then by highest ID within a rank: success > anything else (failure, in progress, ...) > cancelled. | Runs on the same head commit | Before | After | |---|---|---| | older success, newer cancelled | cancelled | success | | older success, newer failed | failed | success | | older failed, newer success | success | success | | older failed, newer cancelled | cancelled | failed | | all cancelled / no success or cancellation | highest ID | highest ID | **Behavior change vs #5038:** the existing test "test new failed workflow overrides old succeeding workflow" asserted that a newer failed run beats an older successful run of the same workflow on the same commit. This PR deliberately reverses that: the successful run wins, and the test is flipped to "test old succeeding workflow overrides new failed workflow" (expects 0 failed jobs). Trade-off: if two events run the same workflow file with different job sets (e.g. label-gated jobs), an older green run can now hide a newer red one. No SQL change: workflow rows from `recent_pr_workflows_query` already carry `conclusion`. Added table-driven `reorganizeWorkflows` tests (3 of the 4 fail on the old logic). `npx jest --no-watchman` on `drci`, `drciStatus`, `drciAuth` and `crcrComment` tests: 157/157 pass; prettier clean; `tsc` error count unchanged from `main`. This PR was written by Claude Code on behalf of albanD.
[ghstack-poisoned]
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 1 jobs have failed on stacked PR #206328, first few of them are: trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: HTTP Error 403: Forbidden Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 1 jobs have failed on stacked PR #206328, first few of them are: trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 3 checks: trunk / linux-jammy-cuda13.2-py3.11-gcc11 / test (pr_time_benchmarks, 1, 1, mt-l-bx86iavx512-94-344-t4-8) (#206328), trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) (#206328), trunk / linux-jammy-cuda13.2-py3.11-gcc11 / test (pr_time_benchmarks, 1, 1, mt-l-bx86iavx512-94-344-t4-8) (#206339) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
Expands
fold_in()to support int64 scalar tensor data. This is useful because uint64 has limited support within PyTorch, and requiring it as the dtype for data makes doing math on such data annoying: