Skip to content

[BE] Remove deprecated github gql param and disable inconsistent test#107385

Closed
ZainRizvi wants to merge 1 commit intogh/ZainRizvi/7/basefrom
gh/ZainRizvi/7/head
Closed

[BE] Remove deprecated github gql param and disable inconsistent test#107385
ZainRizvi wants to merge 1 commit intogh/ZainRizvi/7/basefrom
gh/ZainRizvi/7/head

Conversation

@ZainRizvi
Copy link
Contributor

@ZainRizvi ZainRizvi commented Aug 17, 2023

Stack from ghstack (oldest at bottom):

Two fixes:

@ZainRizvi ZainRizvi requested a review from a team as a code owner August 17, 2023 16:02
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 17, 2023

🔗 Helpful Links

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

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

✅ No Failures

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

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

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Aug 17, 2023
ZainRizvi added a commit that referenced this pull request Aug 17, 2023
@ZainRizvi ZainRizvi added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 17, 2023
@ZainRizvi ZainRizvi requested a review from izaitsevfb August 17, 2023 16:07
print(
f"Can't get commit {pr.last_commit()['oid']} pushed date. Is it merge commit by chance?"
)
elif (datetime.utcnow() - cast(datetime, pr.last_pushed_at())).days > stale_pr_days:
Copy link
Contributor

Choose a reason for hiding this comment

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

is there an equivalent for pusheddate that we can use? or are we fine with getting rid of the 3 day check for old jobs?

Copy link
Contributor Author

@ZainRizvi ZainRizvi Aug 17, 2023

Choose a reason for hiding this comment

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

The deprecation notice doesn't suggest any alternatives, and a cursory glance at the API didn't suggest anything either.

Frankly, this felt like a weird check that didn't really help with anything. The team seems to have originally thought this was a merge-base date check instead of a "last push" date check, the latter of which doesn't really offer much protection.

I do think we should add in a merge-base date check, but that's a separate project from getting rid of this deprecated code. For the past month this code has been doing nothing anyways (I only discovered the failure because the test started failing once I regenerated the github gql query cache. Hence this PR being in a ghstack)

This is a strict improvement over the existing code.

@ZainRizvi ZainRizvi requested review from a team and clee2000 August 17, 2023 21:15
pytorchmergebot pushed a commit that referenced this pull request Aug 17, 2023
Fixes #100406

Pull Request resolved: #107390
Approved by: https://github.com/clee2000
ghstack dependencies: #107385
@facebook-github-bot facebook-github-bot deleted the gh/ZainRizvi/7/head branch August 21, 2023 14:16
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.

3 participants