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

ci(ITs): support JBoss ITs with GitHub secrets #3469

Merged
merged 16 commits into from
Dec 20, 2023
Merged

Conversation

v1v
Copy link
Member

@v1v v1v commented Dec 18, 2023

What does this PR do?

Support specialised ITs that require access to GitHub action secrets.

It requires support for the new maven profile called ci-jboss-integration-tests, so all the ITs that require access to the JBoss docker images are disabled by default.

Docker images are not yet available in the internal docker registry, that will happen eventually.

Checklist

  • This is an enhancement of existing features, or a new feature in existing plugins
    • I have updated CHANGELOG.asciidoc
    • I have added tests that prove my fix is effective or that my feature works
    • Added an API method or config option? Document in which version this will be introduced
    • I have made corresponding changes to the documentation
  • This is a bugfix
  • This is a new plugin
    • I have updated CHANGELOG.asciidoc
    • My code follows the style guidelines of this project
    • I have made corresponding changes to the documentation
    • I have added tests that prove my fix is effective or that my feature works
    • New and existing unit tests pass locally with my changes
    • I have updated supported-technologies.asciidoc
    • Added an API method or config option? Document in which version this will be introduced
    • Added an instrumentation plugin? Describe how you made sure that old, non-supported versions are not instrumented by accident.
  • This is something else

name: JBoss integration tests
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
Copy link
Member Author

Choose a reason for hiding this comment

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

This should only happen when a non-forked pull request.

@SylvainJuge
Copy link
Member

@v1v I've split the jboss integration tests (and changed the profile name for consistency), so with that we should already be able to execute them in a separate build step.

@SylvainJuge SylvainJuge marked this pull request as ready for review December 20, 2023 14:31
SylvainJuge
SylvainJuge previously approved these changes Dec 20, 2023
@@ -320,3 +320,35 @@ jobs:
path: |
**/junit-*.xml
**/TEST-*.xml

jboss:
Copy link
Member

Choose a reason for hiding this comment

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

[minor] we could make that step a sub-step of the application server tests,but as it's quite fast (about 6min) in CI that's fine for now and allows us to keep an eye on it for now in case of failure.

@@ -270,16 +270,16 @@ public void start() {
log.info("starting container with {} = {}", jvmEnvironmentVariable, value);
}

// log app server output for easier debugging
withLogConsumer(new Slf4jLogConsumer(log));
Copy link
Member

Choose a reason for hiding this comment

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

this was required because otherwise the container output wasn't captured

.waitingFor(new HttpWaitStrategy().forPort(8080).forStatusCode(200));

if (preserveDefaults) {
// for older versions setting JAVA_OPTS means overwriting the defaults
Copy link
Member

Choose a reason for hiding this comment

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

this is only needed for some of the older jboss versions, the latest ones are able to deal with customized JAVA_OPTS variable.

@SylvainJuge SylvainJuge enabled auto-merge (squash) December 20, 2023 16:01
@SylvainJuge SylvainJuge merged commit 140392c into main Dec 20, 2023
15 checks passed
@SylvainJuge SylvainJuge deleted the feature/run-jboss branch December 20, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants