-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from xdev-software/develop
Release
- Loading branch information
Showing
179 changed files
with
33,754 additions
and
159 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Run integration tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ develop ] | ||
paths-ignore: | ||
- '**.md' | ||
- '.config/**' | ||
- '.github/**' | ||
- '.idea/**' | ||
- 'assets/**' | ||
pull_request: | ||
branches: [ develop ] | ||
paths-ignore: | ||
- '**.md' | ||
- '.config/**' | ||
- '.github/**' | ||
- '.idea/**' | ||
- 'assets/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
run-integration-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [17, 21] | ||
project: [persistence-it, webapp-it] | ||
parallel: [0, 2] | ||
pre-start: [false, true] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ matrix.java }} | ||
cache: 'maven' | ||
|
||
- name: Test | ||
run: | | ||
./mvnw -B test \ | ||
-pl "tci-advanced-demo/${{ matrix.project }}" -am \ | ||
-P run-it \ | ||
${{ matrix.pre-start && '-Dinfra-pre-start.enabled=1 ' || '' }} \ | ||
${{ matrix.parallel > 0 && format('-Djunit.jupiter.execution.parallel.enabled=true -Djunit.jupiter.execution.parallel.mode.default=concurrent -Djunit.jupiter.execution.parallel.mode.classes.default=concurrent -Djunit.jupiter.execution.parallel.config.strategy=fixed -Djunit.jupiter.execution.parallel.config.fixed.parallelism=2 -Djunit.jupiter.execution.parallel.config.fixed.max-pool-size={0} ', matrix.parallel) || '' }} | ||
# Replace '/' with '-' | ||
- name: Normalize project name | ||
if: failure() | ||
env: | ||
PROJECT: ${{ matrix.project }} | ||
run: echo PROJECT_NORMALIZED=${PROJECT/\//-} >> $GITHUB_ENV | ||
|
||
- name: Upload videos of test failures | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-fail-videos-${{ matrix.java }}-${{ env.PROJECT_NORMALIZED }}-${{ matrix.parallel }}-${{ matrix.pre-start }} | ||
path: ${{ matrix.project }}/target/records | ||
if-no-files-found: ignore |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="All in persistence-it" type="JUnit" factoryName="JUnit" nameIsGenerated="true"> | ||
<module name="persistence-it" /> | ||
<option name="PACKAGE_NAME" value="" /> | ||
<option name="MAIN_CLASS_NAME" value="" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="package" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="All in webapp-it (p=2 + PreStart)" type="JUnit" factoryName="JUnit"> | ||
<module name="webapp-it" /> | ||
<option name="PACKAGE_NAME" value="" /> | ||
<option name="MAIN_CLASS_NAME" value="" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="package" /> | ||
<option name="VM_PARAMETERS" value="-ea -Dinfra-pre-start.enabled=1 -Djunit.jupiter.execution.parallel.enabled=true -Djunit.jupiter.execution.parallel.mode.default=concurrent -Djunit.jupiter.execution.parallel.mode.classes.default=concurrent -Djunit.jupiter.execution.parallel.config.strategy=fixed -Djunit.jupiter.execution.parallel.config.fixed.parallelism=2 -Djunit.jupiter.execution.parallel.config.fixed.max-pool-size=2" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="All in webapp-it (p=2)" type="JUnit" factoryName="JUnit"> | ||
<module name="webapp-it" /> | ||
<option name="PACKAGE_NAME" value="" /> | ||
<option name="MAIN_CLASS_NAME" value="" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="package" /> | ||
<option name="VM_PARAMETERS" value="-ea -Djunit.jupiter.execution.parallel.enabled=true -Djunit.jupiter.execution.parallel.mode.default=concurrent -Djunit.jupiter.execution.parallel.mode.classes.default=concurrent -Djunit.jupiter.execution.parallel.config.strategy=fixed -Djunit.jupiter.execution.parallel.config.fixed.parallelism=2 -Djunit.jupiter.execution.parallel.config.fixed.max-pool-size=2" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="All in webapp-it" type="JUnit" factoryName="JUnit" nameIsGenerated="true"> | ||
<module name="webapp-it" /> | ||
<option name="PACKAGE_NAME" value="" /> | ||
<option name="MAIN_CLASS_NAME" value="" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="package" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Demo Application" type="Application" factoryName="Application"> | ||
<option name="MAIN_CLASS_NAME" value="software.xdev.tci.demo.Application" /> | ||
<module name="webapp" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 1.0.0 | ||
_Initial release_ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Performance | ||
|
||
## PreStarting Comparison | ||
_As of: 2024-05-03_ | ||
|
||
> [!NOTE] | ||
> PreStarting performance is highly situational.<br/> | ||
> Checkout the JavaDocs for more information. | ||
### Initial situation | ||
|
||
* Running the demo webapp integration tests | ||
* Parallelization (tests executed in parallel) is 2 | ||
* Launched using the launch files in the demo | ||
|
||
#### Environment | ||
* Windows + Docker Desktop | ||
* Ryzen 3700X 8C/16T @3.6GHz | ||
* 32GB available RAM for Docker | ||
|
||
### Results | ||
|
||
| | Without PreStarting | With PreStarting | | ||
| --- | --- | --- | | ||
| Total duration | 3m 22s | 2m 34s | | ||
| Average duration per test | 25s | 20s | | ||
| PreStarting Utilization<br/>(how often was PreStarted infrastructure used instead of directly booting it) | - | >90% | | ||
| Avg. time to get basic infra (db, oidc, app) | 10s | 9s | | ||
| Avg. time to get Selenium/WebDriver | 7s | 1s | | ||
| Resource utilization |  |  | | ||
|
||
## Live | ||
|
||
A live comparison using [GitHub actions is also available](https://github.com/xdev-software/tci-base/actions/workflows/run-integration-tests.yml). |
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"rebaseWhen": "behind-base-branch" | ||
} | ||
"rebaseWhen": "behind-base-branch", | ||
"packageRules": [ | ||
{ | ||
"description": "Ignore dependencies for JDK8", | ||
"packagePattern": "^org.bsc.maven:maven-processor-plugin", | ||
"datasources": [ | ||
"maven" | ||
], | ||
"allowedVersions": "!/jdk8$/" | ||
}, | ||
{ | ||
"description": "Java LTS 21", | ||
"packagePattern": "^eclipse-temurin", | ||
"datasources": [ | ||
"docker" | ||
], | ||
"allowedVersions": "/^21\\-alpine$/" | ||
}, | ||
{ | ||
"description": "MariaDB 11 has no LTS and is experimental", | ||
"packagePattern": "^mariadb", | ||
"datasources": [ | ||
"docker" | ||
], | ||
"allowedVersions": "<11" | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Advanced TCI Demo | ||
|
||
This demo is a reference implementation for TCI. | ||
|
||
It represents a Spring Boot Application with a Database and OIDC authentication that is tested using Selenium. | ||
There are also test that validate the database migrations and queries. | ||
|
||
The most interesting project is probably [webapp-it](./webapp-it/) which contains the integration tests for the WebApp. | ||
|
||
> [!TIP] | ||
> Pre defined launchers exist for running the app and the integration tests. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
db.env | ||
oidc-user-config.json |
Oops, something went wrong.