-
Notifications
You must be signed in to change notification settings - Fork 72
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
spec: remove backticks and use new logging #1954
Conversation
It would be better to use the same variable for collecting both stderr and stdout. That is a case for for a new function separate from |
As we have discussed earlier - agree, that sounds like a nice addition, but I'm not sure that it should be implemented in the scope of this PR. |
b2f088f
to
cdcbaf3
Compare
1ebb5ee
to
2152086
Compare
244b178
to
5961641
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@HashNuke @wavell @agentpoyo Please run tests |
There are three tags that are failing in the build. I've run them a few times. |
7c16f09
to
ba63fc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posted about an error with screenshot.
spec/platform/observability_spec.cr
Outdated
LOGGING.info resp | ||
$?.success?.should be_true | ||
Log.info { resp } | ||
result[:status].success?.should be_true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kosstennbl |
af7b839
to
98d16cb
Compare
@HashNuke Fixed conflicts, fixed platform:observability (it fails in my environment, but after fix - it looks like an environment issue rather than code issue) |
Screenshot of the failure below. |
spec/platform/observability_spec.cr
Outdated
KubectlClient::Get.wait_for_install(deployment_name: "metrics-server") | ||
response_s = `./cnf-testsuite platform:metrics_server poc` | ||
LOGGING.info response_s | ||
(/(PASSED){1}.*(Your platform is using the metrics server){1}/ =~ response_s).should_not be_nil | ||
result = ShellCmd.run_testsuite("platform:metrics_server poc") | ||
(/(PASSED){1}.*(Your platform is using the metrics server){1}/ =~ result[:output]).should_not be_nil | ||
ensure | ||
resp = Helm.uninstall("metrics-server") | ||
LOGGING.info resp | ||
Log.info { resp } | ||
$?.success?.should be_true | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some inspection of the changes for the failing test in this PR - it doesn't seem to me that this failure could be brought by them. Changes follow the same redesign rules as all other tests (which seem to be passing). Does this test succeed on other PRs?
@HashNuke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After further inspection - it seems that it was ensure block, which was causing issues. I'm not sure how and why it started failing after changing only logging for this block, but after last push it should be fine. Please rerun.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After further inspection - it seems that it was ensure block, which was causing issues. I'm not sure how and why it started failing after changing only logging for this block, but after last push it should be fine. Please rerun.
@HashNuke
98d16cb
to
744a33a
Compare
REF: cnti-testcatalog#1495 Replace all backtick command execution with ShellCmd module. Use Log instead of LOGGING module. Fix edgecase issues caused by logging refactor. Remove commented-out code. Signed-off-by: Konstantin Yarovoy <[email protected]>
744a33a
to
aa0da32
Compare
Rebased after the "output refactor" merge, hopefully i haven't forgot to adapt anything. |
Build passing - https://github.com/cnti-testcatalog/testsuite/actions/runs/8980950321. |
Replace all backtick command execution with ShellCmd module.
Use Log instead of LOGGING module.
Fix edge-case issues caused by logging refactor.
Remove commented-out code.
Commit looks scary, but most of the code is changed with a couple of regexes, only small amount of collisions that were needed to be resolved manually is present.
Issues:
REF: #1495
No changes to documentation is needed.
Was tested for successful compilation.
Needs testing with github actions (some of the tests are hard to test on local environments)