From fb6fcc4b37f45b97fd4978f92769a345557ba5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 20:46:16 +0200 Subject: [PATCH 1/8] Temporarily removing all builds except for the main one --- .github/workflows/build-and-test.yml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7d3b44e8..2d402603 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,29 +16,3 @@ jobs: machine-types: "['gitrunners-ubuntu-2204-x64-4vcpu']" timeout-minutes: 15 build-configuration: Debug - - build-and-test-standard-runners: - if: github.ref_name == github.event.repository.default_branch - name: Build and Test (standard runners) - uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev - with: - timeout-minutes: 30 - build-configuration: Debug - - build-and-test-nuget-test: - name: Build and Test - NuGetTest solution - uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev - with: - build-directory: NuGetTest - timeout-minutes: 10 - - post-pull-request-checks-automation: - name: Post Pull Request Checks Automation - needs: [build-and-test-larger-runners, build-and-test-nuget-test] - if: github.event.pull_request != '' - uses: Lombiq/GitHub-Actions/.github/workflows/post-pull-request-checks-automation.yml@dev - secrets: - JIRA_BASE_URL: ${{ secrets.DEFAULT_JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.DEFAULT_JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.DEFAULT_JIRA_API_TOKEN }} - MERGE_TOKEN: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }} From d26a296faf9d8609b511f41d26fd7801b5fed195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 20:46:42 +0200 Subject: [PATCH 2/8] Matrix to test 5 GitRunners 4-vCPU, 5 BuildJet 4-vCPU, and 5 BuildJet 8-vCPU builds --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2d402603..0b24c0c7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,6 +13,6 @@ jobs: name: Build and Test (larger runners) uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev with: - machine-types: "['gitrunners-ubuntu-2204-x64-4vcpu']" + machine-types: "['gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204']" timeout-minutes: 15 build-configuration: Debug From d9eaf21b0c2a7319ca9ba2590ba3c8cb9e81432e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 21:14:32 +0200 Subject: [PATCH 3/8] Dummy change to kick off build --- .github/workflows/build-and-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 0b24c0c7..9e16c994 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,3 +16,4 @@ jobs: machine-types: "['gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204']" timeout-minutes: 15 build-configuration: Debug + From 46b8ad68744c151547e6c9be9dc0ad0956451149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 21:14:38 +0200 Subject: [PATCH 4/8] Revert "Dummy change to kick off build" This reverts commit d9eaf21b0c2a7319ca9ba2590ba3c8cb9e81432e. --- .github/workflows/build-and-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9e16c994..0b24c0c7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,4 +16,3 @@ jobs: machine-types: "['gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204']" timeout-minutes: 15 build-configuration: Debug - From 9955c01ea2a3fcd4992526424373e26901cdae2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 21:58:59 +0200 Subject: [PATCH 5/8] Trying BuildJet caching --- .github/workflows/build-and-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 0b24c0c7..57adeb1f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,8 +11,10 @@ jobs: build-and-test-larger-runners: if: github.ref_name != github.event.repository.default_branch name: Build and Test (larger runners) - uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@issue/INFRA-156 with: - machine-types: "['gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'gitrunners-ubuntu-2204-x64-4vcpu', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204', 'buildjet-8vcpu-ubuntu-2204']" + machine-types: "['buildjet-4vcpu-ubuntu-2204']" timeout-minutes: 15 build-configuration: Debug + build-enable-nuget-caching: "true" + build-enable-npm-caching: "true" From 8acdd466aec71276a6717bd6f402790ac3182a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 22:05:13 +0200 Subject: [PATCH 6/8] Running more builds to test a warm cache --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 57adeb1f..ffc2ccc4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,7 +13,7 @@ jobs: name: Build and Test (larger runners) uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@issue/INFRA-156 with: - machine-types: "['buildjet-4vcpu-ubuntu-2204']" + machine-types: "['buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204']" timeout-minutes: 15 build-configuration: Debug build-enable-nuget-caching: "true" From 4a198263a2d38004b5b489bdea06b2875159ed49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 24 Oct 2023 23:26:56 +0200 Subject: [PATCH 7/8] Putting back all jobs --- .github/workflows/build-and-test.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ffc2ccc4..9d4df295 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,8 +13,34 @@ jobs: name: Build and Test (larger runners) uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@issue/INFRA-156 with: - machine-types: "['buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204', 'buildjet-4vcpu-ubuntu-2204']" + machine-types: "['buildjet-4vcpu-ubuntu-2204']" timeout-minutes: 15 build-configuration: Debug build-enable-nuget-caching: "true" build-enable-npm-caching: "true" + + build-and-test-standard-runners: + if: github.ref_name == github.event.repository.default_branch + name: Build and Test (standard runners) + uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev + with: + timeout-minutes: 30 + build-configuration: Debug + + build-and-test-nuget-test: + name: Build and Test - NuGetTest solution + uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev + with: + build-directory: NuGetTest + timeout-minutes: 10 + + post-pull-request-checks-automation: + name: Post Pull Request Checks Automation + needs: [build-and-test-larger-runners, build-and-test-nuget-test] + if: github.event.pull_request != '' + uses: Lombiq/GitHub-Actions/.github/workflows/post-pull-request-checks-automation.yml@dev + secrets: + JIRA_BASE_URL: ${{ secrets.DEFAULT_JIRA_BASE_URL }} + JIRA_USER_EMAIL: ${{ secrets.DEFAULT_JIRA_USER_EMAIL }} + JIRA_API_TOKEN: ${{ secrets.DEFAULT_JIRA_API_TOKEN }} + MERGE_TOKEN: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }} From d5761c07c55c38da24e05e8d03462715c1ab0c94 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 8 Nov 2023 10:04:56 +0100 Subject: [PATCH 8/8] Restoring workflow branch reference to dev --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9d4df295..6e9ecbcd 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,7 +11,7 @@ jobs: build-and-test-larger-runners: if: github.ref_name != github.event.repository.default_branch name: Build and Test (larger runners) - uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@issue/INFRA-156 + uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-dotnet.yml@dev with: machine-types: "['buildjet-4vcpu-ubuntu-2204']" timeout-minutes: 15