Skip to content

Conversation

@ericcrosson-bitgo
Copy link
Contributor

For consistency, since the value of this key is a scalar (string)
and not a vector, and for congruence with our convention at BitGo of
handling errors.

Closes #39

For consistency, since the value of this key is a scalar (`string`)
and not a vector, and for congruence with our convention at BitGo of
handling errors.

Closes BitGo#39

BREAKING CHANGE: rename `errors` to `error` in 400 response
@ericcrosson-bitgo ericcrosson-bitgo force-pushed the 39-rename-errors-to-error-for-consistency branch from 054a2ed to cb76bc4 Compare April 11, 2022 21:52
@ericcrosson-bitgo ericcrosson-bitgo marked this pull request as ready for review April 11, 2022 21:52
@ericcrosson-bitgo ericcrosson-bitgo requested review from a team and paddyquinn April 11, 2022 21:52
oof!

We hit a timeout-related flake in this CI run[^1]

```
@api-ts/openapi-generator:test:
@api-ts/openapi-generator:test:   ✖ Timed out while running tests
@api-ts/openapi-generator:test:
@api-ts/openapi-generator:test:   14 tests were pending in test/test-corpus.ts
@api-ts/openapi-generator:test:
@api-ts/openapi-generator:test:   ◌ should parse array types
@api-ts/openapi-generator:test:   ◌ should parse boolean literals
@api-ts/openapi-generator:test:   ◌ should parse discriminated unions
@api-ts/openapi-generator:test:   ◌ should simplify intersections of plain types
@api-ts/openapi-generator:test:   ◌ should handle multiple routes at different paths
@api-ts/openapi-generator:test:   ◌ should parse unions of multiple types
@api-ts/openapi-generator:test:   ◌ should parse explicit nulls
@api-ts/openapi-generator:test:   ◌ should read optional properties
@api-ts/openapi-generator:test:   ◌ should parse record types
@api-ts/openapi-generator:test:   ◌ should handle multiple routes at one path
@api-ts/openapi-generator:test:   ◌ should create an OpenAPI spec
@api-ts/openapi-generator:test:   ◌ should parse string unions
@api-ts/openapi-generator:test:   ◌ should handle unknown properties in responses
@api-ts/openapi-generator:test:   ◌ should parse version tags
@api-ts/openapi-generator:test:
@api-ts/openapi-generator:test:   ─
@api-ts/openapi-generator:test:
@api-ts/openapi-generator:test: npm ERR! Lifecycle script `test` failed with error:
@api-ts/openapi-generator:test: npm ERR! Error: command failed
@api-ts/openapi-generator:test: npm ERR!   in workspace: @api-ts/openapi-generator@0.1.0
@api-ts/openapi-generator:test: npm ERR!   at location: /home/runner/work/api-ts/api-ts/packages/openapi-generator
@api-ts/openapi-generator:test: Error: command finished with error: command (packages/openapi-generator) npm run test exited (1)
```

Tests thankfully don't take close to 30 seconds locally (though
they are slow -- around 10s) but in parallel CI with shared compute
resources, anything goes.

This commit bumps the test timeout from 30 seconds to 1 minute to
avoid flakes of this sort in the future.

[^1]: https://github.com/BitGo/api-ts/runs/5980525873?check_suite_focus=true
}
},
"timeout": "30s"
"timeout": "1m"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericcrosson-bitgo ericcrosson-bitgo merged commit d5fa3b5 into BitGo:master Apr 11, 2022
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on npm package (@beta dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 0.2.0-beta.1 🎉

The release is available on npm package (@beta dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 0.1.1-beta.1 🎉

The release is available on npm package (@beta dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 0.2.0-beta.1 🎉

The release is available on npm package (@beta dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename errors to error in @api-ts/express-wrapper decode errors

2 participants