Make git unit test not flaky #162
ci.yml
on: pull_request
Lint workflows
11s
Test Unit
25s
Test Integration
1m 44s
Typecheck
18s
Lint
28s
CI OK
3s
Annotations
3 errors
|
Test Integration
Process completed with exit code 1.
|
|
tests/integration/node.test.ts > node > commitFilesFromBuffers > existing branches > cleans up a pre-existing temporary branch when force is true:
src/github/graphql/queries.ts#L168
GraphqlResponseError: Request failed due to following response errors:
- A ref named "refs/heads/changesets-ghcommit-temp/test-21f22eec-node-existing-branch-force-existing-temp" already exists in the repository.
❯ node_modules/.pnpm/@octokit+graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.js:89:13
❯ createRefMutation src/github/graphql/queries.ts:168:3
❯ commitFilesFromBase64 src/core.ts:151:30
❯ commitFilesFromBuffers src/node.ts:12:10
❯ tests/integration/node.test.ts:363:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { type: 'UNPROCESSABLE', path: [ 'createRef' ], locations: [ { line: 3, column: 5 } ], message: 'A ref named "refs/heads/changesets-ghcommit-temp/test-21f22eec-node-existing-branch-force-existing-temp" already exists in the repository.' } ], data: { createRef: null }, request: { query: '\n mutation createRef($input: CreateRefInput!) {\n createRef(input: $input) {\n ref {\n id\n }\n }\n }\n', variables: { input: { repositoryId: 'R_kgDOMWLxBA', name: 'refs/heads/changesets-ghcommit-temp/test-21f22eec-node-existing-branch-force-existing-temp', oid: '0a235d4e6c0a2fc5cd26b76f4a075df3f3905de8' } } }, headers: { 'access-control-allow-origin': '*', 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset, Warning', 'content-encoding': 'gzip', 'content-security-policy': 'default-src \'none\'', 'content-type': 'application/json; charset=utf-8', date: 'Sat, 13 Jun 2026 19:27:40 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'github.com', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'transfer-encoding': 'chunked', vary: 'Accept-Encoding, Accept, X-Requested-With', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'B401:353C40:458758A:101E71CD:6A2DAF2B', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4894', 'x-ratelimit-reset': '1781381358', 'x-ratelimit-resource': 'graphql', 'x-ratelimit-used': '106', 'x-xss-protection': '0' }, response: { data: { createRef: null }, errors: [ { type: 'UNPROCESSABLE', path: [ 'createRef' ], locations: [ { line: 3, column: 5 } ], message: 'A ref named "refs/heads/changesets-ghcommit-temp/test-21f22eec-node-existing-branch-force-existing-temp" already exists in the repository.' } ] } }
|
|
CI OK
Process completed with exit code 1.
|