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

p.stdin.end is not a function. (In 'p.stdin.end()', 'p.stdin.end' is Infinity) #3187

Closed
tomerh2001 opened this issue Feb 7, 2024 · 1 comment

Comments

@tomerh2001
Copy link

Current behavior

Up until recently, our pipeline worked without issues; now we get the following error (but the exit code stays 0!):

+ bunx semantic-release
[11:43:22 AM] [semantic-release] › ℹ  Running semantic-release version 21.1.2
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[11:43:23 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[11:43:28 AM] [semantic-release] › ✔  Run automated release from branch develop on repository http://bitbucket.org/developersrc/mm
[11:43:28 AM] [semantic-release] › ✔  Allowed to push to the Git repository
[11:43:28 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/npm"
[11:43:28 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/npm"
[11:43:28 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/changelog"
[11:43:28 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[11:43:28 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/git"
[11:43:28 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/git"
[11:43:28 AM] [semantic-release] › ℹ  Found git tag v1.10.4 associated with version 1.10.4 on branch develop
[11:43:28 AM] [semantic-release] › ℹ  Found 6 commits since last release
[11:43:28 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: chore: :bookmark: changed the version number
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: chore: :necktie: changed the trigger to 30m
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: :rewind: returned the trigger to 12m
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: chore: :bookmark: changed the version number
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: :bricks: changed the trigger to 30s
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: ci(bun): updated base pipeline image to oven/node:1-alpine and adjusted the pipes accordingly
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[11:43:28 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 6 commits complete: patch release
[11:43:28 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[11:43:28 AM] [semantic-release] › ℹ  The next release version is 1.10.5
[11:43:28 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[11:43:28 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[11:43:28 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/npm"
[11:43:28 AM] [semantic-release] [@semantic-release/npm] › ℹ  Write version 1.10.5 to package.json in /opt/atlassian/pipelines/agent/build
> postversion
> cross-var echo "{\"version\": \"$npm_package_version\"}" > ./public/version.json && git add ./public/version.json
npm ERR! p.stdin.end is not a function. (In 'p.stdin.end()', 'p.stdin.end' is Infinity)
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-06T11_43_28_974Z-debug-0.log

Expected behavior

Here's a log from a pipeline that worked recently, nothing changed:

+ bunx semantic-release
[12:44:11 PM] [semantic-release] › ℹ  Running semantic-release version 21.1.2
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[12:44:11 PM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[12:44:22 PM] [semantic-release] › ✔  Run automated release from branch develop on repository http://bitbucket.org/developersrc/mm
[12:44:22 PM] [semantic-release] › ✔  Allowed to push to the Git repository
[12:44:22 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/npm"
[12:44:22 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/npm"
[12:44:22 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/changelog"
[12:44:22 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[12:44:22 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/git"
[12:44:22 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/git"
[12:44:22 PM] [semantic-release] › ℹ  Found git tag v1.10.3 associated with version 1.10.3 on branch develop
[12:44:22 PM] [semantic-release] › ℹ  Found 2 commits since last release
[12:44:22 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[12:44:22 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: Merged in bugfix/GAMA-412/track-options (pull request #36)
fix: :ambulance: fixed the track options param
Approved-by: Tomer Horowitz
[12:44:22 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[12:44:22 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: :ambulance: fixed the track options param
[12:44:22 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[12:44:22 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 2 commits complete: patch release
[12:44:22 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[12:44:22 PM] [semantic-release] › ℹ  The next release version is 1.10.4
[12:44:22 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[12:44:22 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[12:44:22 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/npm"
[12:44:22 PM] [semantic-release] [@semantic-release/npm] › ℹ  Write version 1.10.4 to package.json in /opt/atlassian/pipelines/agent/build
> postversion
> cross-var echo "{\"version\": \"$npm_package_version\"}" > ./public/version.json && git add ./public/version.json
v1.10.4
[12:44:23 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/npm"
[12:44:23 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
[12:44:23 PM] [semantic-release] [@semantic-release/changelog] › ℹ  Update /opt/atlassian/pipelines/agent/build/CHANGELOG.md
[12:44:23 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
[12:44:23 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/git"
[12:44:24 PM] [semantic-release] [@semantic-release/git] › ℹ  Found 2 file(s) to commit
[12:44:27 PM] [semantic-release] [@semantic-release/git] › ℹ  Prepared Git release: v1.10.4
[12:44:27 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/git"
[12:44:27 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[12:44:27 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[12:44:33 PM] [semantic-release] › ✔  Created tag v1.10.4
[12:44:33 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/npm"
[12:44:33 PM] [semantic-release] [@semantic-release/npm] › ℹ  Skip publishing to npm registry as [package.json](https://bitbucket.org/developersrc/mm/src/5646e6f2457163c547b5577a3580a08e2006af6b/package.json)'s private property is true
[12:44:33 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/npm"
[12:44:33 PM] [semantic-release] › ✔  Published release 1.10.4 on default channel

semantic-release version

^21.1.1 in both the non-working log and the working log

CI environment

bitbucket pipelines

Plugins used

    "@semantic-release/changelog": "^6.0.3",
    "@semantic-release/commit-analyzer": "^10.0.4",
    "@semantic-release/git": "^10.0.1",
    "@semantic-release/npm": "^10.0.5",
    "@semantic-release/release-notes-generator": "^11.0.7",

semantic-release configuration

branches:
  - develop
  - node-14
  - node-20/develop
plugins:
  - '@semantic-release/commit-analyzer'
  - '@semantic-release/release-notes-generator'
  - '@semantic-release/npm'
  - '@semantic-release/changelog'
  - '@semantic-release/git'

CI logs

Provided above

@tomerh2001 tomerh2001 changed the title Weird bug p.stdin.end is not a function. (In 'p.stdin.end()', 'p.stdin.end' is Infinity) Feb 7, 2024
@travi
Copy link
Member

travi commented Feb 7, 2024

^21.1.1 in both the non-working log and the working log

this is most likely related to #2929, which is fixed in https://github.com/semantic-release/semantic-release/releases/tag/v22.0.0. please upgrade to the latest major version

@travi travi closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants