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

Incorect run_status in early-aborted k6 run --out cloud test #2788

Closed
na-- opened this issue Dec 1, 2022 · 0 comments · Fixed by #2789
Closed

Incorect run_status in early-aborted k6 run --out cloud test #2788

na-- opened this issue Dec 1, 2022 · 0 comments · Fixed by #2789
Labels
Milestone

Comments

@na--
Copy link
Member

na-- commented Dec 1, 2022

Brief summary

Test runs that abort in the init context, but not in the first init context execution (the one that is used to retrieve the exported options) and stream their results to the cloud will appear to have normally finished

k6 version

v0.41.0

OS

any

Docker version and image (if applicable)

Steps to reproduce the problem

Run this script with k6 run --out cloud:

export const options = {
    vus: 5,
    iterations: 10,
};

if (__VU > 3) {
    throw new Error('foo');
}

export default function () { };

Expected behaviour

Have the test be "aborted by script error"

Actual behaviour

The test is marked as normally "finished" in the cloud.

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

Successfully merging a pull request may close this issue.

1 participant