googleapis / release-please

generate release PRs based on the conventionalcommits.org spec
https://www.conventionalcommits.org
Apache License 2.0
4.5k stars 337 forks source link

No tag and release created after merging the PR created by release-please #2028

Open baslu93 opened 12 months ago

baslu93 commented 12 months ago

I'm trying to publish releases with release-please in my repo. I've a Github worflow "Create Release" which is a workflow_dispatch, so that I can run it manually. Everything goes well when I run the workflow:

I proceed merging the PR, but the label is not changing to autorelease: tagged and Release and Tag are not created. What can be the issue?

baslu93 commented 12 months ago

image

emmanuel-apau commented 10 months ago

i just started using this and i'm experiencing the same issue :(

Bhavikpatel576 commented 9 months ago

Same

2martens commented 8 months ago

Have the same problem. It's configured to use command: release-pr in the workflow. It discovers the merged release commit but then does not tag it and remove the label, it just goes on to searching for releasable commits.

oqx commented 6 months ago

Has anyone figured this out? I'm experiencing the same issue. I remove the tags from the merged PR's as well and have the same result.

Something that worked for me was re-running the workflow, even after it succeeded. That seems to trigger tag and release. It just seems to be the initial run where things fail.

Here are the logs from the initial run:

Running release-please version: 16.5.0
❯ Fetching package.json from branch main
✔ Looking for latest release on branch: main with prefix: qwik-table
❯ Fetching merge commits on branch main with cursor: undefined
❯ Found latest release pull request: [15](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:16) version: 0.1.0
❯ Fetching releases with cursor undefined
⚠ Could not find releases.
❯ found 1 possible releases. [
  Version {
    major: 0,
    minor: 1,
    patch: 0,
    preRelease: undefined,
    build: undefined
  }
]
✔ Building releases
✔ Building strategies by path
❯ .: node
❯ Fetching package.json from branch main
✔ Looking for latest release on branch: main with prefix: qwik-table
❯ Fetching merge commits on branch main with cursor: undefined
❯ Found latest release pull request: 15 version: 0.1.0
❯ Fetching releases with cursor undefined
⚠ Could not find releases.
❯ found 1 possible releases. [
  Version {
    major: 0,
    minor: 1,
    patch: 0,
    preRelease: undefined,
    build: undefined
  }
]
✔ Building pull requests
✔ Building strategies by path
❯ .: node
✔ Collecting release commit SHAs
❯ release search depth: 400
❯ Fetching releases with cursor undefined
⚠ Could not find releases.
⚠ Expected 1 releases, only found 0
⚠ Missing 1 paths: .
⚠ Expected 1 releases, only found 0
❯ looking for tagName: v0.1.0
✔ Collecting commits since all latest releases
❯ commit search depth: 500
❯ Set(0) {}
❯ Fetching merge commits on branch main with cursor: undefined
❯ Backfilling file list for commit: f0e55227ef7c5f794f52b8ffab1bd212f4ccd9ac
❯ Found 1 files
❯ Backfilling file list for commit: 1b12cea117a55e33d638584425b476b8d9fa8485
❯ Found 1 files
❯ Backfilling file list for commit: 5cb57396c25786b26b9ad60940a8f8a797620c27
❯ Found 1 files
❯ Backfilling file list for commit: d1d6051d3d4a3081d681783c608fcf9a46f4b1db
❯ Found 23 files
❯ Backfilling file list for commit: dffab5ead2df2e299c3cb9c5c8d0481b3907d514
❯ Found 37 files
❯ Backfilling file list for commit: f27711d01a296143fa59c9ad462479b8da0f8134
❯ Found 43 files
❯ Backfilling file list for commit: c7fcbedf72c876a79c5f3a4456b105d02d02bea9
❯ Found 1 files
❯ Backfilling file list for commit: 360649be26c2dc45cd929fdf424bca2994b3a97b
❯ Found 3 files
❯ Backfilling file list for commit: c9b438f3605737d3ea8d2[16](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:17)27d2132ce81fd9ced
❯ Found 15 files
❯ Backfilling file list for commit: 5bf49647415e37508c69b3486beb6810a59be323
❯ Found 15 files
✔ Splitting 23 commits by path
✔ No latest release found for path: ., component: , but a previous version (0.1.0) was specified in the manifest.
✔ Building candidate release pull request for path: .
❯ type: node
❯ targetBranch: main
❯ commit could not be parsed: 1b12cea1[17](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:18)a55e33d638584425b476b8d9fa8485 Merge pull request #5 from oqx/doc/readme
❯ commit could not be parsed: d1d6051d3d4a3081d681783c608fcf9a46f4b1db Merge pull request #4 from oqx/test/coverage
❯ commits: 24
⚠ No latest release pull request found.
✔ Considering: 24 commits
❯ component: 
❯ pull request title pattern: undefined
❯ Fetching package.json from branch main
✔ Looking for open release pull requests
✔ found 0 open release pull requests.
✔ Looking for snoozed release pull requests
✔ found 0 snoozed release pull requests.
❯ Fetching package-lock.json from branch main
⚠ file package-lock.json did not exist
⚠ file npm-shrinkwrap.json did not exist
❯ Fetching npm-shrinkwrap.json from branch main
❯ Fetching samples/package.json from branch main
⚠ file samples/package.json did not exist
❯ Fetching CHANGELOG.md from branch main
❯ Fetching package.json from branch main
✔ updating from 0.1.0 to 0.1.1
❯ Fetching changelog.json from branch main
⚠ file changelog.json did not exist
⚠ file .release-please-manifest.json did not exist
❯ Fetching .release-please-manifest.json from branch main
✔ Starting GitHub PR workflow...
✔ Successfully found branch HEAD sha "59f[18](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:19)cec597a9359[20](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:21)1e20b97ca94985ceab83cf".
✔ Successfully created branch at https://api.github.com/repos/oqx/qwik-table/git/refs/heads/release-please--branches--main--components--qwik-table
✔ Got the latest commit tree
✔ Successfully created a tree with the desired changes with SHA 4e678a158c30bf759f93ef5055f4bdaf9b5576b0
✔ Successfully created commit. See commit at https://api.github.com/repos/oqx/qwik-table/git/commits/56a52f6a7458a5cf13d148bf80f64db39f[22](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:23)dac3
✔ Updating reference heads/release-please--branches--main--components--qwik-table to 56a52f6a7458a5cf13d148bf80f64db39f22dac3
✔ Successfully updated reference release-please--branches--main--components--qwik-table to 56a52f6a7458a5cf13d148bf80f64db39f22dac3
✔ Successfully opened pull request available at url: https://api.github.com/repos/oqx/qwik-table/pulls/[25](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20113402519#step:10:26).
✔ Successfully opened pull request: 25.
✔ Successfully added labels autorelease: pending to issue: 25

And here are the logs from my second run that actually triggered tag and release (I feel like a wildlife rehabilitator right now):

Running release-please version: 16.5.0
❯ Fetching package.json from branch main
✔ Looking for latest release on branch: main with prefix: qwik-table
❯ Fetching merge commits on branch main with cursor: undefined
❯ Found latest release pull request: 25 version: 0.1.1
❯ Fetching releases with cursor undefined
⚠ Could not find releases.
❯ found 1 possible releases. [
  Version {
    major: 0,
    minor: 1,
    patch: 1,
    preRelease: undefined,
    build: undefined
  }
]
✔ Building releases
✔ Building strategies by path
❯ .: node
❯ Found pull request #25: 'chore(main): release 0.1.1'
✔ Building release for path: .
❯ type: node
❯ targetBranch: main
❯ Fetching package.json from branch main
✔ Creating 1 releases for pull #25
❯ adding comment to https://github.com/oqx/qwik-table/issues/25
❯ removing labels: autorelease: pending from issue/pull 25
❯ adding labels: autorelease: tagged from issue/pull 25
❯ Fetching package.json from branch main
✔ Looking for latest release on branch: main with prefix: qwik-table
❯ Fetching merge commits on branch main with cursor: undefined
❯ Found latest release pull request: 25 version: 0.1.1
❯ Fetching releases with cursor undefined
❯ found release for qwik-table Version {
  major: 0,
  minor: 1,
  patch: 1,
  preRelease: undefined,
  build: undefined
}
❯ found 2 possible releases. [
  Version {
    major: 0,
    minor: 1,
    patch: 1,
    preRelease: undefined,
    build: undefined
  },
  Version {
    major: 0,
    minor: 1,
    patch: 1,
    preRelease: undefined,
    build: undefined
  }
]
✔ Building pull requests
✔ Building strategies by path
❯ .: node
✔ Collecting release commit SHAs
❯ release search depth: 400
❯ Fetching releases with cursor undefined
❯ Found release for path ., v0.1.1
❯ release for path: ., version: 0.1.1, sha: 596293d0692c54a85fb13fa31ef70272aa3f71fa
✔ Collecting commits since all latest releases
❯ commit search depth: 500
❯ Set(1) { '596293d0692c54a85fb13fa31ef70272aa3f71fa' }
❯ Fetching merge commits on branch main with cursor: undefined
❯ Backfilling file list for commit: f0e55227ef7c5f794f52b8ffab1bd212f4ccd9ac
❯ Found 1 files
❯ Backfilling file list for commit: 1b12cea117a55e33d638584425b476b8d9fa8485
❯ Found 1 files
❯ Backfilling file list for commit: 5cb57396c25786b26b9ad60940a8f8a797620c27
❯ Found 1 files
❯ Backfilling file list for commit: d1d6051d3d4a3081d681783c608fcf9a46f4b1db
❯ Found 23 files
❯ Backfilling file list for commit: dffab5ead2df2e299c3cb9c5c8d0481b3907d514
❯ Found 37 files
❯ Backfilling file list for commit: f27711d01a296143fa59c9ad462479b8da0f8134
❯ Found 43 files
❯ Backfilling file list for commit: c7fcbedf72c876a79c5f3a4456b105d02d02bea9
❯ Found 1 files
❯ Backfilling file list for commit: 360649be26c2dc45cd929fdf424bca2994b3a97b
❯ Found 3 files
❯ Backfilling file list for commit: c9b438f3605737d3ea8d21627d2132ce81fd9ced
❯ Found [15](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20114000116#step:10:16) files
❯ Backfilling file list for commit: 5bf49647415e37508c69b3486beb6810a59be3[23](https://github.com/oqx/qwik-table/actions/runs/7393452984/job/20114000116#step:10:24)
❯ Found 15 files
✔ Splitting 0 commits by path
✔ Building candidate release pull request for path: .
❯ type: node
❯ targetBranch: main
❯ commits: 0
✔ Considering: 0 commits
✔ No commits for path: ., skipping