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

Backend: Run "before" stage only once when job parallelism > 1 #468

Open
NivLipetz opened this issue Oct 7, 2020 · 2 comments
Open

Backend: Run "before" stage only once when job parallelism > 1 #468

NivLipetz opened this issue Oct 7, 2020 · 2 comments
Labels
backend help wanted Extra attention is needed

Comments

@NivLipetz
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently whenever a job with parallelism > 1, Predator spins up multiple Predator-Runners to run the load. If a before stage is configured in the test, then this before stage will run in each predator-runner meaning that the before stage will run ${parallelism} times

Describe the solution you'd like
Run the before stage only once regardless of how many runners are spun up. Once finished successfully, pass any created variables from the before stage to the rest of the test.
If in the run of the before stage any request fails or receives a status_code != 2xx, fail the run

This feature's design is open for discussion and for contributions 😁

@NivLipetz NivLipetz added help wanted Extra attention is needed backend Hacktoberfest labels Oct 7, 2020
@enudler
Copy link
Collaborator

enudler commented Oct 7, 2020

a very interesting feature, I would say that we will need a special runner that will run only the before section and submit before params to predator, then predator will spin up all parallel runners.

@NivLipetz
Copy link
Member Author

We need to think about how we enable this special runner to run only the before stage because currently the before stage is implemented inside artillery and how it runs the tests. We might have to patch the artillery code for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants