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

OPSEXP-2445 Fix flaky docker compose enterprise tests #1076

Merged
merged 16 commits into from
Jan 23, 2024
8 changes: 4 additions & 4 deletions .github/workflows/bumpVersions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@v5.12.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@v5.13.0
- name: Regenerate helm docs if necessary
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.12.0
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.13.0
with:
pre-commit-args: helm-docs || true
skip_checkout: "true"
Expand Down Expand Up @@ -107,9 +107,9 @@ jobs:
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}

- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@v5.12.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@v5.13.0
- name: Regenerate helm docs if necessary
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.12.0
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.13.0
with:
pre-commit-args: helm-docs || true
skip_checkout: "true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-compose-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/verify-compose@v5.12.0
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/verify-compose@v5.13.0
with:
compose_file_path: docker-compose/community-docker-compose.yml
10 changes: 8 additions & 2 deletions .github/workflows/docker-compose-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
- master
- release/**

concurrency:
group: compose-ent-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
build_vars:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,8 +52,10 @@ jobs:
&& github.event.pull_request.head.user.login == 'Alfresco'
)
steps:
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/verify-compose@v5.12.0
- name: Verify docker-compose
uses: >-
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/verify-compose@v5.13.0
timeout-minutes: 10
with:
compose_file_path: docker-compose/${{ matrix.compose_file }}
quay_username: ${{ secrets.QUAY_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Setup cluster
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v5.12.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v5.13.0
with:
ingress-nginx-ref: controller-v1.8.2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
password: ${{ secrets.QUAY_PASSWORD }}

- name: Setup cluster
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v5.12.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v5.13.0
with:
ingress-nginx-ref: controller-v1.8.2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
! grep -e "-alpha" -e "-SNAPSHOT" helm/${{ matrix.charts }}/Chart.yaml
- name: Publish chart
uses: >-
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/publish-chart@v5.12.0
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/publish-chart@v5.13.0
with:
chart_name: ${{ matrix.charts }}
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/helm-static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@v5.12.0
Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@v5.13.0
with:
chart-dir: helm/${{ matrix.charts.name }}
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/helm-plugin@v5.12.0
Alfresco/alfresco-build-tools/.github/actions/helm-plugin@v5.13.0
with:
plugin_url: https://github.com/helm-unittest/helm-unittest
- run: |
Expand All @@ -58,11 +58,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@v5.12.0
Alfresco/alfresco-build-tools/.github/actions/helm-build-chart@v5.13.0
with:
chart-dir: helm/${{ matrix.charts.name }}
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/helm-template-yamllint@v5.12.0
Alfresco/alfresco-build-tools/.github/actions/helm-template-yamllint@v5.13.0
with:
chart-dir: helm/${{ matrix.charts.name }}
helm-options: --values tests/values/test_values.yaml
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.12.0
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.13.0
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@v5.12.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@v5.13.0
- name: Add dependency chart repos
run: |
helm repo add alfresco-helm-charts https://alfresco.github.io/alfresco-helm-charts
Expand Down
9 changes: 9 additions & 0 deletions docker-compose/7.0.N-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#
# Using version 2 as 3 does not support resource constraint options
# (cpu_*, mem_* limits) for non swarm mode in Compose
#
# Java processes requires setting -XX:MaxRAM= due to cgroupv2 changes in recent Linux kernels
# https://hub.alfresco.com/t5/alfresco-content-services-blog/acs-containers-and-cgroup-v2-in-acs-up-to-7-2/ba-p/318039
version: "2"
services:
alfresco:
Expand Down Expand Up @@ -55,13 +58,15 @@ services:
-Ddsync.service.uris=http://localhost:9090/alfresco
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1700m
transform-router:
mem_limit: 512m
image: quay.io/alfresco/alfresco-transform-router:1.4.1
environment:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=512m
ACTIVEMQ_URL: nio://activemq:61616
CORE_AIO_URL: http://transform-core-aio:8090
FILE_STORE_URL: >-
Expand All @@ -77,6 +82,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1536m
ACTIVEMQ_URL: "nio://activemq:61616"
FILE_STORE_URL: >-
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
Expand All @@ -91,6 +97,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=512m
scheduler.content.age.millis: 86400000
scheduler.cleanup.interval: 86400000
ports:
Expand All @@ -106,6 +113,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1g
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
Expand Down Expand Up @@ -177,6 +185,7 @@ services:
-Ddw.server.applicationConnectors[0].type=http
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1g
ports:
- "9090:9090"
volumes:
Expand Down
9 changes: 9 additions & 0 deletions docker-compose/7.1.N-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#
# Using version 2 as 3 does not support resource constraint options
# (cpu_*, mem_* limits) for non swarm mode in Compose
#
# Java processes requires setting -XX:MaxRAM= due to cgroupv2 changes in recent Linux kernels
# https://hub.alfresco.com/t5/alfresco-content-services-blog/acs-containers-and-cgroup-v2-in-acs-up-to-7-2/ba-p/318039
version: "2"
services:
alfresco:
Expand Down Expand Up @@ -55,13 +58,15 @@ services:
-Ddsync.service.uris=http://localhost:9090/alfresco
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1900m
transform-router:
mem_limit: 512m
image: quay.io/alfresco/alfresco-transform-router:2.1.1
environment:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=512m
ACTIVEMQ_URL: nio://activemq:61616
CORE_AIO_URL: http://transform-core-aio:8090
FILE_STORE_URL: >-
Expand All @@ -77,6 +82,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1536m
ACTIVEMQ_URL: nio://activemq:61616
FILE_STORE_URL: >-
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
Expand All @@ -91,6 +97,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=512m
scheduler.content.age.millis: 86400000
scheduler.cleanup.interval: 86400000
ports:
Expand All @@ -106,6 +113,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1g
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
Expand Down Expand Up @@ -178,6 +186,7 @@ services:
-Ddw.server.applicationConnectors[0].type=http
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1g
ports:
- "9090:9090"
volumes:
Expand Down
9 changes: 9 additions & 0 deletions docker-compose/7.2.N-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#
# Using version 2 as 3 does not support resource constraint options
# (cpu_*, mem_* limits) for non swarm mode in Compose
#
# Java processes requires setting -XX:MaxRAM= due to cgroupv2 changes in recent Linux kernels
# https://hub.alfresco.com/t5/alfresco-content-services-blog/acs-containers-and-cgroup-v2-in-acs-up-to-7-2/ba-p/318039
version: "2"
services:
alfresco:
Expand Down Expand Up @@ -56,13 +59,15 @@ services:
-Ddsync.service.uris=http://localhost:9090/alfresco
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1900m
transform-router:
mem_limit: 512m
image: quay.io/alfresco/alfresco-transform-router:2.1.1
environment:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=512m
ACTIVEMQ_URL: nio://activemq:61616
CORE_AIO_URL: http://transform-core-aio:8090
FILE_STORE_URL: >-
Expand All @@ -78,6 +83,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1536m
ACTIVEMQ_URL: nio://activemq:61616
FILE_STORE_URL: >-
http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file
Expand All @@ -92,6 +98,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=512m
scheduler.content.age.millis: 86400000
scheduler.cleanup.interval: 86400000
ports:
Expand All @@ -107,6 +114,7 @@ services:
JAVA_OPTS: >-
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1g
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
Expand Down Expand Up @@ -191,6 +199,7 @@ services:
-Ddw.server.applicationConnectors[0].type=http
-XX:MinRAMPercentage=50
-XX:MaxRAMPercentage=80
-XX:MaxRAM=1g
ports:
- "9090:9090"
volumes:
Expand Down
Loading