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

fix(fargate): set cloud endpoint from env in fargate containers #3270

Conversation

bernardobridge
Copy link
Contributor

@bernardobridge bernardobridge commented Jul 16, 2024

Description

This fixes two issues:

  • Cloud workers will do the /whoami call in the container without taking into account the endpoint, so if the endpoint is not prod, the api key will not be correct, causing the error.
  • If you set ARTILLERY_CLOUD_API_KEY in the environment, but don't set --record, the key will still get passed to the worker, which causes the cloud logic to run unnecessarily (and error if not prod).

Pre-merge checklist

  • Does this require an update to the docs?
  • Does this require a changelog entry?

@bernardobridge bernardobridge marked this pull request as ready for review July 16, 2024 10:29
@bernardobridge bernardobridge requested a review from a team July 16, 2024 10:41
Copy link
Contributor

@InesNi InesNi left a comment

Choose a reason for hiding this comment

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

Lgtm!

@bernardobridge bernardobridge merged commit c3be075 into main Jul 16, 2024
30 checks passed
@bernardobridge bernardobridge deleted the bernardobridge/art-1903-fix-tests-failing-due-to-api-key-issue-in-workers branch July 16, 2024 15:34
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