-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CSV output: vu
and iter
system tags not output after v0.40.0
#2827
Comments
Just read the release notes on this:
It does look like the CSV output should include the (Also I've managed to "fix" my Timestream output by including the metadata in the output) |
Yeah, there was a breaking change in k6 v0.41.0 and However, you are also right about the fact that the |
The problem is actually even worse, not only doesn't the A simple example that demonstrates the issue is running
Notice that not only is the The problem are the Lines 46 to 52 in 074b532
Lines 214 to 217 in 074b532
The whole output probably needs to be refactored, it's buggy and has quite sub-optimal performance anyway. We should have rewritten it in #2654 / #2727 instead of just adding this Lines 205 to 210 in 074b532
|
Hey! Thanks for the quick response. Yeah, you're exactly right it's all around that
But it doesn't fully fix the issue and adds more tech debt. I'm up for taking a look at how we could refactor that output, but:
I'm gonna update the title of this issue just to make it clear that this is only for the CSV output. |
vu
and iter
system tags not output after v0.40.0 vu
and iter
system tags not output after v0.40.0
@leonyork, thanks again for finding and reporting the issue, and for the draft attempt to try and fix it! If you want to continue working on the fix, we'll try to support you. Absolutely no pressure though - if you don't have the time, we will pick this up and get a fix before v0.43.0, which is scheduled to be released in February. Since this was a recent regression, even if it's a relatively minor bug, we decided we'd like to fix it in the next k6 release. We still don't know if we will just go for a fix or for a complete rewrite of the output ourselves, it depends on the time and complexity, to be decided by whoever picks the issue 😅 But yeah, a few integration tests are a must in either case! We already have some for the |
Hey @na--, turns out the fix does actually work. i.e.
becomes
The results in my previous comment were based on formatting the CSV results with 🤦Anyway I updated #2829 with the tests I ran using a version of I'm not sure how close you are with #2821, but a plan of attack could be:
|
Sounds like a great plan of attack ❤️ As you have seen, we are currently in the midst of some heavy refactoring of the integration tests and some other core parts of k6... Most of that should hopefully be wrapped up by some time next week 🤞 So I'd say that it will be safe enough to make a PR with |
Excellent! I'll try and keep an eye on those PRs and move mine to ready for review. |
We've been somewhat delayed with the integration test refactoring, so I think it's fairly safe to merge your PR without an integration test and add it later 🤔 Besides, as @codebien has commented in #2829 (review), it might even be possible to easily edit the regular unit tests to cover this behavior. So yeah, ignore the integration tests and the PRs I linked in my previous comment for now 😅 |
Brief summary
When upgrading from version 0.40.0 to 0.41.0 the system tags
vu
anditer
are no longer populated in outputs.This happens whether the
--system-tags
command line argument is used or the tags are specified in the test javascript options.I found this when trying to upgrade my own xk6-timestream-output to K6 v0.41.0/v0.42.0. I've replicated the same issue with the CSV output.
k6 version
0.41.0
OS
macOS
Docker version and image (if applicable)
loadimpact/k6:0.41.0
Steps to reproduce the problem
Replication here are for the CSV output.
cd
into the folder.make
. This will run the same test with v0.40.0 and v0.41.0 of K6, then diff thevu
anditer
columns of the outputted CSV.The issue is not fixed in v0.42.0 - run
make
on the 0.42.0 branch.The issue also occurs when using cli arguments rather than specifying the system tags in the javascript options - run
make
on the cli-arg branch.Expected behaviour
The contents of the
vu
anditer
columns of the CSV output by versions 0.40.0 and 0.41.0 should match.Actual behaviour
In the CSV output by K6 v0.41.0, the
vu
anditer
columns are empty. This does not match the values correctly output by K6 v0.40.0.The text was updated successfully, but these errors were encountered: