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

Fix flaky test TestUpgradeHandlerSameVersion #6476

Conversation

andrzej-stencel
Copy link
Contributor

What does this PR do?

Fix flaky test TestUpgradeHandlerSameVersion by increasing the maximum timeout to a generous 1 second. This does not extend the normal test execution time, so no reason to make this timeout too restrictive.

Why is it important?

We don't want flaky tests.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

Related issues

Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.
@andrzej-stencel andrzej-stencel added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog backport-8.x Automated backport to the 8.x branch with mergify backport-8.16 Automated backport with mergify backport-8.17 Automated backport with mergify labels Jan 3, 2025
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner January 3, 2025 11:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

Copy link

@andrzej-stencel andrzej-stencel merged commit 8325d47 into elastic:main Jan 7, 2025
18 checks passed
@andrzej-stencel andrzej-stencel deleted the fix-flaky-test-TestUpgradeHandlerSameVersion branch January 7, 2025 08:35
mergify bot pushed a commit that referenced this pull request Jan 7, 2025
Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.

(cherry picked from commit 8325d47)
mergify bot pushed a commit that referenced this pull request Jan 7, 2025
Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.

(cherry picked from commit 8325d47)
mergify bot pushed a commit that referenced this pull request Jan 7, 2025
Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.

(cherry picked from commit 8325d47)
andrzej-stencel added a commit that referenced this pull request Jan 7, 2025
Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.

(cherry picked from commit 8325d47)

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
andrzej-stencel added a commit that referenced this pull request Jan 7, 2025
Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.

(cherry picked from commit 8325d47)

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
andrzej-stencel added a commit that referenced this pull request Jan 7, 2025
Increased the maximum timeout to a generous 1 second.
This does not extend the normal test execution time,
so no reason to make this timeout too restrictive.

(cherry picked from commit 8325d47)

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify backport-8.16 Automated backport with mergify backport-8.17 Automated backport with mergify skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flaky Test]: TestUpgradeHandlerSameVersion – mockUpgradeManager.Upgrade was not called
3 participants