Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve error handling & messages when recording to Artillery Cloud #2531

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

hassy
Copy link
Member

@hassy hassy commented Mar 1, 2024

This PR improves error handling & reporting when a test is recorded to Artillery Cloud.

The CLI will print more specific error messages when API key is not provided, or is invalid, and when Artillery Cloud can't be reached.

The CLI will stop the test run early now if the API key is missing or is invalid.

Handle cases where we need to shutdown gracefully before a test run starts running.
@hassy hassy force-pushed the feat/cloud-error-handling branch from 5329c7d to f9691d4 Compare March 4, 2024 13:51
* Make error messages more specific
* Check that the API key is valid with a preflight call to cloud API
* Stop early if API key is missing or is invalid
@hassy hassy force-pushed the feat/cloud-error-handling branch from f9691d4 to fe18f4c Compare March 4, 2024 14:05
@bernardobridge bernardobridge marked this pull request as ready for review March 4, 2024 17:23
@bernardobridge bernardobridge merged commit 339dd38 into main Mar 4, 2024
18 checks passed
@bernardobridge bernardobridge deleted the feat/cloud-error-handling branch March 4, 2024 17:24
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.

2 participants