bun icon indicating copy to clipboard operation
bun copied to clipboard

Bun install sometimes fails in Github actions

Open Micnubinub opened this issue 11 months ago • 4 comments

What version of Bun is running?

1.0.35

What platform is your computer?

Linux 6.5.0-1016-azure x86_64 x86_64 (Github actions ubuntu-latest)

What steps can reproduce the bug?

Just a github action that reacts to a push

    steps:
      - uses: actions/checkout@v4
      - name: Setup Bun Runtime
        uses: oven-sh/setup-bun@v1
        with:
          bun-version: 1.0.35

      - run: bun install

What is the expected behavior?

Packages to install without issues... The fix is just rerunning, usually once, but sometimes takes up to 3 reruns

What do you see instead?

Error messages are always about a package out being found

bun install v1.0.35 (940448d6)
node:internal/modules/cjs/loader:1137
  throw err;
  ^

Error: Cannot find module 'tar-fs'
...Stack...

Node.js v18.19.1

error: install script from "sharp" exited with 1
Error: Process completed with exit code 1.

Insert package where is says tar-fs, but always related to sharp. Just rerunning the job fixes it

Additional information

Doesn't always happen, sharp v0.33.3

Micnubinub avatar Mar 29 '24 02:03 Micnubinub

Can you share the dependencies in package.json? This looks like a postinstall bug where scripts are running too early during install

dylan-conway avatar Mar 29 '24 02:03 dylan-conway

{

	"dependencies": {
		"@actions/core": "1.10.1",
		"@elysiajs/cors": "1.0.2",
		"@elysiajs/eden": "1.0.8",
		"@emotion/react": "11.11.4",
		"@emotion/styled": "11.11.0",
		"@excalidraw/excalidraw": "0.17.3",
		"@faker-js/faker": "8.4.1",
		"@formkit/auto-animate": "0.8.1",
		"@highlight-run/node": "3.8.1",
		"@highlight-run/react": "3.2.1",
		"@hookform/resolvers": "3.3.4",
		"@lexical/clipboard": "0.14.2",
		"@lexical/file": "0.14.2",
		"@lexical/hashtag": "0.14.2",
		"@lexical/html": "0.14.2",
		"@lexical/link": "0.14.2",
		"@lexical/mark": "0.14.2",
		"@lexical/overflow": "0.14.2",
		"@lexical/plain-text": "0.14.2",
		"@lexical/react": "0.14.2",
		"@lexical/rich-text": "0.14.2",
		"@lexical/selection": "0.14.2",
		"@lexical/table": "0.14.2",
		"@lexical/utils": "0.14.2",
		"@mui/icons-material": "5.15.14",
		"@mui/lab": "5.0.0-alpha.169",
		"@mui/material": "5.15.14",
		"@mui/x-charts": "7.1.0",
		"@mui/x-data-grid": "7.1.0",
		"@mui/x-date-pickers": "7.1.0",
		"@plunk/node": "3.0.0",
		"@react-email/components": "0.0.16",
		"@react-email/tailwind": "0.0.15",
		"@react-pdf/renderer": "3.4.2",
		"@rollup/plugin-alias": "5.1.0",
		"@rollup/plugin-image": "3.0.3",
		"@stripe/react-stripe-js": "2.6.2",
		"@stripe/stripe-js": "3.1.0",
		"@syncfusion/ej2-base": "25.1.35",
		"@syncfusion/ej2-data": "25.1.35",
		"@syncfusion/ej2-icons": "25.1.35",
		"@syncfusion/ej2-navigations": "25.1.37",
		"@syncfusion/ej2-react-buttons": "25.1.35",
		"@syncfusion/ej2-react-calendars": "25.1.37",
		"@syncfusion/ej2-react-dropdowns": "25.1.37",
		"@syncfusion/ej2-react-inputs": "25.1.37",
		"@syncfusion/ej2-react-layouts": "25.1.37",
		"@syncfusion/ej2-react-navigations": "25.1.37",
		"@syncfusion/ej2-react-notifications": "25.1.35",
		"@syncfusion/ej2-react-popups": "25.1.35",
		"@syncfusion/ej2-react-schedule": "25.1.37",
		"@syncfusion/ej2-react-splitbuttons": "25.1.37",
		"@tanstack/react-query": "5.28.9",
		"@tanstack/react-router": "1.23.1",
		"@tanstack/router-devtools": "1.23.1",
		"@vitejs/plugin-react-swc": "3.6.0",
		"ajv": "8.12.0",
		"archiver": "7.0.1",
		"archiver-zip-encryptable": "1.0.10",
		"autoprefixer": "10.4.19",
		"aws-sdk": "2.1587.0",
		"axios": "1.6.8",
		"bowser": "2.11.0",
		"calendar-link": "2.6.0",
		"clsx": "2.1.0",
		"cssnano": "6.1.2",
		"dayjs": "1.11.10",
		"driver.js": "1.3.1",
		"elysia": "1.0.9",
		"elysia-ip": "1.0.2",
		"esbuild": "0.20.2",
		"exceljs": "4.4.0",
		"fast-glob": "3.3.2",
		"firebase": "10.9.0",
		"firebase-admin": "12.0.0",
		"highlight.run": "8.10.0",
		"ioredis": "5.3.2",
		"lexical": "0.14.2",
		"lodash": "4.17.21",
		"million": "3.0.6",
		"mkdirp": "3.0.1",
		"nanoid": "5.0.6",
		"node-dig-dns": "0.3.3",
		"node-gyp": "10.1.0",
		"node-schedule": "2.1.1",
		"node-ssh": "13.1.0",
		"notistack": "3.0.1",
		"postcss": "8.4.38",
		"prexit": "2.2.0",
		"react": "18.2.0",
		"react-color": "2.19.3",
		"react-dom": "18.2.0",
		"react-email": "2.1.1",
		"react-hook-form": "7.51.2",
		"react-icons": "5.0.1",
		"react-images-uploading": "3.1.7",
		"react-input-mask": "2.0.4",
		"react-turnstile": "1.1.3",
		"sharp": "0.33.3",
		"sonner": "1.4.41",
		"stripe": "14.22.0",
		"surrealdb.js": "0.11.0",
		"swiper": "11.1.0",
		"tailwind-merge": "2.2.2",
		"tailwindcss": "3.4.3",
		"tailwindcss-animate": "1.0.7",
		"vite": "5.2.6",
		"vite-plugin-lightningcss": "0.0.5",
		"vite-plugin-pwa": "0.19.7",
		"vite-plugin-tauri": "3.3.0",
		"zustand": "4.5.2"
	},
	"devDependencies": {
		"@aws-sdk/types": "3.535.0",
		"@biomejs/biome": "1.6.3",
		"@tauri-apps/cli": "1.5.11",
		"@total-typescript/ts-reset": "0.5.1",
		"@types/fs-extra": "11.0.4",
		"@types/lodash": "4.17.0",
		"@types/node": "20.11.30",
		"@types/node-schedule": "2.1.6",
		"@types/react": "18.2.73",
		"@types/react-color": "3.0.12",
		"@types/react-dom": "18.2.23",
		"@types/react-input-mask": "3.0.5",
		"@types/sharp": "0.32.0",
		"bun-types": "1.0.35",
		"typescript": "5.4.3"
	},
	"optionalDependencies": {
		"@rollup/rollup-linux-x64-gnu": "4.13.2"
	}
}

Micnubinub avatar Mar 29 '24 02:03 Micnubinub

I have the same issue at here.

torn4dom4n avatar Apr 08 '24 15:04 torn4dom4n

I've had the same happen, and it's not always with the same package, for me it's usually one of the following:

  • fs-constants
  • util-deprecate

It's been happening a lot longer than than 1.0.35 though, I've gone through some previous actions logs and it's at least from before 1.0.25, likely even earlier

lucasvanhalst avatar Apr 09 '24 12:04 lucasvanhalst

Did you ever find an explanation for this? I seem to be having a similar issue (with different packages, wrap-ansi-cjs-7.0.0.tgz and redis-v1.34.0.tgz)

kirahowe avatar Aug 14 '24 17:08 kirahowe