Repository navigation
Activate Spring Boot Starter integration tests in CI - #2884
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the Integration Build workflow to optionally run Spring Boot Starter integration tests in CI (primarily for PRs labeled scope:spring-boot) and wires that new testsuite into the shared .devenv integration-test runner script.
Changes:
- Add
needs_spring_boot_starter_testsdetection/output in the PR configuration job and introduce a dedicatedspring-boot-starter-integration-testsCI job. - Extend
.devenv/scripts/build/build-and-run-integration-tests.shto accept--testsuite=spring-boot-starterand run the corresponding Maven profile.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/integration-build.yml |
Adds PR-label detection for Spring Boot scope and a new CI job to execute Spring Boot Starter integration tests. |
.devenv/scripts/build/build-and-run-integration-tests.sh |
Adds a spring-boot-starter testsuite mode with dedicated build/test commands. |
kthoms
added a commit
that referenced
this pull request
May 6, 2026
Adds the org.graalvm.js:js-scriptengine dependency required for JavaScript execution via JSR-223 in the webapp runtime integration tests. Without this dependency, javascript tasks and listeners fail with 'scriptEngine is null'. Related to #2884 Co-authored-by: Copilot <[email protected]>
kthoms
force-pushed
the
feature/2874-activate-sb-int-tests
branch
2 times, most recently
from
May 6, 2026 17:59
6048412 to
54a3028
Compare
…ration Related to #2874 Co-authored-by: Copilot <[email protected]>
The antrun execution in distro/webjar/pom.xml moves securityFilterRules.json from WEB-INF/ to the correct classpath location in the webjar. This step was incorrectly skipped when building with -Dskip.frontend.build=true, causing the Spring Boot Starter integration test app to fail at startup with: Could not read security filter config file '/securityFilterRules.json': no such resource in servlet context. The file restructuring (moving securityFilterRules.json, deleting WEB-INF, etc.) is not frontend-specific and must always run to produce a valid webjar. Co-authored-by: Copilot <[email protected]>
…ions When skip.frontend.build=true, the plugin/ directory is not present in the unpacked WAR (it is only populated by the webpack frontend build). The previous fix (removing the skip entirely) caused the antrun to fail because it tried to move the missing plugin/ dir. Split into two antrun executions: - restructure-webjar-static: always runs - moves securityFilterRules.json and deletes WEB-INF/ (these files are always present, not frontend-specific) - restructure-webjar-frontend: skipped when skip.frontend.build=true - moves plugin/ and copies operaton-welcome/ (only present after frontend build) Co-authored-by: Copilot <[email protected]>
Without running the full webpack frontend build (skip.frontend.build=true), the webjar contains no app HTML/JS/CSS files. Integration tests running in CI therefore receive 500 errors when accessing app pages, causing test failures in: - RequestTrailingSlashIT - ChangedAppPathIT#shouldCheckPresenceOfResources - SessionCookiePathEnforcementIT$Disabled Add minimal stub files to src/test/resources so Spring Boot's classpath resource resolution finds them during integration tests, resulting in proper 200 responses and letting all filter mechanics work as expected. Co-authored-by: Copilot <[email protected]>
… testing" This reverts commit d332945.
…gration test script spring-boot-starter has no handler in run_tests() case statement, so passing --testsuite=spring-boot-starter would pass validation but execute incorrectly. A dedicated script (build-and-run-spring-boot-starter.sh) exists for this purpose. Co-authored-by: Copilot <[email protected]>
…ponse output SessionCookieFilter was only applying SameSite attributes when response output was written (writer/outputStream accessed). However, in requests where no response output is generated (e.g., some test scenarios), the cookies were sent without the SameSite attribute. Fixed by calling appendSameSiteIfMissing() after the filter chain completes, ensuring all session cookies get the SameSite attribute regardless of whether response output was written. This also handles the case where the proxy is called from a non-HTTP context gracefully. Fixes SessionCookiePathEnforcementIT#shouldNotOverrideCookiePathWhenEnforcementDisabled test. Co-authored-by: Copilot <[email protected]>
kthoms
force-pushed
the
feature/2874-activate-sb-int-tests
branch
from
May 11, 2026 03:48
01585f2 to
461c788
Compare
|
34 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



closes #2874