Closed jameskim0987 closed 1 month ago
Hi @AvitalTamir , this PR is ready for review!
I'm noticing that the github action test is failing although all tests passes on my local. Do you know where the misalignment could be happening?
Hey @jameskim0987, after some investigation this has to do with how GitHub Actions handles stderr... For now I suggest we skip this test in CI, I tried working around it but didn't manage. If we can't find a way to make it work I think it's low impact enough and we can trust that it runs enough times successfully locally for us. I tried it here and it passes.
Let me know what you think.
Hi @AvitalTamir, I also looked into it a bit but didn't get much progress. I think we can settle on skipping the test in CI for now and keep track of this as a separate issue as an enhancement. Created an issue to keep track here: https://github.com/AvitalTamir/cyphernetes/issues/134
Otherwise, I think this PR is in good shape!
@jameskim0987 merged 💪
Resolves #111
Changes made in this PR:
logDebug()
, prepend "[DEBUG] "logError()
and prepend "[ERROR] "fmt.
statements into appropriate debug or error level logsTestCyphernetesShellWithLogLevelFlag
andTestCyphernetesShellWithLogLevelFlagHelper
Notes:
log.Println()
outputs toStderr
by default hence checkingstderr
for the added test