Skip to content

Conversation

ZainRizvi
Copy link
Contributor

@ZainRizvi ZainRizvi commented Aug 27, 2025

Stack from ghstack (oldest at bottom):

Two changes:

  • Extract getting the last_commit's sha into it's own function
  • Rename merge_changes to merge_changes_locally to better explain it's functionality

[ghstack-poisoned]
@ZainRizvi ZainRizvi requested a review from a team as a code owner August 27, 2025 18:18
Copy link

pytorch-bot bot commented Aug 27, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 24 Pending

As of commit 5c4a1b9 with merge base ae8d319 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@ZainRizvi
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 27, 2025
@pytorchmergebot
Copy link
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


def last_commit_sha(self) -> str:
# for commits, the oid is the sha
return str(self.last_commit().get("oid", ""))
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you want to error out if oid is not defined?

return self.merge_base

last_commit_oid = self.last_commit()["oid"]
last_commit_oid = self.last_commit_sha()
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit

Suggested change
last_commit_oid = self.last_commit_sha()
last_commit_sha = self.last_commit_sha()

)

def merge_changes(
def merge_changes_locally(
Copy link
Contributor

Choose a reason for hiding this comment

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

This change feels unnecessary imo, but don't have a strong preference

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

[ghstack-poisoned]
@malfet
Copy link
Contributor

malfet commented Aug 27, 2025

@pytorchbot merge -f "Lint is green"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

pytorchmergebot pushed a commit that referenced this pull request Aug 29, 2025
Pull Request resolved: #161560
Approved by: https://github.com/malfet
ghstack dependencies: #161558, #161637
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Two changes:
- Extract getting the last_commit's sha into it's own function
- Rename merge_changes to merge_changes_locally to better explain it's functionality
Pull Request resolved: pytorch#161637
Approved by: https://github.com/seemethere, https://github.com/malfet
ghstack dependencies: pytorch#161558
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
@github-actions github-actions bot deleted the gh/ZainRizvi/9/head branch September 27, 2025 02:07
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 topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants