Skip to content

Improve deployment integration tests #25446

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

Conversation

dreis2211
Copy link
Contributor

@dreis2211 dreis2211 commented Feb 26, 2021

Hi,

this PR improves the spring-boot-deployment-tests build step by splitting them apart based on their underlying container (e.g. Wildfly, TomEE etc.).

By doing so we can make use of static per-class testcontainers instead of starting a container for every test. This reduces the amount of started containers from 12 to 4 and therefore obviously the test time as well. (On my machine it only takes a third of what it took before). My hope is that this reduces the pressure on CI as well and helps to minimize flaky tests reported in #25410.

Let me know what you think.
Cheers,
Christoph

P.S.: The separate renaming commit was kind of intentional in order to preserve history for DeploymentIntegrationTests.

Prior to this commit, every test started a new testcontainer. By splitting the
tests apart we can make use of static containers that are only instantiated once
per application (TomEE, Wildfly etc.)
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 26, 2021
@wilkinsona wilkinsona added this to the 2.3.x milestone Feb 26, 2021
@wilkinsona wilkinsona added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 26, 2021
@wilkinsona wilkinsona self-assigned this Feb 26, 2021
wilkinsona pushed a commit that referenced this pull request Feb 26, 2021
wilkinsona pushed a commit that referenced this pull request Feb 26, 2021
Prior to this commit, every test started a new testcontainer. By splitting the
tests apart we can make use of static containers that are only instantiated once
per application (TomEE, Wildfly etc.)

See gh-25446
@wilkinsona wilkinsona modified the milestones: 2.3.x, 2.3.10 Feb 26, 2021
@wilkinsona
Copy link
Member

Lovely stuff! Thanks very much once again, @dreis2211.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants