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

Remove validation timeout in controlplane testing #26414

Merged
merged 1 commit into from Jul 3, 2023

Conversation

pippolo84
Copy link
Member

Due to the unpredictability of a CI environment, setting a validation timeout when running tests may lead to flakyness. At the same time, a short timeout is useful when developing locally to get faster feedback from the tests.

The commit changes the controlplane test framework to run without a timeout by default. An additional method WithValidationTimeout is added to set a custom one when developing locally. Moreover, the result of each failed validation is always printed, to ease debuggability both locally and in a CI environment.

Related: #26082

@pippolo84 pippolo84 added area/CI Continuous Integration testing issue or flake release-note/bug This PR fixes an issue in a previous release of Cilium. labels Jun 22, 2023
@pippolo84 pippolo84 requested a review from a team as a code owner June 22, 2023 10:22
Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

The change makes sense to me. I was reading the discussion in the linked issue and came across this, which made me hesitate on approving this PR. Raising it here for us to discuss whether that comment impacts this PR.

@pippolo84
Copy link
Member Author

The change makes sense to me. I was reading the discussion in the linked issue and came across this, which made me hesitate on approving this PR. Raising it here for us to discuss whether that comment impacts this PR.

Yep, I'm working to verify what has been suggested. But I think we should consider removing the timeout anyway, to avoid possible further flakyness.

@christarazi christarazi added release-note/ci This PR makes changes to the CI. and removed release-note/bug This PR fixes an issue in a previous release of Cilium. labels Jun 24, 2023
@pippolo84

This comment was marked as outdated.

@pippolo84 pippolo84 force-pushed the pr/pippolo84/improve-cpt-retry branch from 4f39bca to 48568a4 Compare June 27, 2023 14:48
@pippolo84

This comment was marked as outdated.

@pippolo84 pippolo84 force-pushed the pr/pippolo84/improve-cpt-retry branch from 48568a4 to 5bf0145 Compare June 30, 2023 14:36
Due to the unpredictability of a CI environment, setting a validation
timeout when running tests may lead to flakyness.  At the same time, a
short timeout is useful when developing locally to get faster feedback
from the tests.

The commit changes the controlplane test framework to run without a
timeout by default.  An additional method WithValidationTimeout is added
to set a custom one when developing locally.  Moreover, the result of
each failed validation is always printed, to ease debuggability both
locally and in a CI environment.

Related: cilium#26082

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
@pippolo84 pippolo84 force-pushed the pr/pippolo84/improve-cpt-retry branch from 5bf0145 to c67446c Compare June 30, 2023 14:37
@pippolo84
Copy link
Member Author

/test

@pippolo84 pippolo84 added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 30, 2023
@pippolo84
Copy link
Member Author

pippolo84 commented Jun 30, 2023

The only affected tests ran successfully in Travis, so marking it ready-to-merge.

@borkmann borkmann merged commit 0447095 into cilium:main Jul 3, 2023
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants