Closed tkrishtop closed 2 years ago
Reproduced this issue again with the latest tag b00d46ad3531b3059a2e1ffda3fa3531a669f0ec
(=master branch).
Operator version:
image: "quay.io/rh-nfv-int/testpmd-operator-bundle@sha256:5e28f883faacefa847104ebba1a1a22ee897b7576f0af6b8253c68b5c8f42815"
index_image: "quay.io/tkrishtop/index-testpmd-operator-bundle:v0.2.9"
Preflight shows ScorecardOlmSuiteCheck test in errors
"errors": [
{
"name": "ScorecardOlmSuiteCheck",
"elapsed_time": 120145,
"description": "Operator-sdk scorecard OLM Test Suite Check",
"help": "Check ScorecardOlmSuiteCheck encountered an error. Please review the /artifacts/operator_bundle_scorecard_OlmSuiteCheck.json file for more information."
},
but independent operator-sdk scorecard --selector=test=basic-check-spec-test
test (I run it right after the preflight test) for the same operator shows that the test is OK
{
"kind": "TestList",
"apiVersion": "scorecard.operatorframework.io/v1alpha3",
"items": [
{
"kind": "Test",
"apiVersion": "scorecard.operatorframework.io/v1alpha3",
"spec": {
"image": "quay.io/operator-framework/scorecard-test@sha256:ff3ce0785e706185260a8308c0f40bae950fdba03cbb302fd002dddf3129b189",
"entrypoint": [
"scorecard-test",
"basic-check-spec"
],
"labels": {
"suite": "basic",
"test": "basic-check-spec-test"
},
"storage": {
"spec": {
"mountPath": {}
}
}
},
"status": {
"results": [
{
"name": "basic-check-spec",
"state": "pass",
"creationTimestamp": null
}
]
}
}
]
}
@tkrishtop From the log, it seems that the scorecard test was not executed within the 120s wait time (elapsed time 120145ms). We merged a PR that increases the timeout to 240ms. Please feel free to reopen the issue if you saw the error again.
Bug Description
Sometimes ScorecardBasicSpecCheck randomly fails, in ~30% of tests. This fail seems to be preflight-related because
operator-sdk scorecard --selector=test=basic-check-spec-test
which runs just after always showing "pass". The error on the preflight side iserror running tests context deadline exceeded
, so maybe it's something timeout-related.results.json:
File
artifacts/operator_bundle_scorecard_BasicSpecCheck.json
is absent (issue #169 ).preflight.log:
operator-sdk scorecard output:
Version and Command Invocation
1.0.3
Steps to Reproduce:
Run
preflight operator check
for testpmd operator several times in a row:Sometimes ScorecardBasicSpecCheck fails (~30%)
and sometimes pass (~70%)
Expected Result
ScorecardBasicSpecCheck should always pass
Actual Result
Sometimes ScorecardBasicSpecCheck fails (~30%)
and sometimes pass (~70%)