Skip to content

Commit

Permalink
Merge pull request #199 from ehrbase/develop
Browse files Browse the repository at this point in the history
[pull] develop from ehrbase:develop
  • Loading branch information
crisdelta committed Jan 16, 2024
2 parents 0d079a0 + 77b0788 commit e581a77
Show file tree
Hide file tree
Showing 372 changed files with 19,820 additions and 2,475 deletions.
43 changes: 38 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ workflows:
- build-ehrbase
- QUERYSERVICE-test-1

- STOREDQUERY-test:
context: org-global
requires:
- build-ehrbase
- QUERYSERVICE-test-1

- QUERYSERVICE-test-1:
context: org-global
requires:
Expand Down Expand Up @@ -271,6 +277,7 @@ workflows:
- EHRSERVICE-test
- EHRSTATUS-test
- KNOWLEDGE-test
- STOREDQUERY-test
- QUERYSERVICE-test-1
- QUERYSERVICE-test-2
- NEWQUERY-test-set
Expand Down Expand Up @@ -467,6 +474,12 @@ workflows:
- build-ehrbase
- QUERYSERVICE-test-2

- STOREDQUERY-test:
context: org-global
requires:
- build-ehrbase
- QUERYSERVICE-test-2

- QUERYSERVICE-test-1:
context: org-global
requires:
Expand Down Expand Up @@ -525,6 +538,7 @@ workflows:
- EHRSERVICE-test
- EHRSTATUS-test
- KNOWLEDGE-test
- STOREDQUERY-test
- QUERYSERVICE-test-1
- QUERYSERVICE-test-2
- NEWQUERY-test-set
Expand Down Expand Up @@ -745,6 +759,10 @@ workflows:
context: org-global
requires:
- build package ehrbase with locally built sdk from sync-branch
- STOREDQUERY-test:
context: org-global
requires:
- build package ehrbase with locally built sdk from sync-branch
- QUERYSERVICE-test-1:
context: org-global
requires:
Expand Down Expand Up @@ -797,6 +815,7 @@ workflows:
- EHRSERVICE-test
- EHRSTATUS-test
- KNOWLEDGE-test
- STOREDQUERY-test
- QUERYSERVICE-test-1
- QUERYSERVICE-test-2
- NEWQUERY-test-set
Expand Down Expand Up @@ -1227,6 +1246,19 @@ jobs:
allow-template-overwrite: false
cache-enabled: false

STOREDQUERY-test:
executor: docker-py3-postgres
steps:
- checkout
- restore-workspace
- git-clone-robot-integration-tests-repo
- move-integration-tests-content-to-local-tests-folder
- run-robot-tests:
include-tags: "stored_query"
test-suite-path: "STORED_QUERY_TESTS"
test-suite-name: "STORED_QUERY"
allow-template-overwrite: true

QUERYSERVICE-test-1:
executor: docker-py3-postgres
steps:
Expand Down Expand Up @@ -1522,7 +1554,7 @@ commands:
--plugin-manager.plugin-dir='tests/test_plugin' \
--plugin-manager.plugin-config-dir='tests/test_plugin_config_dir' \
--cache.enabled=<< parameters.cache-enabled >> > log & app_pid=$!
timeout=60
timeout=360
while [ ! -f ./log ];
do
echo "Waiting for file ./log ..."
Expand All @@ -1536,6 +1568,7 @@ commands:
while ! (cat ./log | grep -m 1 "Started EhrBase in");
do
echo "waiting for EHRbase to be ready ...";
tail -n 5 ./log
if [ "$timeout" == 0 ]; then
echo "WARNING: Did not see a startup message even after waiting 60s"
exit 1
Expand Down Expand Up @@ -1717,7 +1750,7 @@ commands:
name: INSTALL SDK
command: |
cd ~/projects/openEHR_SDK
mvn install -Dmaven.javadoc.skip=true -Djacoco.skip=true -Dmaven.test.skip
mvn install -Dmaven.javadoc.skip=true -Djacoco.skip=true

start-ehrbase-and-run-java-integration-sdk-tests:
Expand Down Expand Up @@ -1994,8 +2027,8 @@ commands:
name: Save unit test results
command: |
mkdir -p ~/ehrbase-test-results/unit-tests/
find ~/projects -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
find ~/projects -type f -regex ".*/target/surefire-reports/.*txt" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
find ~/projects -type f -regex ".*/target/surefire-reports/.*xml" -not -path "~/projects/openEHR_SDK/*" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
find ~/projects -type f -regex ".*/target/surefire-reports/.*txt" -not -path "~/projects/openEHR_SDK/*" -exec cp {} ~/ehrbase-test-results/unit-tests/ \;
when: always


Expand Down Expand Up @@ -2515,7 +2548,7 @@ commands:
orbs:
maven: circleci/[email protected]
openjdk-install: cloudesire/[email protected]
sonarcloud: sonarsource/sonarcloud@1.0.2
sonarcloud: sonarsource/sonarcloud@2.0.0

executors:
# https://hub.docker.com/u/cimg (circleci next-gen docker images)
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ updates:
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
10 changes: 5 additions & 5 deletions .github/workflows/build-multiarch-image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push (AMD64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ehrbase/ehrbase:latest-amd64
-
name: Build and push (ARM64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-multiarch-image-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ jobs:
# Set as Environment for all further steps
echo "TAG=${v}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push (AMD64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ehrbase/ehrbase:${{env.TAG}}-amd64

- name: Build and push (ARM64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-multiarch-image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Create TAG ENV from version of release Branch
run: |
Expand All @@ -27,24 +27,24 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push (AMD64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ehrbase/ehrbase:tag-amd64
-
name: Build and push (ARM64)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -48,7 +48,7 @@ jobs:
run: mvn -B verify

- name: Setup Maven Central
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -78,7 +78,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -91,6 +91,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
12 changes: 6 additions & 6 deletions .github/workflows/jdk-compat-robot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand Down Expand Up @@ -69,14 +69,14 @@ jobs:
cat /var/tmp/log.txt
- name: Checkout robot
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ehrbase/integration-tests
ref: main

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand All @@ -103,14 +103,14 @@ jobs:
- name: Archive code coverage results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: robot-result
path: /home/runner/work/ehrbase/ehrbase/tests/results/

- name: Archive logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: log
path: /var/tmp/log.txt
4 changes: 2 additions & 2 deletions .github/workflows/jdk-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand Down
Loading

0 comments on commit e581a77

Please sign in to comment.