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

config.target not reading env from launch config when running in fargate #3361

Open
emmaLP opened this issue Oct 8, 2024 · 1 comment
Open

Comments

@emmaLP
Copy link

emmaLP commented Oct 8, 2024

Since upgrading to artillery 2.0.20, we are unable to set the target to be '{{ $env.TARGET_ENDPOINT }}' when running with fargate.

We always get the error No target specified and no environment chosen

Version info:

 artillery 2.0.20

Running this command:

 artillery run-fargate --region us-east-1 --cluster artillery --launch-type ecs:fargate --environment staging --output report.json artillery_admin_api.yaml --launch-config {
  "environment": [
    {"name": "TARGET_ENDPOINT", "value": "https://hello.com"}
  ],
  "cpu": "1024",
  "memory": "2048"
} --count 1

I expected to see this happen:

Artillery should take the env from launch config to set the target and then run the load testing in a fargate artillery cluster as expected

Instead, this happened:

image

Files being used:

config:
  target: '{{ $env.TARGET_ENDPOINT }}'
    environments:
      staging:
        phases: # load/change or increase number of workers as per expected traffic
          - duration: 100
            arrivalRate: 2
            rampTo: 5
      production:
        phases:
          - duration: 300
            arrivalRate: 2
            rampTo: 15
scenarios:
 ....

Workaround:
Either need to set TARGET_ENDPOINT env var or use -t option in the command to get the fargate runner to work

@hassy
Copy link
Member

hassy commented Oct 8, 2024

Thanks for the bug report @emmaLP, I'll try to reproduce!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants