You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes operator-sdk scorecard produces timeout, it seems like a several-minute outage of internal resources. It's not a fault of preflight, because direct operator-sdk scorecard tests which run immediately after, timeout as well.
The problem is that in this case, preflight doesn't generate correct logs and the file scorecard_BasicSpecCheck.json is empty.
I would expect to have an operator-sdk error error running tests context deadline exceeded in preflight.log or results.json. I'd like to not run direct operator-sdk tests and rely entirely on preflight.
Actual Result
results.json
"errors": [
{
"name": "ScorecardBasicSpecCheck",
"elapsed_time": 240096,
"description": "Check to make sure that all CRs have a spec block.",
"help": "Check ScorecardBasicSpecCheck encountered an error. Please review the /artifacts/operator_bundle_scorecard_BasicSpecCheck.json file for more information."
},
operator_bundle_scorecard_BasicSpecCheck.json is empty.
preflight.log
time="2021-12-07T07:49:15Z" level=trace msg="running scorecard with the following invocation[operator-sdk scorecard --output json --selector=test=basic-check-spec-test --kubeconfig /kubeconfig --wait-time 240s --namespace preflight-testing --service-account default --config /tmp/scorecard-test-config-2578384683.yaml --verbose /tmp/preflight-606340614/fs]"
time="2021-12-07T07:53:15Z" level=info msg="check completed: ScorecardBasicSpecCheck" ERROR="failed to run operator-sdk scorecard: unexpected end of JSON input" result="failed to run operator-sdk scorecard: unexpected end of JSON input"
operator-sdk scorecard --selector=test=basic-check-spec-test which runs immediately after
Stdout ============================
Stderr ============================
time="2021-12-07T02:12:24-06:00" level=debug msg="Debug logging is set"
Error: error running tests context deadline exceeded
Usage:
operator-sdk scorecard [flags]
Flags:
-c, --config string path to scorecard config file
-h, --help help for scorecard
--kubeconfig string kubeconfig path
-L, --list Option to enable listing which tests are run
-n, --namespace string namespace to run the test images in
-o, --output string Output format for results. Valid values: text, json, xunit (default "text")
-l, --selector string label selector to determine which tests are run
-s, --service-account string Service account to use for tests (default "default")
-x, --skip-cleanup Disable resource cleanup after tests are run
-b, --storage-image string Storage image to use (default "docker.io/library/busybox@sha256:c71cb4f7e8ececaffb34037c2637dc86820e4185100e18b4d02d613a9bd772af")
-t, --test-output string Test output directory. (default "test-output")
-u, --untar-image string Untar image to use (default "registry.access.redhat.com/ubi8@sha256:910f6bc0b5ae9b555eb91b88d28d568099b060088616eba2867b07ab6ea457c7")
-w, --wait-time duration seconds to wait for tests to complete. Example: 35s (default 30s)
Global Flags:
--plugins strings plugin keys to be used for this subcommand execution
--verbose Enable verbose logging
time="2021-12-07T02:17:24-06:00" level=fatal msg="error running tests context deadline exceeded"
Additional Context
We'd like to deactivate direct operator-sdk tests and rely entirely on preflight logs.
The text was updated successfully, but these errors were encountered:
This is happening because operator-sdk dose not handle context deadline errors like they do for other application errors. Link to code L235 would be where the error is propigated.
Bug Description
Sometimes
operator-sdk scorecard
produces timeout, it seems like a several-minute outage of internal resources. It's not a fault of preflight, because directoperator-sdk scorecard
tests which run immediately after, timeout as well.The problem is that in this case, preflight doesn't generate correct logs and the file scorecard_BasicSpecCheck.json is empty.
Version and Command Invocation
preflight 1.0.5
Steps to Reproduce:
Operator to test:
Preflight command:
Here are all log files.
Expected Result
I would expect to have an operator-sdk error
error running tests context deadline exceeded
in preflight.log or results.json. I'd like to not run directoperator-sdk
tests and rely entirely on preflight.Actual Result
results.json
operator_bundle_scorecard_BasicSpecCheck.json is empty.
preflight.log
operator-sdk scorecard --selector=test=basic-check-spec-test
which runs immediately afterAdditional Context
We'd like to deactivate direct
operator-sdk
tests and rely entirely on preflight logs.The text was updated successfully, but these errors were encountered: