-
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
fix handleSummary do not check if directory exists #3464
Conversation
Javier Solana Huertas seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Hey @jsolana 👋🏻 Thanks for your contribution 🤝 To be fair and transparent with you, I'm torn about doing this. My reasoning is the following:
Overall, I'm rather against merging this as per ☝🏻 and as there is an easy workaround: either manually ensuring your destination folder exists, or scripting it as part of the testing environment. |
Ey @oleiade, sorry for the delay! I was out cause a little break (and celebrating my birthday!) My main concern is, somethings you are running costly tests and with no previous control, we are failing saving the information in the last moment and the user needs to run the test again. Im fine with your point of view, maybe is enough with a clarification in the documentation instead to try an automatic- under-the-hood solution? Just to understand your whole message, when you say:
What do you mean? Thanks! PST: I'll try to start collaborating with other good first issue :D |
Happy birthday @jsolana 🍰 🎂 🎁 🍾 🎉
What I had in mind was that you would chain the mkdir -p /some/folder/holding/data && k6 run script.js Which could also be integrated as part of a CI job, and so on. Please keep in mind that my understanding of the issue you're trying to solve might be limited, though, and that without more thorough and concrete examples, I might also be missing the point 👍🏻 Please feel free to go ahead with I hope that's helpful, and happy birthday again! |
Thanks! and thanks a lot for the clarifications and tips (make total sense start talking about instead to do the PR directly :D ) I assume, more or less the solution was defined cause this comment from @imiric In the case of this:
Do you think make sense to modify the documentation to provide any kind of awareness? Thanks! |
What?
Fix create the parent directories if they don't exist yet described in #3084 creating the parent directories if they don't exist yet, like
mkdir -p
would do.Why?
k6 run will fails in the after-stage when creating summary if the output directories don't exist previously
Checklist
make lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)
Closes #3084