From 69e0cc12b43e11a3c00dd0b8c4b1ae0e8794a5de Mon Sep 17 00:00:00 2001 From: prandla Date: Thu, 24 Jul 2025 00:45:24 +0300 Subject: [PATCH 1/2] Use github actions cache to cache docker layers --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ed93b499e..50ff4dd489 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,9 +15,17 @@ jobs: run: | mount | grep cgroup + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build docker image - run: | - docker compose -p cms -f docker/docker-compose.test.yml build testcms + uses: docker/build-push-action@v6 + with: + # This action used to be `docker compose -p cms build testcms`, so the tag name is cms-testcms. + tags: cms-testcms + load: true + cache-from: type=gha + cache-to: type=gha - name: Run tests run: | From 93eeded60a0ed331a707c9aba0eaa2e754018244 Mon Sep 17 00:00:00 2001 From: prandla Date: Thu, 24 Jul 2025 01:17:10 +0300 Subject: [PATCH 2/2] Make functional tests more verbose --- docker/_cms-test-internal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/_cms-test-internal.sh b/docker/_cms-test-internal.sh index 6608e5ef47..a78a42b4b6 100755 --- a/docker/_cms-test-internal.sh +++ b/docker/_cms-test-internal.sh @@ -13,7 +13,7 @@ dropdb --host=testdb --username=postgres cmsdbfortesting createdb --host=testdb --username=postgres cmsdbfortesting cmsInitDB -cmsRunFunctionalTests -v --coverage codecov/functionaltests.xml +cmsRunFunctionalTests -vvv --coverage codecov/functionaltests.xml FUNC=$? # This check is needed because otherwise failing unit tests aren't reported in