-
Notifications
You must be signed in to change notification settings - Fork 335
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
Race condition when executing continual tests with upgrade framework #2026
Comments
mgencur
added a commit
to mgencur/serving-1
that referenced
this issue
Feb 19, 2021
Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages.
mgencur
added a commit
to mgencur/serving-1
that referenced
this issue
Feb 19, 2021
Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages.
mgencur
added a commit
to mgencur/serving-1
that referenced
this issue
Feb 19, 2021
Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages.
More details about the root cause from verbose logs:
|
openshift-merge-robot
pushed a commit
to openshift/knative-serving
that referenced
this issue
Mar 1, 2021
Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages.
knative-prow-robot
pushed a commit
to knative/serving
that referenced
this issue
Mar 1, 2021
Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages.
markusthoemmes
pushed a commit
to markusthoemmes/knative-serving
that referenced
this issue
Apr 7, 2021
Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages.
openshift-merge-robot
pushed a commit
to openshift/knative-serving
that referenced
this issue
Apr 7, 2021
* Fix race condition with Prober logger in upgrade tests (#670) Fixes knative/pkg#2026 The actual issue is that the test context expires between individual stages run by the upgrade framework. This fix passes an external logger that survives the stages. * Only use exec probe at startup time (knative#10741) * Only use exec probe at startup time Now that StartupProbe is available, we can avoid using spawning the exec probe other than at startup time. For requests after startup this directly uses the same endpoint as the exec probe in the QP as the target of a HTTP readiness probe. Following on from this I think we may want to rework quite a bit of how our readiness probe stuff works (e.g. it'd be nice to keep the probes on the user container so failures are on the right object, and we currently ignore probes ~entirely after startup if periodSeconds>0), but this is a minimal change that should be entirely backwards-compatible and saves quite a few cpu cycles. * Use ProgressDeadline as failure timeout for startup probe - Also just drop exec probe entirely for periodSeconds > 1 since these can just use the readiness probe now. (Easier than figuring out how to do square ProgressDeadline with a custom period). * See if flag is what's making upgrades unhappy * reorganize comments * Default PeriodSeconds of the readiness probe to 1 if unset (knative#10992) Co-authored-by: Martin Gencur <[email protected]> Co-authored-by: Julian Friedman <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Tests executed via the upgrade framework in https://github.com/knative/pkg/tree/master/test/upgrade properly run the "continual" tests which run in background during an upgrade.
Actual Behavior
The test framework occasionally detects a race condition when tests are executed with
-race
flag. The example error can be seen here: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift-knative_serverless-operator/804/pull-ci-openshift-knative-serverless-operator-main-4.6-upgrade-tests-aws-ocp-46/1361689216857149440The stacktrace looks like this:
Steps to Reproduce the Problem
-race
flagAdditional Info
The text was updated successfully, but these errors were encountered: