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

Allow to run MP LRA TCK with externally managed coordinator #31944

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

xstefank
Copy link
Member

We can reuse this back to back in the published coordinator image testing - https://github.com/jbosstm/lra-coordinator-quarkus

@quarkus-bot quarkus-bot bot added the area/lra label Mar 17, 2023
@xstefank xstefank force-pushed the lra-coordinator-tck branch from fd0bd02 to 85f794c Compare March 17, 2023 13:09
@quarkus-bot

This comment has been minimized.

.withNetworkMode("host");
if (System.getProperty("lra.coordinator.url") == null) {
LOGGER.debug("Starting LRA coordinator on port " + coordinatorPort);
coordinatorContainer = new GenericContainer<>(DockerImageName.parse("jbosstm/lra-coordinator:latest"))
Copy link
Contributor

Choose a reason for hiding this comment

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

The image name should be quay.io/jbosstm/lra-coordinator?

// lra-coordinator is a Quarkus service
.withEnv("QUARKUS_HTTP_PORT", String.valueOf(coordinatorPort))
// need to run with host network because coordinator calls the TCK services from the container
.withNetworkMode("host");
Copy link
Contributor

Choose a reason for hiding this comment

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

It could add waitingFor(Wait.forLogMessage(".*lra-coordinator-quarkus.*", 1)); to make sure the server is started.

@gsmet
Copy link
Member

gsmet commented Mar 20, 2023

This will need a rebase as I switched to the new quay.io images in another PR.

@gsmet gsmet added the triage/needs-rebase This PR needs to be rebased first because it has merge conflicts label Mar 20, 2023
@xstefank xstefank force-pushed the lra-coordinator-tck branch from 85f794c to e70e875 Compare March 22, 2023 07:01
@xstefank xstefank force-pushed the lra-coordinator-tck branch from e70e875 to f7cdbcc Compare March 22, 2023 07:09
@quarkus-bot

This comment has been minimized.

@xstefank
Copy link
Member Author

@gsmet @geoand @gastaldi would it be possible to get this merged?

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

LGTM

@geoand
Copy link
Contributor

geoand commented Apr 25, 2023

I'd ask for one last rebase as the PR is quite old

@xstefank xstefank force-pushed the lra-coordinator-tck branch from f7cdbcc to 2fa3fef Compare April 25, 2023 11:41
@geoand geoand added triage/waiting-for-ci Ready to merge when CI successfully finishes and removed triage/needs-rebase This PR needs to be rebased first because it has merge conflicts labels Apr 25, 2023
@xstefank
Copy link
Member Author

@geoand already rebased, just we might race-conditioned labels :)

@geoand
Copy link
Contributor

geoand commented Apr 25, 2023

:)

@quarkus-bot
Copy link

quarkus-bot bot commented Apr 25, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@geoand geoand merged commit 67cf295 into quarkusio:main Apr 25, 2023
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Apr 25, 2023
@quarkus-bot quarkus-bot bot added this to the 3.1 - main milestone Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants