ENT-12619: Reduced noise from cfbs shell test output#304
ENT-12619: Reduced noise from cfbs shell test output#304larsewi wants to merge 2 commits intocfengine:masterfrom
Conversation
ba33364 to
de17ea3
Compare
|
@cf-bottom Jenkins please :) |
|
Sure, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/13396/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-13396/ |
There was a problem hiding this comment.
I can't say I love this PR. There is a lot of change and now the scripts can't be written free-hand in bash... you must refer to the testlib often to know what functions to use.
Also, I am not sure how much is improved other than maybe silencing "good" outputs to make analysis easier... which is a welcome change so +1 on that account.
I think all the migrated commits could be squashed into one for easier review... #next-time
|
@craigcomstock Thanks for the review 🚀
I see your point, but I disagree to some extent. The scripts can still be written in free-hand bash. The tests still worked previous to the migration. The asserts however are easier to understand for someone who is not very proficient with bash, rather than greps and pipes on top of each other. Furthermore, the asserts print out a nice error messages like
For me, personally, it's easier with smaller commits, rather than 600 lines of diff that I have to scroll through. You can always click the files changed tab to see everything together. I will fix up some things. If you still think this PR is bad, I won't die on my sword. |
de17ea3 to
5afaf49
Compare
|
@larsewi Some notes:
|
Ticket: ENT-12619 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5afaf49 to
dec4471
Compare
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
|
@olehermanse, @craigcomstock removed the test framework and kept the code print nicer output. Let me know what you think 😉 |
craigcomstock
left a comment
There was a problem hiding this comment.
Pretty small change with some nice benefits.
Example output: