diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f9632f42a..52c30378ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -185,10 +185,12 @@ jobs: azure-credentials: ${{ secrets.AZURE_ACI_CREDENTIALS }} tag: ServiceControl - name: Run tests - uses: Particular/run-tests-action@v1.9.0 + uses: Particular/run-tests-action@1c9082d0d2c9b07de57656ab138ba75914ad303a # parallel-auto-and-timing-order, temporary with: projects: ${{ steps.select.outputs.test-projects }} max-parallel: ${{ matrix.max-parallel || 1 }} + # Experiment: these share one database server, so starting the slowest assemblies together may slow them all down. + cache-timings: ${{ !contains(fromJSON('["SqlServer", "PostgreSql"]'), matrix.test-category) }} env: ServiceControl_TESTS_FILTER: ${{ matrix.test-category }} PARTICULARSOFTWARE_LICENSE: ${{ secrets.LICENSETEXT }} diff --git a/.github/workflows/cloud-database-tests.yml b/.github/workflows/cloud-database-tests.yml index db780d16e4..7aa7f8e502 100644 --- a/.github/workflows/cloud-database-tests.yml +++ b/.github/workflows/cloud-database-tests.yml @@ -136,10 +136,12 @@ jobs: - name: Wait for build wait: build - name: Run tests - uses: Particular/run-tests-action@v1.9.0 + uses: Particular/run-tests-action@1c9082d0d2c9b07de57656ab138ba75914ad303a # parallel-auto-and-timing-order, temporary with: projects: ${{ env.PERSISTENCE_PROJECT }};${{ env.ACCEPTANCE_PROJECT }};${{ env.AUDIT_PERSISTENCE_PROJECT }};${{ env.AUDIT_ACCEPTANCE_PROJECT }} max-parallel: 2 + # Targets using the same provider run the same projects, so the project list alone cannot tell their durations apart. + timings-cache-key: ${{ matrix.target }} env: ServiceControl_TESTS_FILTER: ${{ matrix.provider }} PARTICULARSOFTWARE_LICENSE: ${{ secrets.LICENSETEXT }}