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

Dependency Dashboard shows everything as "awaiting schedule" rather than "open" when updateNotScheduled is false #9275

Closed
1 of 5 tasks
anomiex opened this issue Mar 24, 2021 · 5 comments · Fixed by #10337
Closed
1 of 5 tasks
Assignees
Labels
core:dashboard Related to Dependency Dashboard functionality priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:in-progress Someone is working on implementation type:bug Bug fix of existing functionality

Comments

@anomiex
Copy link
Contributor

anomiex commented Mar 24, 2021

What Renovate type, platform and version are you using?

Hosted app. Github.

Describe the bug

Automattic/jetpack#19284 shows everything under "Awaiting Schedule". I'd expect the ones that have an open PR to be listed under "Open" instead.

PRs only show up under "Open" when I check the checkbox to ignore the schedule, then the next run will move them to "Open". And then they'll move back to "Awaiting Schedule" again on the next run.

Relevant debug logs

Here's an excerpt from https://app.renovatebot.com/dashboard#github/Automattic/jetpack/323280505

DEBUG: processBranch with 58 upgrades(branch="renovate/pin-dependencies")
DEBUG: Setting current branch to master(branch="renovate/pin-dependencies")
DEBUG: latest commit(branch="renovate/pin-dependencies")
{
  "branchName": "master",
  "latestCommitDate": "2021-03-24T15:34:38-04:00"
}
DEBUG: getBranchPr(renovate/pin-dependencies)(branch="renovate/pin-dependencies")
DEBUG: findPr(renovate/pin-dependencies, undefined, open)(branch="renovate/pin-dependencies")
DEBUG: Found PR #19291(branch="renovate/pin-dependencies")
DEBUG: PR not found in open or closed PRs list - trying to fetch it directly(branch="renovate/pin-dependencies")
{
  "prNo": 19291
}
DEBUG: branchExists=true(branch="renovate/pin-dependencies")
DEBUG: Branch pr rebase requested: false(branch="renovate/pin-dependencies")
DEBUG: Branch has 25 upgrade(s)(branch="renovate/pin-dependencies")
DEBUG: Checking if PR has been edited(branch="renovate/pin-dependencies")
DEBUG: Found existing branch PR(branch="renovate/pin-dependencies")
DEBUG: Checking schedule(before 3am on the first day of the month, UTC)(branch="renovate/pin-dependencies")
DEBUG: Found timezone(branch="renovate/pin-dependencies")
{
  "timezone": "UTC"
}
DEBUG: Adjusting now for timezone(branch="renovate/pin-dependencies")
DEBUG: Checking 1 schedule(s)(branch="renovate/pin-dependencies")
DEBUG: Checking schedule "before 3am on the first day of the month"(branch="renovate/pin-dependencies")
{
  "parsedSchedule": {
    "schedules": [
      {
        "t_b": [
          10800
        ],
        "D": [
          1
        ]
      }
    ],
    "exceptions": [],
    "error": -1
  }
}
DEBUG: schedule.D(branch="renovate/pin-dependencies")
{
  "schedule_D": [
    1
  ]
}
DEBUG: Package not scheduled(branch="renovate/pin-dependencies")
DEBUG: Skipping branch update as not within schedule(branch="renovate/pin-dependencies")

Have you created a minimal reproduction repository?

Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.

  • This is a really small bug, it does not need a reproduction (think small typo)
  • I have provided a minimal reproduction repository
  • I don't have time for that, but it happens in a public repository I have linked to
  • I don't have time for that, and cannot share my private repository
  • The nature of this bug means it's impossible to reproduce publicly

Reproduction repo is https://github.com/anomiex/renovate-test

Additional context

I suspect you might fix this by changing

if (config.updateNotScheduled === false && !config.rebaseRequested) {
logger.debug('Skipping branch update as not within schedule');
return ProcessBranchResult.NotScheduled;
}
// istanbul ignore if
if (!branchPr) {
logger.debug('Skipping PR creation out of schedule');
return ProcessBranchResult.NotScheduled;
}
to

      // istanbul ignore if
      if (!branchPr) {
        logger.debug('Skipping PR creation out of schedule');
        return ProcessBranchResult.NotScheduled;
      }
      if (config.updateNotScheduled === false && !config.rebaseRequested) {
        logger.debug('Skipping branch update as not within schedule');
        return ProcessBranchResult.Done;
      }

Or create a new ProcessBranchResult constant if you don't want to reuse Done.

@anomiex anomiex added priority-5-triage status:requirements Full requirements are not yet known, so implementation should not be started type:bug Bug fix of existing functionality labels Mar 24, 2021
@rarkins rarkins added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others and removed priority-5-triage labels Mar 25, 2021
@rarkins
Copy link
Collaborator

rarkins commented Mar 25, 2021

Although a reproduction is always best, we might try fixing this through code inspection alone as proposed.

@rarkins rarkins added status:ready and removed status:requirements Full requirements are not yet known, so implementation should not be started labels Mar 25, 2021
@anomiex
Copy link
Contributor Author

anomiex commented Mar 25, 2021

It was past the end of my day yesterday when I filed this. I've now created a reproduction repo at https://github.com/anomiex/renovate-test.

@github-actions
Copy link
Contributor

Thank you for providing a reproduction! 🎉 🚀

The Renovate team will take a look at the reproduction repository. Once we confirm the provided repository reproduces the problem, the label will be changed to reproduction:confirmed.

@rarkins rarkins added the core:dashboard Related to Dependency Dashboard functionality label Jun 7, 2021
rarkins added a commit that referenced this issue Jun 7, 2021
@rarkins rarkins self-assigned this Jun 7, 2021
@rarkins rarkins added the status:in-progress Someone is working on implementation label Jun 7, 2021
@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 25.37.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rarkins
Copy link
Collaborator

rarkins commented Jun 7, 2021

image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core:dashboard Related to Dependency Dashboard functionality priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:in-progress Someone is working on implementation type:bug Bug fix of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants