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

Feature: Catch error "Project must have a description" when creating a release. #684

Closed
xrow opened this issue Mar 3, 2024 · 10 comments · Fixed by #712
Closed

Feature: Catch error "Project must have a description" when creating a release. #684

xrow opened this issue Mar 3, 2024 · 10 comments · Fixed by #712

Comments

@xrow
Copy link

xrow commented Mar 3, 2024

Maybe this is new in gitlab. Each project needs to have a description before creating a release. Can you maybe add a check if that value is not emtpy and then do a proper error message? Or pass the error along from the returning response. Currently it silently fails without message. just having the info HTTPError: Response code 422 (Unprocessable Entity).

[root@localhost ci-tools]# curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: glpat-XXX" \
     --data '{  "tag_name": "v1.0.1",  "description": "## [1.0.1](https://gitlab.com/xrow-public/ci-tools/compare/v1.0.0...v1.0.1) (2024-03-03)\n\n\n### Bug Fixes\n\n* Remove ansible.cfg file ([610b0dd](https://gitlab.com/xrow-public/ci-tools/commit/610b0dd3e1383fd24db2151ab523851d89c092f5))\n\n\n\n",  "assets": {    "links": []  } }' \
     --request POST "https://gitlab.com/api/v4/projects/xrow-public%2Fci-tools/releases"
{"message":"Project must have a description"}
@JonasSchubert
Copy link
Contributor

Hi @xrow .

Am I correct with the assumption you are trying to create a release for a ci component to publish it to the new ci catalogue? These projects indeed need a project description according to the docs.
Not all projects need this though, in my understanding.

But I agree with you, we could have a better error logging to improve the user experience. I will try to get some time for that in the next weeks.

@xrow
Copy link
Author

xrow commented Mar 3, 2024

@JonasSchubert This is correct.

The wired thing is also this

@xrow
Copy link
Author

xrow commented Mar 3, 2024

Also in my tests tag_name is also problematic. Should we overwrite the default somehow or let the user figure it out? v1.0.0 is not semver according to gitlab.

[root@localhost ci-tools]# curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: glpat-XXX"
--data '{ "tag_name": "v1.0.0", "description": "# 1.0.0 (2024-03-03)\n\n\n### Bug Fixes\n\n* Host key verification failed. (41ab154)\n* Remove ansible.cfg file (610b0dd)\n\n\n\n", "assets": { "links": [] }}'
--request POST "https://gitlab.com/api/v4/projects/xrow-public%2Fci-tools/releases"
{"message":"Validation failed: must follow semantic version"}

@xrow
Copy link
Author

xrow commented Apr 24, 2024

I discovered another hidden message "Release cannot contain more than 30 components". When publishing a ci/cd catalog.

@fgreinacher
Copy link
Contributor

fgreinacher commented Apr 24, 2024

All of this are new limitations at the GitLab side. We should not try to work around this, but instead properly surface the error message so that users know what is going on.

At least for the semver issue they will change this to allow the v prefix again, see https://gitlab.com/gitlab-org/gitlab/-/issues/441467.

@xrow
Copy link
Author

xrow commented Apr 24, 2024

@fgreinacher Agree

@xrow
Copy link
Author

xrow commented Apr 24, 2024

@fgreinacher

A never ending story :-). Yet another message.

{"message":"Build component error: Spec must be a valid json schema"}

@fgreinacher
Copy link
Contributor

fgreinacher commented May 7, 2024

@xrow Can you provide a sample project that shows (some of) the silent failures you have mentioned in the original post? That would greatly help improve the behavior. 🙇

@xrow
Copy link
Author

xrow commented May 7, 2024

@fgreinacher You can do it with any repository very easy. Just remove for example the project description and add it back in later.

Well here is a silent example https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L410
Silent in the meaning of exception but no information.

Running with gitlab-runner 15.9.1 (d540b510)
  on gitlab-runner-0-5944c7b988-q97nv 9vjzxY1u, system ID: r_Wori[2](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L2)UN37IzY
  feature flags: FF_ENABLE_BASH_EXIT_CODE_CHECK:true
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image registry.gitlab.com/xrow-public/ci-tools/semantic-release:main ...
Using attach strategy to execute scripts...
Preparing environment
01:24
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	Unschedulable: "0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod."
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	Unschedulable: "0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod."
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	Unschedulable: "0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod."
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	Unschedulable: "0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod."
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	Unschedulable: "0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod."
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	Unschedulable: "0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod."
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-permissions]"
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-9vjzxy1u-project-11721554-concurrent-0mk2gq to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-9vjzxy1u-project-11721554-concurrent-0mk2gq via gitlab-runner-0-5944c7b988-q97nv...
Getting source from Git repository
00:09
Fetching changes with git depth set to [3](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L3)...
Initialized empty Git repository in /builds/xrow-public/ci-tools/.git/
Created fresh repository.
Checking out e6027a08 as detached HEAD (ref is main)...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:30
$ source <(curl -s https://$CI_SERVER_HOST/xrow-public/ci-tools/-/raw/main/scripts/library.sh) # collapsed multi-line command
[info] Using ci-tools from /builds/xrow-public/ci-tools
[info] Init global git settings
[info] Documention of job 'semantic-release': https://xrow-public.gitlab.io/ci-tools/#semantic-release
[info] Cache dir /cache is present.
[info] Debug mode is disabled. Set 'CI_DEBUG_TRACE=true' to enable.
[info] Creating .releaserc.json file
[10:09:35 AM] [semantic-release] › ℹ  Running semantic-release version 23.0.7
202[4](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L4)-04-22T08:09:35.527Z semantic-release:config load config from: /builds/xrow-public/ci-tools/.releaserc.json
2024-04-22T08:09:3[5](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L5).914Z semantic-release:config options values: {
  branches: [ 'main', 'master' ],
  repositoryUrl: 'https://gitlab-ci-token:[secure]@gitlab.com/xrow-public/ci-tools.git',
  tagFormat: '${version}',
  plugins: [
    [ '@semantic-release/commit-analyzer', [Object] ],
    '@semantic-release/release-notes-generator',
    [ '@semantic-release/changelog', [Object] ],
    '@semantic-release/gitlab'
  ],
  _: [],
  debug: true,
  '$0': '/opt/app-root/src/node_modules/.bin/semantic-release'
}
(node:47) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
2024-04-22T08:09:37.113Z semantic-release:plugins options for @semantic-release/changelog/verifyConditions: { changelogFile: 'docs/CHANGELOG.md' }
[10:09:37 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
2024-04-22T08:09:37.114Z semantic-release:plugins options for @semantic-release/gitlab/verifyConditions: {}
[10:09:37 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/gitlab"
2024-04-22T08:09:37.115Z semantic-release:plugins options for @semantic-release/commit-analyzer/analyzeCommits: { preset: 'conventionalcommits' }
[10:09:37 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
2024-04-22T08:09:37.11[6](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L6)Z semantic-release:plugins options for @semantic-release/release-notes-generator/generateNotes: {}
[10:09:3[7](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L7) AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
2024-04-22T0[8](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L8):09:37.117Z semantic-release:plugins options for @semantic-release/changelog/prepare: { changelogFile: 'docs/CHANGELOG.md' }
[10:0[9](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L9):37 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
2024-04-22T08:09:37.117Z semantic-release:plugins options for @semantic-release/gitlab/publish: {}
[[10](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L10):09:37 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/gitlab"
2024-04-22T08:09:37.118Z semantic-release:plugins options for @semantic-release/gitlab/success: {}
[10:09:37 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/gitlab"
2024-04-22T08:09:37.[11](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L11)9Z semantic-release:plugins options for @semantic-release/gitlab/fail: {}
[10:09:37 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/gitlab"
2024-04-22T08:09:37.759Z semantic-release:get-git-auth-url Verifying ssh auth by attempting to push to  https://gitlab-ci-token:[secure]@gitlab.com/xrow-public/ci-tools.git
2024-04-22T08:09:39.072Z semantic-release:git Error: Command failed with exit code [12](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L12)8: git push --dry-run --no-verify https://gitlab-ci-token:[secure]@gitlab.com/xrow-public/ci-tools.git HEAD:main
remote: You are not allowed to upload code.
fatal: unable to access 'https://gitlab.com/xrow-public/ci-tools.git/': The requested URL returned error: 403
    at makeError (file:///opt/app-root/src/node_modules/semantic-release/node_modules/execa/lib/error.js:60:11)
    at handlePromise (file:///opt/app-root/src/node_modules/semantic-release/node_modules/execa/index.js:124:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async verifyAuth (file:///opt/app-root/src/node_modules/semantic-release/lib/git.js:206:5)
    at async default (file:///opt/app-root/src/node_modules/semantic-release/lib/get-git-auth-url.js:93:5)
    at async run (file:///opt/app-root/src/node_modules/semantic-release/index.js:67:27)
    at async Module.default (file:///opt/app-root/src/node_modules/semantic-release/index.js:278:22)
    at async default (file:///opt/app-root/src/node_modules/semantic-release/cli.js:55:5)
2024-04-22T08:09:39.072Z semantic-release:get-git-auth-url SSH key auth failed, falling back to https.
2024-04-22T08:09:39.072Z semantic-release:get-git-auth-url Found 2 credentials in environment, trying all of them
2024-04-22T08:09:40.256Z semantic-release:git Error: Command failed with exit code 128: git push --dry-run --no-verify https://[secure]@gitlab.com/xrow-public/ci-tools.git HEAD:main
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/xrow-public/ci-tools.git/'
    at makeError (file:///opt/app-root/src/node_modules/semantic-release/node_modules/execa/lib/error.js:60:11)
    at handlePromise (file:///opt/app-root/src/node_modules/semantic-release/node_modules/execa/index.js:124:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async verifyAuth (file:///opt/app-root/src/node_modules/semantic-release/lib/git.js:206:5)
    at async ensureValidAuthUrl (file:///opt/app-root/src/node_modules/semantic-release/lib/get-git-auth-url.js:43:5)
    at async Promise.all (index 0)
    at async default (file:///opt/app-root/src/node_modules/semantic-release/lib/get-git-auth-url.js:114:35)
    at async run (file:///opt/app-root/src/node_modules/semantic-release/index.js:67:27)
    at async Module.default (file:///opt/app-root/src/node_modules/semantic-release/index.js:278:22)
    at async default (file:///opt/app-root/src/node_modules/semantic-release/cli.js:55:5)
2024-04-22T08:09:40.256Z semantic-release:get-git-auth-url Error: Command failed with exit code 128: git push --dry-run --no-verify https://[secure]@gitlab.com/xrow-public/ci-tools.git HEAD:main
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/xrow-public/ci-tools.git/'
    at makeError (file:///opt/app-root/src/node_modules/semantic-release/node_modules/execa/lib/error.js:60:11)
    at handlePromise (file:///opt/app-root/src/node_modules/semantic-release/node_modules/execa/index.js:124:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async verifyAuth (file:///opt/app-root/src/node_modules/semantic-release/lib/git.js:206:5)
    at async ensureValidAuthUrl (file:///opt/app-root/src/node_modules/semantic-release/lib/get-git-auth-url.js:43:5)
    at async Promise.all (index 0)
    at async default (file:///opt/app-root/src/node_modules/semantic-release/lib/get-git-auth-url.js:114:35)
    at async run (file:///opt/app-root/src/node_modules/semantic-release/index.js:67:27)
    at async Module.default (file:///opt/app-root/src/node_modules/semantic-release/index.js:278:22)
    at async default (file:///opt/app-root/src/node_modules/semantic-release/cli.js:55:5)
2024-04-22T08:09:40.299Z semantic-release:get-git-auth-url Using "GITLAB_TOKEN" to authenticate
2024-04-22T08:09:49.629Z semantic-release:get-tags found tags for branch main: [ { gitTag: '0.1.1', version: '0.1.1', channels: [ null ] }, { gitTag: '4.0.0', version: '4.0.0', channels: [ null ] }, { gitTag: '4.0.1', version: '4.0.1', channels: [ null ] }, { gitTag: '4.0.2', version: '4.0.2', channels: [ null ] }, { gitTag: '4.0.3', version: '4.0.3', channels: [ null ] }, { gitTag: '4.0.4', version: '4.0.4', channels: [ null ] }, { gitTag: '4.0.5', version: '4.0.5', channels: [ null ] }, { gitTag: '4.0.6', version: '4.0.6', channels: [ null ] }, { gitTag: '4.1.0', version: '4.1.0', channels: [ null ] }, { gitTag: '4.2.0', version: '4.2.0', channels: [ null ] }, { gitTag: '4.2.1', version: '4.2.1', channels: [ null ] }, { gitTag: '4.2.2', version: '4.2.2', channels: [ null ] }, { gitTag: '4.2.3', version: '4.2.3', channels: [ null ] }, { gitTag: '4.2.4', version: '4.2.4', channels: [ null ] }, { gitTag: '4.2.5', version: '4.2.5', channels: [ null ] }, { gitTag: '4.3.0', version: '4.3.0', channels: [ null ] }, { gitTag: '4.3.1', version: '4.3.1', channels: [ null ] }, { gitTag: '4.3.2', version: '4.3.2', channels: [ null ] }, { gitTag: '4.3.3', version: '4.3.3', channels: [ null ] }, { gitTag: '4.3.4', version: '4.3.4', channels: [ null ] }, { gitTag: '4.3.5', version: '4.3.5', channels: [ null ] }, { gitTag: '4.3.6', version: '4.3.6', channels: [ null ] }, { gitTag: '4.4.0', version: '4.4.0', channels: [ null ] }, { gitTag: '4.4.1', version: '4.4.1', channels: [ null ] }, { gitTag: '4.4.2', version: '4.4.2', channels: [ null ] }, { gitTag: '4.5.0', version: '4.5.0', channels: [ null ] }, { gitTag: '4.5.1', version: '4.5.1', channels: [ null ] }, { gitTag: '4.5.2', version: '4.5.2', channels: [ null ] }, { gitTag: '4.5.3', version: '4.5.3', channels: [ null ] }, { gitTag: '4.5.4', version: '4.5.4', channels: [ null ] }, { gitTag: '4.5.5', version: '4.5.5', channels: [ null ] }, { gitTag: '4.5.6', version: '4.5.6', channels: [ null ] }, { gitTag: '4.5.7', version: '4.5.7', channels: [ null ] }, { gitTag: '4.5.8', version: '4.5.8', channels: [ null ] }, { gitTag: '4.5.9', version: '4.5.9', channels: [ null ] }, { gitTag: '4.6.0', version: '4.6.0', channels: [ null ] }, { gitTag: '4.6.1', version: '4.6.1', channels: [ null ] }, { gitTag: '4.6.2', version: '4.6.2', channels: [ null ] }, { gitTag: '4.6.3', version: '4.6.3', channels: [ null ] }, { gitTag: '4.7.0', version: '4.7.0', channels: [ null ] }, { gitTag: '4.8.0', version: '4.8.0', channels: [ null ] }, { gitTag: '4.8.1', version: '4.8.1', channels: [ null ] }, { gitTag: '4.9.0', version: '4.9.0', channels: [ null ] } ]
[10:09:49 AM] [semantic-release] › ✔  Run automated release from branch main on repository https://gitlab-ci-token:[secure]@gitlab.com/xrow-public/ci-tools.git
[10:09:51 AM] [semantic-release] › ✔  Allowed to push to the Git repository
[10:09:51 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/changelog"
[10:09:51 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[10:09:51 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/gitlab"
2024-04-22T08:09:51.421Z semantic-release:gitlab apiUrl: 'https://gitlab.com/api/v4'
2024-04-22T08:09:51.422Z semantic-release:gitlab repoId: 'xrow-public/ci-tools'
[10:09:51 AM] [semantic-release] [@semantic-release/gitlab] › ℹ  Verify GitLab authentication (https://gitlab.com/api/v4)
[10:09:51 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/gitlab"
[10:09:51 AM] [semantic-release] › ℹ  Found git tag 4.9.0 associated with version 4.9.0 on branch main
2024-04-22T08:09:51.896Z semantic-release:get-commits Use from: 981dcc02db55db111bec2ff8a96ff26a36665b95
[10:09:52 AM] [semantic-release] › ℹ  Found 10 commits since last release
2024-04-22T08:09:52.030Z semantic-release:get-commits Parsed commits: [ { commit: { long: 'e6027a08323dc9c65747344c384e2b184d59ec7e', short: 'e6027a08' }, tree: { long: '9122aac3186fc[13](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L13)aab61adf9ad7879745a6a8a64', short: '9122aac3' }, author: { name: 'bjoern.dieding', email: '[MASKED]', date: 2024-04-22T07:33:54.000Z }, committer: { name: 'bjoern.dieding', email: '[MASKED]', date: 2024-04-22T07:33:54.000Z }, subject: 'Add dependency on prepare job in build stage of template.yml', body: '', hash: 'e6027a08323dc9c65747344c384e2b184d59ec7e', committerDate: 2024-04-22T07:33:54.000Z, message: 'Add dependency on prepare job in build stage of template.yml', gitTags: '(HEAD, origin/main, main)' }, { commit: { long: '0fab8a63592cf8bc6cfe3b2f8de59d41911e69f0', short: '0fab8a63' }, tree: { long: 'ed76698f8aafa9f794e5fb8e8a379954979a4426', short: 'ed76698f' }, author: { name: 'bjoern.dieding', email: '[MASKED]', date: 2024-04-22T06:47:35.000Z }, committer: { name: 'bjoern.dieding', email: '[MASKED]', date: 2024-04-22T06:47:35.000Z }, subject: 'fix: Refactor template.yml to include stage as an input variable', body: '', hash: '0fab8a63592cf8bc6cfe3b2f8de59d41911e69f0', committerDate: 2024-04-22T06:47:35.000Z, message: 'fix: Refactor template.yml to include stage as an input variable', gitTags: '' }, { commit: { long: '39335e02bbac4df4bb913e00136db663b3e3098a', short: '39335e02' }, tree: { long: '8d0b2e7520ba5eea0710cb68e108e941da1ebaf1', short: '8d0b2e75' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-17T16:41:52.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T18:06:13.000Z }, subject: 'Substitute environment variables in top-level Chart.yaml #22094', body: '', hash: '39335e02bbac4df4bb913e00136db663b3e3098a', committerDate: 2024-04-18T18:06:13.000Z, message: 'Substitute environment variables in top-level Chart.yaml #22094', gitTags: '' }, { commit: { long: 'e69243d4b3d3dcc539cd7ab00f7[14](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L14)92f204e74c3', short: 'e69243d4' }, tree: { long: '2507144f82f64173302eedb81425b2fad66351e3', short: '2507144f' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-17T08:17:43.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T18:06:13.000Z }, subject: 'Reduce duplication of code #22094', body: '', hash: 'e69243d4b3d3dcc539cd7ab00f71492f204e74c3', committerDate: 2024-04-18T18:06:13.000Z, message: 'Reduce duplication of code #22094', gitTags: '' }, { commit: { long: 'efc45a225c961d7e7f[15](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L15)eb3ba6a1377874c36604', short: 'efc45a22' }, tree: { long: '615eb5374fcaffe62d9f2379e5627e75f9a35190', short: '615eb537' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-[16](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L16)T08:45:25.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T18:06:13.000Z }, subject: 'Expand component input #22094', body: '', hash: 'efc45a225c961d7e7f15eb3ba6a1377874c36604', committerDate: 2024-04-18T18:06:13.000Z, message: 'Expand component input #22094', gitTags: '' }, { commit: { long: '70ea015611df7c244c78ae4196bfa2ec698dd367', short: '70ea0156' }, tree: { long: '65c0fdaef118ecacdf5b442c7070832694881cb0', short: '65c0fdae' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-16T08:43:33.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T18:06:13.000Z }, subject: 'Add debugging info, comments and improve formatting #22094', body: '', hash: '70ea015611df7c244c78ae4196bfa2ec698dd367', committerDate: 2024-04-18T18:06:13.000Z, message: 'Add debugging info, comments and improve formatting #22094', gitTags: '' }, { commit: { long: 'e0c4069c001a851a584808af0f3aeefb744c8742', short: 'e0c4069c' }, tree: { long: '7964fcd7e01d936a0ff6e2dea[17](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L17)5d258bbde5622', short: '7964fcd7' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-11T09:52:33.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-[18](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L18)T18:06:13.000Z }, subject: 'Add setup job #22094', body: '', hash: 'e0c4069c001a851a584808af0f3aeefb744c8742', committerDate: 2024-04-18T18:06:13.000Z, message: 'Add setup job #22094', gitTags: '' }, { commit: { long: 'b15947f96e47fb7841e5008459003fab27dbfedf', short: 'b15947f9' }, tree: { long: 'ea4fa549753f6837534e914f4c46224f92144bf9', short: 'ea4fa549' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T16:11:49.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T18:06:07.000Z }, subject: 'Fix spelling #22094', body: '', hash: 'b15947f96e47fb7841e5008459003fab27dbfedf', committerDate: 2024-04-18T18:06:07.000Z, message: 'Fix spelling #22094', gitTags: '' }, { commit: { long: '215c86a2701cc24aec11720bafa2324762c674aa', short: '215c86a2' }, tree: { long: '368fcf1f99[19](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L19)d96f6aa9ab90439bb59cc528d213', short: '368fcf1f' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: [20](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L20)24-04-18T12:20:05.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T14:26:28.000Z }, subject: 'Only run semantic-release job in main branch #22094', body: '', hash: '[21](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L21)5c86a2701cc24aec11720bafa2324762c674aa', committerDate: 2024-04-18T14:26:28.000Z, message: 'Only run semantic-release job in main branch #[22](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L22)094', gitTags: '' }, { commit: { long: 'a6e18b6a24a487c6a1b65ae0022c2407b1c519f5', short: 'a6e18b6a' }, tree: { long: '7a5ab9b0b501691e30f0b0bbe1fcf27ab94b11fd', short: '7a5ab9b0' }, author: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T13:55:38.000Z }, committer: { name: 'Andy Caiger', email: 'andy@xrow.de', date: 2024-04-18T14:26:28.000Z }, subject: 'Fix spelling #22094', body: '', hash: 'a6e18b6a24a487c6a1b65ae0022c2407b1c519f5', committerDate: 2024-04-18T14:26:28.000Z, message: 'Fix spelling #22094', gitTags: '' } ]
[10:09:52 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Add dependency on prepare job in build stage of template.yml
2024-04-22T08:09:52.134Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: Refactor template.yml to include stage as an input variable
2024-04-22T08:09:52.136Z semantic-release:commit-analyzer Analyzing with default rules
2024-04-22T08:09:52.145Z semantic-release:commit-analyzer The rule { type: 'fix', release: 'patch' } match commit with release type 'patch'
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Substitute environment variables in top-level Chart.yaml #22094
2024-04-22T08:09:52.146Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Reduce duplication of code #22094
2024-04-22T08:09:52.146Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Expand component input #22094
2024-04-22T08:09:52.147Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Add debugging info, comments and improve formatting #22094
2024-04-22T08:09:52.147Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Add setup job #22094
2024-04-22T08:09:52.147Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Fix spelling #22094
2024-04-22T08:09:52.159Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Only run semantic-release job in main branch #22094
2024-04-22T08:09:52.160Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Fix spelling #22094
2024-04-22T08:09:52.160Z semantic-release:commit-analyzer Analyzing with default rules
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:09:52 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 10 commits complete: patch release
[10:09:52 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[10:09:52 AM] [semantic-release] › ℹ  The next release version is 4.9.1
[10:09:52 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
2024-04-22T08:09:52.256Z semantic-release:release-notes-generator version: '4.9.1'
2024-04-22T08:09:52.256Z semantic-release:release-notes-generator host: undefined
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator owner: 'xrow-public'
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator repository: 'ci-tools'
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator previousTag: '4.9.0'
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator currentTag: '4.9.1'
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator host: 'https://gitlab.com'
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator linkReferences: undefined
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator issue: 'issues'
2024-04-22T08:09:52.257Z semantic-release:release-notes-generator commit: 'commit'
[10:09:52 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:09:52 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
[10:09:52 AM] [semantic-release] [@semantic-release/changelog] › ℹ  Create /builds/xrow-public/ci-tools/docs/CHANGELOG.md
[10:09:52 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
[10:09:56 AM] [semantic-release] › ✔  Created tag 4.9.1
[10:09:56 AM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/gitlab"
2024-04-22T08:09:56.795Z semantic-release:gitlab repoId: 'xrow-public/ci-tools'
2024-04-22T08:09:56.795Z semantic-release:gitlab release name: '4.9.1'
2024-04-22T08:09:56.795Z semantic-release:gitlab release ref: 'e6027a083[23](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L23)dc9c65747344c384e2b184d59ec7e'
2024-04-22T08:09:56.795Z semantic-release:gitlab milestones: undefined
20[24](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L24)-04-22T08:09:56.795Z semantic-release:gitlab Create a release for git tag '4.9.1' with commit 'e6027a08323dc9c65747344c384e2b184d59ec7e'
2024-04-22T08:09:56.795Z semantic-release:gitlab POST-ing the following JSON to https://gitlab.com/api/v4/projects/xrow-public%2Fci-tools/releases:
{
  "tag_name": "4.9.1",
  "description": "## [4.9.1](https://gitlab.com/xrow-public/ci-tools/compare/4.9.0...4.9.1) (2024-04-22)\n\n\n### Bug Fixes\n\n* Refactor template.yml to include stage as an input variable ([0fab8a6](https://gitlab.com/xrow-public/ci-tools/commit/0fab8a63592cf8bc6cfe3b2f8de59d41911e69f0))\n\n\n\n",
  "assets": {
    "links": []
  }
}
[10:09:57 AM] [semantic-release] [@semantic-release/gitlab] › ✘  An error occurred while making a request to the GitLab release API:
HTTPError: Response code 422 (Unprocessable Entity)
    at Request.<anonymous> (file:///opt/app-root/src/node_modules/got/dist/source/as-promise/index.js:92:42)
    at Object.onceWrapper (node:events:633:[26](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L26))
    at Request.emit (node:events:530:35)
    at Request._onResponseBase (file:///opt/app-root/src/node_modules/got/dist/source/core/index.js:604:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Request._onResponse (file:///opt/app-root/src/node_modules/got/dist/source/core/index.js:646:13) {
  input: undefined,
  code: 'ERR_NON_2XX_3XX_RESPONSE',
  timings: {
    start: 1713773396798,
    socket: 1713773396798,
    lookup: 1713773396798,
    connect: 1713773396798,
    secureConnect: 1713773396798,
    upload: 1713773396799,
    response: 1713773397108,
    end: 1713773397109,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 0,
      dns: 0,
      tcp: 0,
      tls: 0,
      request: 1,
      firstByte: 309,
      download: 1,
      total: 311
    }
  },
  options: {
    request: undefined,
    agent: { http: undefined, https: undefined, http2: undefined },
    h2session: undefined,
    decompress: true,
    timeout: {
      connect: undefined,
      lookup: undefined,
      read: undefined,
      request: undefined,
      response: undefined,
      secureConnect: undefined,
      send: undefined,
      socket: undefined
    },
    prefixUrl: '',
    body: '{"tag_name":"4.9.1","description":"## [4.9.1](https://gitlab.com/xrow-public/ci-tools/compare/4.9.0...4.9.1) (2024-04-22)\\n\\n\\n### Bug Fixes\\n\\n* Refactor template.yml to include stage as an input variable ([0fab8a6](https://gitlab.com/xrow-public/ci-tools/commit/0fab8a63592cf8bc6cfe3b2f8de59d41911e69f0))\\n\\n\\n\\n","assets":{"links":[]}}',
    form: undefined,
    json: undefined,
    cookieJar: undefined,
    ignoreInvalidCookies: false,
    searchParams: undefined,
    dnsLookup: undefined,
    dnsCache: undefined,
    context: {},
    hooks: {
      init: [],
      beforeRequest: [],
      beforeError: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: []
    },
    followRedirect: true,
    maxRedirects: 10,
    cache: undefined,
    throwHttpErrors: true,
    username: '',
    password: '',
    http2: false,
    allowGetBody: false,
    headers: {
      'user-agent': 'got (https://github.com/sindresorhus/got)',
      'private-token': '[secure]',
      'content-type': 'application/json',
      'content-length': '338',
      'accept-encoding': 'gzip, deflate, br'
    },
    methodRewriting: false,
    dnsLookupIpVersion: undefined,
    parseJson: [Function: parse],
    stringifyJson: [Function: stringify],
    retry: {
      limit: 2,
      methods: [ 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ],
      statusCodes: [
        408, 413, 4[29](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L29), 500,
        502, 503, 504, 521,
        522, 524
      ],
      errorCodes: [
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      ],
      maxRetryAfter: undefined,
      calculateDelay: [Function: calculateDelay],
      backoffLimit: Infinity,
      noise: 100
    },
    localAddress: undefined,
    method: 'POST',
    createConnection: undefined,
    cacheOptions: {
      shared: undefined,
      cacheHeuristic: undefined,
      immutableMinTimeToLive: undefined,
      ignoreCargoCult: undefined
    },
    https: {
      alpnProtocols: undefined,
      rejectUnauthorized: undefined,
      checkServerIdentity: undefined,
      certificateAuthority: undefined,
      key: undefined,
      certificate: undefined,
      passphrase: undefined,
      pfx: undefined,
      ciphers: undefined,
      honorCipherOrder: undefined,
      minVersion: undefined,
      maxVersion: undefined,
      signatureAlgorithms: undefined,
      tlsSessionLifetime: undefined,
      dhparam: undefined,
      ecdhCurve: undefined,
      certificateRevocationLists: undefined
    },
    encoding: undefined,
    resolveBodyOnly: false,
    isStream: false,
    responseType: 'text',
    url: URL {
      href: 'https://gitlab.com/api/v4/projects/xrow-public%2Fci-tools/releases',
      origin: 'https://gitlab.com',
      protocol: 'https:',
      username: '',
      password: '',
      host: 'gitlab.com',
      hostname: 'gitlab.com',
      port: '',
      pathname: '/api/v4/projects/xrow-public%2Fci-tools/releases',
      search: '',
      searchParams: URLSearchParams {},
      hash: ''
    },
    pagination: {
      transform: [Function: transform],
      paginate: [Function: paginate],
      filter: [Function: filter],
      shouldContinue: [Function: shouldContinue],
      countLimit: Infinity,
      backoff: 0,
      requestLimit: 10000,
      stackAllItems: false
    },
    setHost: true,
    maxHeaderSize: undefined,
    signal: undefined,
    enableUnixSockets: false
  },
  [cause]: {}
}
[10:09:57 AM] [semantic-release] › ✘  Failed step "publish" of plugin "@semantic-release/gitlab"
[10:09:57 AM] [semantic-release] › ✘  An error occurred while running semantic-release: HTTPError: Response code 422 (Unprocessable Entity)
    at Request.<anonymous> (file:///opt/app-root/src/node_modules/got/dist/source/as-promise/index.js:92:42)
    at Object.onceWrapper (node:events:633:26)
    at Request.emit (node:events:5[30](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L30):35)
    at Request._onResponseBase (file:///opt/app-root/src/node_modules/got/dist/source/core/index.js:604:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Request._onResponse (file:///opt/app-root/src/node_modules/got/dist/source/core/index.js:646:13) {
  input: undefined,
  code: 'ERR_NON_2XX_3XX_RESPONSE',
  timings: {
    start: 1713773396798,
    socket: 1713773396798,
    lookup: 1713773396798,
    connect: 1713773396798,
    secureConnect: 1713773396798,
    upload: 1713773396799,
    response: 1713773397108,
    end: 1713773397109,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 0,
      dns: 0,
      tcp: 0,
      tls: 0,
      request: 1,
      firstByte: 309,
      download: 1,
      total: [31](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L31)1
    }
  },
  options: {
    request: undefined,
    agent: { http: undefined, https: undefined, http2: undefined },
    h2session: undefined,
    decompress: true,
    timeout: {
      connect: undefined,
      lookup: undefined,
      read: undefined,
      request: undefined,
      response: undefined,
      secureConnect: undefined,
      send: undefined,
      socket: undefined
    },
    prefixUrl: '',
    body: '{"tag_name":"4.9.1","description":"## [4.9.1](https://gitlab.com/xrow-public/ci-tools/compare/4.9.0...4.9.1) (2024-04-22)\\n\\n\\n### Bug Fixes\\n\\n* Refactor template.yml to include stage as an input variable ([0fab8a6](https://gitlab.com/xrow-public/ci-tools/commit/0fab8a63592cf8bc6cfe3b2f8de59d41911e69f0))\\n\\n\\n\\n","assets":{"links":[]}}',
    form: undefined,
    json: undefined,
    cookieJar: undefined,
    ignoreInvalidCookies: false,
    searchParams: undefined,
    dnsLookup: undefined,
    dnsCache: undefined,
    context: {},
    hooks: {
      init: [],
      beforeRequest: [],
      beforeError: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: []
    },
    followRedirect: true,
    maxRedirects: 10,
    cache: undefined,
    throwHttpErrors: true,
    username: '',
    password: '',
    http2: false,
    allowGetBody: false,
    headers: {
      'user-agent': 'got (https://github.com/sindresorhus/got)',
      'private-token': '[secure]',
      'content-type': 'application/json',
      'content-length': '[33](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L33)8',
      'accept-encoding': 'gzip, deflate, br'
    },
    methodRewriting: false,
    dnsLookupIpVersion: undefined,
    parseJson: [Function: parse],
    stringifyJson: [Function: stringify],
    retry: {
      limit: 2,
      methods: [ 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ],
      statusCodes: [
        408, 413, 429, 500,
        502, 503, 504, 521,
        522, 524
      ],
      errorCodes: [
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      ],
      maxRetryAfter: undefined,
      calculateDelay: [Function: calculateDelay],
      backoffLimit: Infinity,
      noise: 100
    },
    localAddress: undefined,
    method: 'POST',
    createConnection: undefined,
    cacheOptions: {
      shared: undefined,
      cacheHeuristic: undefined,
      immutableMinTimeToLive: undefined,
      ignoreCargoCult: undefined
    },
    https: {
      alpnProtocols: undefined,
      rejectUnauthorized: undefined,
      checkServerIdentity: undefined,
      certificateAuthority: undefined,
      key: undefined,
      certificate: undefined,
      passphrase: undefined,
      pfx: undefined,
      ciphers: undefined,
      honorCipherOrder: undefined,
      minVersion: undefined,
      maxVersion: undefined,
      signatureAlgorithms: undefined,
      tlsSessionLifetime: undefined,
      dhparam: undefined,
      ecdhCurve: undefined,
      certificateRevocationLists: undefined
    },
    encoding: undefined,
    resolveBodyOnly: false,
    isStream: false,
    responseType: 'text',
    url: URL {
      href: 'https://gitlab.com/api/v4/projects/xrow-public%2Fci-tools/releases',
      origin: 'https://gitlab.com',
      protocol: 'https:',
      username: '',
      password: '',
      host: 'gitlab.com',
      hostname: 'gitlab.com',
      port: '',
      pathname: '/api/v4/projects/xrow-public%2Fci-tools/releases',
      search: '',
      searchParams: URLSearchParams {},
      hash: ''
    },
    pagination: {
      transform: [Function: transform],
      paginate: [Function: paginate],
      filter: [Function: filter],
      shouldContinue: [Function: shouldContinue],
      countLimit: Infinity,
      backoff: 0,
      requestLimit: 10000,
      stackAllItems: false
    },
    setHost: true,
    maxHeaderSize: undefined,
    signal: undefined,
    enableUnixSockets: false
  },
  pluginName: '@semantic-release/gitlab',
  [cause]: {}
}
HTTPError: Response code 422 (Unprocessable Entity)
    at Request.<anonymous> (file:///opt/app-root/src/node_modules/got/dist/source/as-promise/index.js:92:42)
    at Object.onceWrapper (node:events:633:26)
    at Request.emit (node:events:530:[35](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L35))
    at Request._onResponseBase (file:///opt/app-root/src/node_modules/got/dist/source/core/index.js:604:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Request._onResponse (file:///opt/app-root/src/node_modules/got/dist/source/core/index.js:646:13) {
  input: undefined,
  code: 'ERR_NON_2XX_3XX_RESPONSE',
  timings: {
    start: 171[37](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L37)73396798,
    socket: 1713773396798,
    lookup: 1713773396798,
    connect: 1713773396798,
    secureConnect: 1713773396798,
    upload: 1713773396799,
    response: 1713773397108,
    end: 1713773397109,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 0,
      dns: 0,
      tcp: 0,
      tls: 0,
      request: 1,
      firstByte: 309,
      download: 1,
      total: 311
    }
  },
  options: {
    request: undefined,
    agent: { http: undefined, https: undefined, http2: undefined },
    h2session: undefined,
    decompress: true,
    timeout: {
      connect: undefined,
      lookup: undefined,
      read: undefined,
      request: undefined,
      response: undefined,
      secureConnect: undefined,
      send: undefined,
      socket: undefined
    },
    prefixUrl: '',
    body: '{"tag_name":"4.9.1","description":"## [4.9.1](https://gitlab.com/xrow-public/ci-tools/compare/4.9.0...4.9.1) (2024-04-22)\\n\\n\\n### Bug Fixes\\n\\n* Refactor template.yml to include stage as an input variable ([0fab8a6](https://gitlab.com/xrow-public/ci-tools/commit/0fab8a63592cf8bc6cfe3b2f8de59d41911e69f0))\\n\\n\\n\\n","assets":{"links":[]}}',
    form: undefined,
    json: undefined,
    cookieJar: undefined,
    ignoreInvalidCookies: false,
    searchParams: undefined,
    dnsLookup: undefined,
    dnsCache: undefined,
    context: {},
    hooks: {
      init: [],
      beforeRequest: [],
      beforeError: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: []
    },
    followRedirect: true,
    maxRedirects: 10,
    cache: undefined,
    throwHttpErrors: true,
    username: '',
    password: '',
    http2: false,
    allowGetBody: false,
    headers: {
      'user-agent': 'got (https://github.com/sindresorhus/got)',
      'private-token': '[secure]',
      'content-type': 'application/json',
      'content-length': '3[38](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L38)',
      'accept-encoding': 'gzip, deflate, br'
    },
    methodRewriting: false,
    dnsLookupIpVersion: undefined,
    parseJson: [Function: parse],
    stringifyJson: [Function: stringify],
    retry: {
      limit: 2,
      methods: [ 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ],
      statusCodes: [
        [40](https://gitlab.com/xrow-public/ci-tools/-/jobs/6682443516#L40)8, 413, 429, 500,
        502, 503, 504, 521,
        522, 524
      ],
      errorCodes: [
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      ],
      maxRetryAfter: undefined,
      calculateDelay: [Function: calculateDelay],
      backoffLimit: Infinity,
      noise: 100
    },
    localAddress: undefined,
    method: 'POST',
    createConnection: undefined,
    cacheOptions: {
      shared: undefined,
      cacheHeuristic: undefined,
      immutableMinTimeToLive: undefined,
      ignoreCargoCult: undefined
    },
    https: {
      alpnProtocols: undefined,
      rejectUnauthorized: undefined,
      checkServerIdentity: undefined,
      certificateAuthority: undefined,
      key: undefined,
      certificate: undefined,
      passphrase: undefined,
      pfx: undefined,
      ciphers: undefined,
      honorCipherOrder: undefined,
      minVersion: undefined,
      maxVersion: undefined,
      signatureAlgorithms: undefined,
      tlsSessionLifetime: undefined,
      dhparam: undefined,
      ecdhCurve: undefined,
      certificateRevocationLists: undefined
    },
    encoding: undefined,
    resolveBodyOnly: false,
    isStream: false,
    responseType: 'text',
    url: URL {
      href: 'https://gitlab.com/api/v4/projects/xrow-public%2Fci-tools/releases',
      origin: 'https://gitlab.com',
      protocol: 'https:',
      username: '',
      password: '',
      host: 'gitlab.com',
      hostname: 'gitlab.com',
      port: '',
      pathname: '/api/v4/projects/xrow-public%2Fci-tools/releases',
      search: '',
      searchParams: URLSearchParams {},
      hash: ''
    },
    pagination: {
      transform: [Function: transform],
      paginate: [Function: paginate],
      filter: [Function: filter],
      shouldContinue: [Function: shouldContinue],
      countLimit: Infinity,
      backoff: 0,
      requestLimit: 10000,
      stackAllItems: false
    },
    setHost: true,
    maxHeaderSize: undefined,
    signal: undefined,
    enableUnixSockets: false
  },
  pluginName: '@semantic-release/gitlab',
  [cause]: {}
}
Cleaning up project directory and file based variables
00:04
ERROR: Job failed: command terminated with exit code 1

@fgreinacher
Copy link
Contributor

@xrow Thanks for sharing the logs!

Starting with https://github.com/semantic-release/gitlab/releases/tag/v13.1.0 we will show the error message in the logs. Let us know if this can be further improved 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants