improvement(vault): new error throw and improvement #8056
ci.yml
on: pull_request
Detect Version
0s
Test and Build
/
Test and Build
1m 18s
Check Docs Changes
0s
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Process Docs
/
Process Documentation Embeddings
Matrix: Create GHCR Manifests
Annotations
6 errors and 2 warnings
|
Test and Build / Test and Build
Process completed with exit code 1.
|
|
app/api/auth/oauth/token/route.test.ts > OAuth Token API Routes > POST handler > should handle token refresh failure:
apps/sim/app/api/auth/oauth/token/route.test.ts#L231
AssertionError: expected { error: 'Refresh failure' } to have property "error" with value 'Failed to refresh access token'
Expected: "Failed to refresh access token"
Received: "Refresh failure"
❯ app/api/auth/oauth/token/route.test.ts:231:20
|
|
lib/oauth/oauth.test.ts > OAuth Token Refresh > Error Handling > should return null for network errors:
apps/sim/lib/oauth/oauth.test.ts#L341
Error: Network error
❯ lib/oauth/oauth.test.ts:341:51
|
|
lib/oauth/oauth.test.ts > OAuth Token Refresh > Error Handling > should return null for API error responses:
apps/sim/lib/oauth/oauth.ts#L1217
Error: Failed to refresh token: 400 {"error":"invalid_request","error_description":"Invalid refresh token"}
❯ Module.refreshOAuthToken lib/oauth/oauth.ts:1217:13
❯ lib/oauth/oauth.test.ts:335:22
|
|
lib/oauth/oauth.test.ts > OAuth Token Refresh > Error Handling > should return null for unsupported provider:
apps/sim/lib/oauth/oauth.ts#L1152
Error: Unknown OAuth provider: unsupported
❯ getBaseProviderForService lib/oauth/oauth.ts:1152:9
❯ Module.refreshOAuthToken lib/oauth/oauth.ts:1160:22
❯ lib/oauth/oauth.test.ts:317:9
❯ withMockFetch lib/oauth/oauth.test.ts:77:10
❯ lib/oauth/oauth.test.ts:316:28
|
|
Test and Build / Test and Build
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
|
|
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps
|