auto: Release fails with `Error: fatal: ' 9007199254740991': not an integer`
Describe the bug
As of today, but not last Friday (2/16), our canary (PR) releases are failing on the shipit command, with the following error:
Error: fatal: ' 9007199254740991': not an integer
More detailed output using -vv option:
ℹ info Using command: 'shipit'
d8bc8a1c58153a82f743f9374e6233f8d24eed64
ℹ info Getting commits from HEAD^ to HEAD
7ec96633f5ae531094d20d2d2452924354eabc40
d8bc8a1c58153a82f743f9374e6233f8d24eed64
d8bc8a1c58153a82f743f9374e6233f8d24eed64
Error: fatal: ' 9007199254740991': not an integer
at /home/runner/work/Storybook-Components/Storybook-Components/node_modules/gitlog/src/index.ts:384:13
at ChildProcess.exithandler (node:child_process:430:5)
at ChildProcess.emit (node:events:517:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1098:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:303:5)
TypeError: error.match is not a function
at Git.getGitLog (/home/runner/work/Storybook-Components/Storybook-Components/node_modules/@auto-it/core/src/git.ts:406:25)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Release.getCommits (/home/runner/work/Storybook-Components/Storybook-Components/node_modules/@auto-it/core/src/release.ts:284:20)
at async Release.getCommitsInRelease (/home/runner/work/Storybook-Components/Storybook-Components/node_modules/@auto-it/core/src/release.ts:119:24)
at async Auto.shipit (/home/runner/work/Storybook-Components/Storybook-Components/node_modules/@auto-it/core/src/auto.ts:1604:18)
at async execute (/home/runner/work/Storybook-Components/Storybook-Components/node_modules/auto/src/run.ts:88:9)
at async Object.runCli (/home/runner/work/Storybook-Components/Storybook-Components/node_modules/auto/src/run.ts:146:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
To Reproduce
Run auto shipit
Expected behavior
Expected that the release finishes successfully, which was working as of last Friday (2/16).
Screenshots
Environment information:
Running npx auto info gives me an error saying environment variables are missing. I think they are only set in the build process, not locally.
PS C:\Dev\Alterra\Storybook-Components> npx auto info
‼ warning protected-branch: No "PROTECTED_BRANCH_REVIEWER_TOKEN" found in environment
× error No GitHub was found. Make sure it is available on process.env.GH_TOKEN.
Error: GitHub token not found!
at Auto.loadConfig (C:\Dev\Alterra\Storybook-Components\node_modules\@auto-it\core\src\auto.ts:657:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async execute (C:\Dev\Alterra\Storybook-Components\node_modules\auto\src\run.ts:36:5)
at async Object.runCli (C:\Dev\Alterra\Storybook-Components\node_modules\auto\src\run.ts:146:3)
However, the build does show the following information:
Environment Information:
"auto" version: v10.46.0
"git" version: v2.43.2
"node" version: v18.19.1
Project Information:
✔ Repository: Alterra-Mountain-Company/Storybook-Components ([https://github.com/Alterra-Mountain-Company/Storybook-Components)](https://github.com/Alterra-Mountain-Company/Storybook-Components%E2%80%8B))
✔ Author Name: Alterra Mountain Company
✔ Author Email: shubert@alterramtnco.com
✔ Current Version: v18.4.7
✔ Latest Release: v18.4.7 ([https://github.com/Alterra-Mountain-Company/Storybook-Components/releases/tag/v18.4.7)](https://github.com/Alterra-Mountain-Company/Storybook-Components/releases/tag/v18.4.7%E2%80%8B))
✖ Labels configured on GitHub project (Try running "auto create-labels")
GitHub Token Information:
✔ Token: [Token starting with ghp_]
✔ Repo Permission: write
✔ User: resortinfra-alterra
✔ API: undefined (undefined)
✔ Enabled Scopes: repo, workflow
✔ Rate Limit: 4996/5000
Additional context
9007199254740991 is the value of Number.MAX_SAFE_INTEGER, which I noticed is referenced in the getGitLog method of @auto-it/core/dist/git.js. I am just not sure why, or where, Auto is converting it to a string.
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 23
- Comments: 21 (9 by maintainers)
Commits related to this issue
- Fixing git `2.43.0` max number issue #2425 — committed to Zweer/auto by NiccoloOlivieriAchille 4 months ago
- Merge pull request #2426 from Zweer/main Fixing git `2.43.0` max number issue #2425 — committed to intuit/auto by hipstersmoothie 4 months ago
- build: update auto https://github.com/intuit/auto/issues/2425 — committed to kickstartDS/storybook-addon-jsonschema by lmestel 4 months ago
- :bug: Update auto package to it's latest version to solve the issue from https://github.com/intuit/auto/issues/2425 — committed to mumprod/hr-design-system-handlebars by szuelch 4 months ago
- Merge pull request #856 from mumprod/bugfix/auto-shipit :bug: Update auto package to it's latest version to solve the issue from https://github.com/intuit/auto/issues/2425 — committed to mumprod/hr-design-system-handlebars by szuelch 4 months ago
- Fix an issue with publishing canary (#2931) Our canary builds are broken right now, see https://github.com/tldraw/tldraw/actions/runs/8018554530/job/21904677162#step:4:13 Looks like `auto@11.0.5` so... — committed to tldraw/tldraw by MitjaBezensek 4 months ago
- chore: upgrade auto to fix https://github.com/intuit/auto/issues/2425 — committed to restfulhead/npm-auto-plugins by restfulhead 3 months ago
We’re getting the fix out!
PR opened : #2426
If anyone is running into this on Github Actions ubuntu runner, I have the worst temporary workaround ever:
don’t judge me, it works.
11.0.5 fixes the issue for me. Thank you for the quick turnaround!
@ecstaticrainbow here
If any contributors want to help maintain auto I’m open to the idea!
autodef hasn’t been on my mind since moving to a more product focused role but I still use the project outside work a lot. I’ve now moved back to a platform team so I’ll be more active.(If anyone want to just that platform team we’re hiring descript.com)
Yup, very excited for that 😄
Git v2.43.2 seems to be the issue, v2.42.0 still works: