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

Development: Fix flaky server tests #9428

Closed
wants to merge 5 commits into from

Conversation

BBesrour
Copy link
Member

@BBesrour BBesrour commented Oct 5, 2024

Checklist

General

Motivation and Context

Fix flaky LocalVCLocalCIIntegrationTest tests

Steps for Testing

LocalVCLocalCIIntegrationTest should pass

Testserver States

Note

These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.







Review Progress

Code Review

  • Code Review 1
  • Code Review 2

Test Coverage

Screenshots

@BBesrour BBesrour self-assigned this Oct 5, 2024
@github-actions github-actions bot added tests programming Pull requests that affect the corresponding module labels Oct 5, 2024
@MaximilianAnzinger MaximilianAnzinger changed the title Development: fix flaky server tests Development: Fix flaky server tests Oct 9, 2024
// TestInstance.Lifecycle.PER_CLASS allows all test methods in this class to share the same instance of the test class.
// This reduces the overhead of repeatedly creating and tearing down a new Spring application context for each test method.
// This is especially useful when the test setup is expensive or when we want to share resources, such as database connections or mock objects, across multiple tests.
// In this case, we want to share the same GitService and UsernamePasswordCredentialsProvider.
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
Copy link
Contributor

Choose a reason for hiding this comment

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

I had the same idea but that's implicit default behavior, see.

@krusche krusche closed this Oct 12, 2024
@krusche krusche deleted the chore/development/fix-flaky-server-tests branch October 12, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
programming Pull requests that affect the corresponding module tests
Projects
Status: Work In Progress
Development

Successfully merging this pull request may close these issues.

3 participants