renovatebot / app-support

Discussion/support issues for the hosted Renovate App
0 stars 0 forks source link

Automerge is not working #93

Closed dqn closed 3 years ago

dqn commented 3 years ago

What Renovate type, platform and version are you using?

GitHub App

Describe the bug

Automerge is enabled, but it is still not merging 20 days after the PR was created.

https://github.com/dqn/tw-xauth/pull/10

Relevant debug logs

No logs were found for this PR older than this.

DEBUG: getBranchPr(renovate/node-14.x)(branch="renovate/node-14.x")
DEBUG: findPr(renovate/node-14.x, undefined, open)(branch="renovate/node-14.x")
DEBUG: Found PR renovatebot/renovate#10(branch="renovate/node-14.x")
DEBUG: Returning from graphql open PR list(branch="renovate/node-14.x")
DEBUG: processBranch with 1 upgrades(branch="renovate/node-14.x")
DEBUG: Setting current branch to master(branch="renovate/node-14.x")
DEBUG: latest commit(branch="renovate/node-14.x")
{
  "branchName": "master",
  "latestCommitDate": "2020-10-08T10:57:30+00:00"
}
DEBUG: getBranchPr(renovate/node-14.x)(branch="renovate/node-14.x")
DEBUG: findPr(renovate/node-14.x, undefined, open)(branch="renovate/node-14.x")
DEBUG: Found PR renovatebot/renovate#10(branch="renovate/node-14.x")
DEBUG: Returning from graphql open PR list(branch="renovate/node-14.x")
DEBUG: branchExists=true(branch="renovate/node-14.x")
DEBUG: Branch pr rebase requested: false(branch="renovate/node-14.x")
DEBUG: Branch has 1 upgrade(s)(branch="renovate/node-14.x")
DEBUG: Checking if PR has been edited(branch="renovate/node-14.x")
DEBUG: Found existing branch PR(branch="renovate/node-14.x")
DEBUG: Checking schedule(at any time, null)(branch="renovate/node-14.x")
DEBUG: No schedule defined(branch="renovate/node-14.x")
DEBUG: Branch already exists(branch="renovate/node-14.x")
DEBUG: getBranchPr(renovate/node-14.x)(branch="renovate/node-14.x")
DEBUG: findPr(renovate/node-14.x, undefined, open)(branch="renovate/node-14.x")
DEBUG: Found PR renovatebot/renovate#10(branch="renovate/node-14.x")
DEBUG: Returning from graphql open PR list(branch="renovate/node-14.x")
DEBUG: GitHub 404(branch="renovate/node-14.x")
{
  "url": "repos/dqn/tw-xauth/branches/master/protection"
}
DEBUG: No branch protection found(branch="renovate/node-14.x")
DEBUG: PR is conflicted(branch="renovate/node-14.x")
DEBUG: Branch is not mergeable and needs rebasing(branch="renovate/node-14.x")
DEBUG: Using reuseExistingBranch: false(branch="renovate/node-14.x")
DEBUG: manager.getUpdatedPackageFiles()(branch="renovate/node-14.x")
{
  "reuseExistingBranch": false,
  "branchName": "renovate/node-14.x"
}
DEBUG: npm.updateDependency(): devDependencies.@types/node = 14.14.3(branch="renovate/node-14.x")
DEBUG: Updating packageFile content(packageFile="package.json", branch="renovate/node-14.x")
{
  "depName": "@types/node"
}
DEBUG: Updated 1 package files(branch="renovate/node-14.x")
DEBUG: Getting updated lock files(branch="renovate/node-14.x")
DEBUG: lock file dirs(branch="renovate/node-14.x")
{
  "dirs": {
    "yarnLockDirs": [
      "yarn.lock"
    ],
    "npmLockDirs": [],
    "pnpmShrinkwrapDirs": [],
    "lernaDirs": []
  }
}
DEBUG: Writing package.json files(branch="renovate/node-14.x")
{
  "packageFiles": [
    "package.json"
  ]
}
DEBUG: Writing any updated package files(branch="renovate/node-14.x")
DEBUG: Writing package.json(branch="renovate/node-14.x")
DEBUG: No npmrc file found in repository(branch="renovate/node-14.x")
DEBUG: Writing updated .npmrc file to /mnt/renovate/gh/dqn/tw-xauth/.npmrc(branch="renovate/node-14.x")
DEBUG: Generating yarn.lock for .(branch="renovate/node-14.x")
DEBUG: Spawning yarn install to create /mnt/renovate/gh/dqn/tw-xauth/yarn.lock(branch="renovate/node-14.x")
DEBUG: Updating yarn.lock only - skipping node_modules(branch="renovate/node-14.x")
DEBUG: No node constraint found - using latest(branch="renovate/node-14.x")
DEBUG: Performing yarn dedupe highest(branch="renovate/node-14.x")
DEBUG: Using docker to execute(branch="renovate/node-14.x")
DEBUG: No tag or tagConstraint specified(branch="renovate/node-14.x")
{
  "image": "docker.io/renovate/node"
}
DEBUG: Docker image is already prefetched: docker.io/renovate/node(branch="renovate/node-14.x")
DEBUG: Executing command(branch="renovate/node-14.x")
{
  "command": "docker run --rm --name=renovate_node --label=renovate_child -v \"/mnt/renovate/gh/dqn/tw-xauth\":\"/mnt/renovate/gh/dqn/tw-xauth\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/mnt/renovate/gh/dqn/tw-xauth\" docker.io/renovate/node bash -l -c \"npm i -g yarn && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts && npx yarn-deduplicate --strategy highest && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\""
}
DEBUG: exec completed(branch="renovate/node-14.x")
{
  "cmd": "docker run --rm --name=renovate_node --label=renovate_child -v \"/mnt/renovate/gh/dqn/tw-xauth\":\"/mnt/renovate/gh/dqn/tw-xauth\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/mnt/renovate/gh/dqn/tw-xauth\" docker.io/renovate/node bash -l -c \"npm i -g yarn && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts && npx yarn-deduplicate --strategy highest && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\"",
  "durationMs": 13713,
  "stdout": "\n> yarn@1.22.10 preinstall /home/ubuntu/.npm-global/lib/node_modules/yarn\n> :; (node ./preinstall.js > /dev/null 2>&1 || true)\n\n/home/ubuntu/.npm-global/bin/yarn -> /home/ubuntu/.npm-global/lib/node_modules/yarn/bin/yarn.js\n/home/ubuntu/.npm-global/bin/yarnpkg -> /home/ubuntu/.npm-global/lib/node_modules/yarn/bin/yarn.js\n+ yarn@1.22.10\nadded 1 package in 1.324s\nyarn install v1.22.10\n[1/4] Resolving packages...\nsuccess Saved lockfile.\nDone in 2.00s.\nyarn install v1.22.10\n[1/4] Resolving packages...\nDone in 1.58s.\n",
  "stderr": "npx: installed 4 in 2.874s\n"
}
DEBUG: yarn.lock needs updating(branch="renovate/node-14.x")
DEBUG: updateYarnOffline resolvedPaths(branch="renovate/node-14.x")
{
  "resolvedPaths": []
}
DEBUG: Updated 1 lock files(branch="renovate/node-14.x")
{
  "updatedArtifacts": [
    "yarn.lock"
  ]
}
DEBUG: 2 file(s) to commit(branch="renovate/node-14.x")
DEBUG: Committing files to branch renovate/node-14.x(branch="renovate/node-14.x")
INFO: Branch updated(branch="renovate/node-14.x")
{
  "commitSha": "1b4dfad"
}
DEBUG: Checking if we can automerge branch(branch="renovate/node-14.x")
DEBUG: mergeStatus=no automerge(branch="renovate/node-14.x")
DEBUG: Ensuring PR(branch="renovate/node-14.x")
DEBUG: There are 0 errors and 0 warnings(branch="renovate/node-14.x")
DEBUG: getBranchPr(renovate/node-14.x)(branch="renovate/node-14.x")
DEBUG: findPr(renovate/node-14.x, undefined, open)(branch="renovate/node-14.x")
DEBUG: Found PR renovatebot/renovate#10(branch="renovate/node-14.x")
DEBUG: Returning from graphql open PR list(branch="renovate/node-14.x")
DEBUG: Found existing PR(branch="renovate/node-14.x")
DEBUG: getBranchStatus(renovate/node-14.x)(branch="renovate/node-14.x")
DEBUG: branch status check result(branch="renovate/node-14.x")
{
  "state": "pending",
  "statuses": []
}
DEBUG: No check runs found(branch="renovate/node-14.x")
{
  "result": {
    "total_count": 0,
    "check_runs": []
  }
}
DEBUG: Processing existing PR(branch="renovate/node-14.x")
DEBUG: getBranchStatus(renovate/node-14.x)(branch="renovate/node-14.x")
DEBUG: branch status check result(branch="renovate/node-14.x")
{
  "state": "pending",
  "statuses": []
}
DEBUG: No check runs found(branch="renovate/node-14.x")
{
  "result": {
    "total_count": 0,
    "check_runs": []
  }
}
DEBUG: getBranchStatus() result(branch="renovate/node-14.x")
{
  "branchStatus": "yellow",
  "branchName": "renovate/node-14.x"
}
DEBUG: PR title changed(branch="renovate/node-14.x")
{
  "branchName": "renovate/node-14.x",
  "oldPrTitle": "chore(deps): update dependency @types/node to v14.11.7",
  "newPrTitle": "chore(deps): update dependency @types/node to v14.14.3"
}
DEBUG: updatePr(10, chore(deps): update dependency @types/node to v14.14.3, body)(branch="renovate/node-14.x")
DEBUG: PR updated(branch="renovate/node-14.x")
{
  "pr": 10
}
INFO: PR updated(branch="renovate/node-14.x")
{
  "pr": 10,
  "prTitle": "chore(deps): update dependency @types/node to v14.14.3"
}
DEBUG: Getting comments for renovatebot/renovate#10(branch="renovate/node-14.x")
DEBUG: Found 0 comments(branch="renovate/node-14.x")
DEBUG: Checking renovatebot/renovate#10 for automerge(branch="renovate/node-14.x")
{
  "automerge": true,
  "automergeType": "pr",
  "automergeComment": "automergeComment"
}
DEBUG: PR is configured for automerge(branch="renovate/node-14.x")
DEBUG: PR is conflicted(branch="renovate/node-14.x")
DEBUG: (branch="renovate/node-14.x")
{
  "pr": {
    "number": 10,
    "title": "chore(deps): update dependency @types/node to v14.11.7",
    "labels": [],
    "body": "This PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | devDependencies | patch | [`14.11.2` -> `14.11.7`](https://renovatebot.com/diffs/npm/@types%2fnode/14.11.2/14.11.7) |\n\n---\n\n### Renovate configuration\n\n:date: **Schedule**: At any time (no schedule defined).\n\n:vertical_traffic_light: **Automerge**: Enabled.\n\n:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.\n\n:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.\n\n---\n\n - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box\n\n---\n\nThis PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/dqn/tw-xauth).",
    "reviews": {
      "nodes": []
    },
    "displayNumber": "Pull Request renovatebot/renovate#10",
    "state": "open",
    "sourceBranch": "renovate/node-14.x",
    "targetBranch": "master",
    "canMerge": false,
    "canMergeReason": "mergeStateStatus = DIRTY",
    "isConflicted": true,
    "hasAssignees": false,
    "hasReviewers": false
  }
}

To Reproduce

Sorry, I don't know. It may or may not reappear.

viceice commented 3 years ago

You need tests for automerge or disable renovate required status checks, see docs

viceice commented 3 years ago

Ups, no, I see checks on your pr. The logs say that your pr was conflicted and was rebased. So we need the logs from the run after that.

dqn commented 3 years ago

There is no log immediately after that about that branch.

This is all of this repository's log. https://gist.github.com/dqn/2b48d52f30fddba65cb5256cbb302572

viceice commented 3 years ago

Are you sure there are no more renovate runs since the last update of the pr? I'm pretty sure there should be more runs and some log messages about that pr / branch. please provide latest run logs

dqn commented 3 years ago

There is no new log. No new jobs either. 2020-10-28 15 26 20

rarkins commented 3 years ago

Somehow it was misclassified as 'onboarding' status in the DB and so not being processed per hour. I've fixed that and will try to work out why that happened.