Make git unit test not flaky #159
ci.yml
on: pull_request
Lint workflows
18s
Test Unit
22s
Test Integration
24s
Typecheck
23s
Lint
22s
CI OK
3s
Annotations
4 errors and 1 warning
|
Test Integration
Process completed with exit code 1.
|
|
tests/integration/node.test.ts > node > commitFilesFromBuffers > can commit using tag as a base:
src/core.ts#L235
HttpError: Resource not accessible by integration - https://docs.github.com/rest/git/refs#create-a-reference
❯ fetchWrapper node_modules/.pnpm/@octokit+request@10.0.8/node_modules/@octokit/request/dist-bundle/index.js:124:11
❯ commitFilesFromBase64 src/core.ts:235:24
❯ commitFilesFromBuffers src/node.ts:12:10
❯ tests/integration/node.test.ts:252:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 403, request: { method: 'POST', url: 'https://api.github.com/repos/changesets/ghcommit/git/refs', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'actions_orchestration_id/85695ca0-139f-4d2b-82fc-0094978d20f5.test-integration.__default octokit-core.js/7.0.6 Node.js/24', authorization: 'bearer [REDACTED]', 'content-type': 'application/json; charset=utf-8' }, body: { ref: 'refs/heads/test-e433cc39-node-tag-base', sha: '6f89c1462afd40bc373fa489375c97207e70421a' }, request: { agent: { _events: { free: 'Function<anonymous>', newListener: 'Function<maybeEnableKeylog>' }, _eventsCount: 2, _maxListeners: undefined, options: { keepAlive: false, maxSockets: 100, defaultPort: 443, protocol: 'https:', noDelay: true, path: null }, defaultPort: 443, protocol: 'https:', requests: {}, sockets: {}, freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: 100, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: +0, agentKeepAliveTimeoutBuffer: 1000, maxCachedSessions: 100, _sessionCache: { map: {}, list: [] }, constructor: 'Function<Agent>', createConnection: 'Function<createConnection>', getName: 'Function<getName>', _getSession: 'Function<_getSession>', _cacheSession: 'Function<_cacheSession>', _evictSession: 'Function<_evictSession>', addRequest: 'Function<addRequest>', createSocket: 'Function<createSocket>', removeSocket: 'Function<removeSocket>', keepSocketAlive: 'Function<keepSocketAlive>', reuseSocket: 'Function<reuseSocket>', destroy: 'Function<destroy>', setMaxListeners: 'Function<setMaxListeners>', getMaxListeners: 'Function<getMaxListeners>', emit: 'Function<emit>', addListener: 'Function<addListener>', on: 'Function<addListener>', prependListener: 'Function<prependListener>', once: 'Function<once>', prependOnceListener: 'Function<prependOnceListener>', removeListener: 'Function<removeListener>', off: 'Function<removeListener>', removeAllListeners: 'Function<removeAllListeners>', listeners: 'Function<listeners>', rawListeners: 'Function<rawListeners>', listenerCount: 'Function<listenerCount>', eventNames: 'Function<eventNames>' }, fetch: 'Function<proxyFetch>', hook: 'Function<bound bound register>' } }, response: { url: 'https://api.github.com/repos/changesets/ghcommit/git/refs', status: 403, 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 18:32:49 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-accepted-github-permissions': 'contents=write; contents=write,workflows=write', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-api-version-selected': '2022-11-28', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'E018:2B9A9F:3EC92B1:EAA9136:6A2DA251', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4965', 'x-ratelimit-reset': '1781377394', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '35', 'x-xss-protection': '0' }, data: { message: 'Resource n
|
|
Lint
Process completed with exit code 1.
|
|
CI OK
Process completed with exit code 1.
|
|
vitest(no-focused-tests):
tests/integration/node.test.ts#L248
Unexpected focused test.
|