Skip to content
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

Do not use -race flag in upgrade tests #829

Merged

Conversation

mgencur
Copy link
Contributor

@mgencur mgencur commented Feb 17, 2021

The test suite occasionally fails with a race condition in triggering
the continual tests. Disabling the -race flag should not have effect on
how individual tests run. The tests are re-used from other repositories.
When the issue with the upgrade framework is fixed this can be enabled
again.

/assign @cardil

The test suite occasionally fails with a race condition in triggering
the continual tests. Disabling the -race flag should not have effect on
how individual tests run. The tests are re-used from other repositories.
When the issue with the upgrade framework is fixed this can be enabled
again.
@markusthoemmes
Copy link
Contributor

Have we filed issues upstream to actually hunt and fix these bugs?

@mgencur
Copy link
Contributor Author

mgencur commented Feb 17, 2021

Just filed one: knative/pkg#2026

@cardil
Copy link
Member

cardil commented Feb 17, 2021

The race flag doesn't make much sense in context of upgrade testing.

@markusthoemmes
Copy link
Contributor

I disagree with that. If the framework itself has data races going on, we might have racy outcomes and don't know where they're coming from. That might result in false positives or false negatives which would be quite annoying.

@markusthoemmes
Copy link
Contributor

(That said, this is LGTM since we've opened a tracking bug to actually fix it and bothering us with errors ain't useful)

Copy link
Member

@cardil cardil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cardil, mgencur

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cardil
Copy link
Member

cardil commented Feb 17, 2021

I disagree with that. If the framework itself has data races going on, we might have racy outcomes and don't know where they're coming from. That might result in false positives or false negatives which would be quite annoying.

Only false positives, like this. Race recognition makes sense when unit testing. If you deploy prebuild artifacts like all e2e tests do, races will be reported only in testing/orchestration code. That code isn't run on production. That's why I think it makes a little sense to use -race for upgrade testing, as it has its downsides of longer operation and different output processing.

@markusthoemmes
Copy link
Contributor

@cardil well but in this case the race is actually happening in the test code itself, which means that it has a bug that has to be fixed too. Taken to the extreme, such a bug could lead to a test passing when it actually should fail (I'm not saying that's the case here but still).

@openshift-merge-robot openshift-merge-robot merged commit a1508a4 into openshift-knative:main Feb 17, 2021
mgencur pushed a commit to mgencur/serverless-operator that referenced this pull request Mar 1, 2021
openshift-merge-robot pushed a commit that referenced this pull request Mar 1, 2021
* Increase test log level

* Update deps

* Revert "Do not use -race flag in upgrade tests (#829)"

This reverts commit a1508a4.

Co-authored-by: Martin Gencur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants