Skip to content
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

Lock file maintenance PR opened outside of scheduled window #2503

Closed
edmorley opened this issue Sep 11, 2018 · 5 comments
Closed

Lock file maintenance PR opened outside of scheduled window #2503

edmorley opened this issue Sep 11, 2018 · 5 comments
Assignees
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:bug Bug fix of existing functionality

Comments

@edmorley
Copy link
Contributor

edmorley commented Sep 11, 2018

What Renovate type are you using?
Renovate GitHub App

Describe the bug
The webpack-chain repo uses :maintainLockFilesWeekly which has a schedule of "before 3am on Monday", but yet a PR was opened today (Tuesday):
neutrinojs/webpack-chain/pull/101

To Reproduce
Steps to reproduce the behavior:

  1. Have a repo that uses :maintainLockFilesWeekly
  2. Wait for a PR to be opened on Monday as expected
  3. On Tuesday merge that PR (Lock file maintenance neutrinojs/webpack-chain#100)
  4. Wait ~2 hours
  5. Check if another PR has been opened

Expected behavior
No extra PR outside of the scheduled window.

Additional context
I believe this is the Renovate run that opened the unexpected lockfile maintenance PR:
https://renovatebot.com/dashboard#neutrinojs/webpack-chain/19696257

@rarkins rarkins added type:bug Bug fix of existing functionality priority-2-high Bugs impacting wide number of users or very important features ready labels Sep 12, 2018
@rarkins rarkins self-assigned this Sep 12, 2018
@rarkins rarkins added in progress and removed ready labels Sep 13, 2018
@rarkins
Copy link
Collaborator

rarkins commented Sep 13, 2018

Looks like:

Previous lock file maintenance PR was merged but branch not deleted

Renovate detected the branch as existing:

{"msg":"branchExists(renovate/lock-file-maintenance)=true","time":"2018-09-11T16:54:19.928Z"}

Renovate detected schedule correctly:

{"msg":"Does not match schedule because Tuesday is not in Monday","time":"2018-09-11T16:54:23.040Z"}
{"msg":"Package not scheduled","time":"2018-09-11T16:54:23.040Z"}
{"msg":"Branch exists but is not scheduled -- will update if necessary","time":"2018-09-11T16:54:23.040Z"}

Renovate created PR:

{"branch":"renovate/lock-file-maintenance","pr":101,"msg":"PR created","time":"2018-09-11T16:54:25.917Z"}

@rarkins rarkins added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others and removed priority-2-high Bugs impacting wide number of users or very important features labels Sep 13, 2018
@renovate-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 13.64.17 🎉

The release is available on:

Your semantic-release bot 📦🚀

@edmorley
Copy link
Contributor Author

edmorley commented Sep 17, 2018

Hi! Thank you for looking into this more.

However if I've understood d19b15b correctly, it means that the lockfile PRs will now never be updated in-between schedule windows, even if the PR is already open? This means that they will be stale, and significantly reduces the usefulness of the lockfile refresh feature for us. For example, if I don't get a chance to review/merge the PR the day it first opens, then when I come to it later, I'll only end up having to manually refresh the lockfile again before I merge it.

Could the new check instead only skip for "not-scheduled" if the PR isn't open? Or if that's not possible, then I'm happy to just have d19b15b reverted, since having to remember to delete the branch (to avoid the issue here) is preferable to open PRs not being refreshed in-between schedule.

Many thanks :-)

@rarkins
Copy link
Collaborator

rarkins commented Sep 17, 2018

@edmorley thanks for the suggestion. I've improved this logic in 839eeaa

@edmorley
Copy link
Contributor Author

Amazing - thanks for the change and fast reponse (as always!) :-)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:bug Bug fix of existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants