Skip to content

Make git unit test not flaky #161

Make git unit test not flaky

Make git unit test not flaky #161

Triggered via pull request June 13, 2026 19:08
Status Failure
Total duration 1m 59s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 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-44998085-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-44998085-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-44998085-node-existing-branch-force-existing-temp', oid: 'd5bb760f91717326708e13d44f2846b3233f7570' } } }, 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:10:10 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': '8018:3B872B:FC8485D:FEE9C61:6A2DAB12', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4965', 'x-ratelimit-reset': '1781381358', 'x-ratelimit-resource': 'graphql', 'x-ratelimit-used': '35', '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-44998085-node-existing-branch-force-existing-temp" already exists in the repository.' } ] } }
tests/integration/node.test.ts > node > commitFilesFromBuffers > can commit using tag as a base: src/github/graphql/queries.ts#L168
GraphqlResponseError: Request failed due to following response errors: - Resource not accessible by integration ❯ 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:245:24 ❯ commitFilesFromBuffers src/node.ts:12:10 ❯ tests/integration/node.test.ts:252:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errors: [ { type: 'FORBIDDEN', path: [ 'createRef' ], extensions: { saml_failure: false }, locations: [ { line: 3, column: 5 } ], message: 'Resource not accessible by integration' } ], 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/test-44998085-node-tag-base', oid: '6f89c1462afd40bc373fa489375c97207e70421a' } } }, 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:09:51 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': '8019:1D0ED8:FFF0044:1025C7E1:6A2DAAFE', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4981', 'x-ratelimit-reset': '1781381358', 'x-ratelimit-resource': 'graphql', 'x-ratelimit-used': '19', 'x-xss-protection': '0' }, response: { data: { createRef: null }, errors: [ { type: 'FORBIDDEN', path: [ 'createRef' ], extensions: { saml_failure: false }, locations: [ { line: 3, column: 5 } ], message: 'Resource not accessible by integration' } ] } }
CI OK
Process completed with exit code 1.