From 7c932c213f19133f7f05acf17e3445714479d21e Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 1 Jun 2023 03:42:06 +0000 Subject: [PATCH 1/4] chore(ci): downgrade windows runners from 2022 to 2019 Per https://github.com/actions/runner-images/issues/7320, the older runners perform better. --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9f238ad30e3d9..3ed1b18d41810 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -244,14 +244,14 @@ jobs: run: ./scripts/check_unstaged.sh test-go: - runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }} + runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || matrix.os == 'windows-2019' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }} timeout-minutes: 20 strategy: matrix: os: - ubuntu-latest - macos-latest - - windows-2022 + - windows-2019 steps: - uses: actions/checkout@v3 From 915253964c113d1485d6b1b994e2abd947cd24af Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 1 Jun 2023 04:15:39 +0000 Subject: [PATCH 2/4] Move to buildjet --- .github/workflows/ci.yaml | 14 +++++++------- .github/workflows/release.yaml | 2 +- .github/workflows/security.yaml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ed1b18d41810..d54e692f3bcf9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ env: jobs: lint: - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} steps: - name: Checkout uses: actions/checkout@v3 @@ -132,7 +132,7 @@ jobs: gen: timeout-minutes: 8 - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} needs: changes if: needs.changes.outputs.docs-only == 'false' steps: @@ -244,7 +244,7 @@ jobs: run: ./scripts/check_unstaged.sh test-go: - runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || matrix.os == 'windows-2019' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }} + runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'buildjet-4vcpu-ubuntu-2204' || matrix.os == 'windows-2019' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }} timeout-minutes: 20 strategy: matrix: @@ -335,7 +335,7 @@ jobs: flags: unittest-go-${{ matrix.os }} test-go-psql: - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} # This timeout must be greater than the timeout set by `go test` in # `make test-postgres` to ensure we receive a trace of running # goroutines. Setting this to the timeout +5m should work quite well @@ -413,7 +413,7 @@ jobs: deploy: name: "deploy" - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} timeout-minutes: 30 needs: changes if: | @@ -532,7 +532,7 @@ jobs: retention-days: 7 test-js: - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} timeout-minutes: 20 steps: - uses: actions/checkout@v3 @@ -574,7 +574,7 @@ jobs: needs: - changes if: needs.changes.outputs.docs-only == 'false' - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} timeout-minutes: 20 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4fb703f3977be..c2ad496652646 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,7 +40,7 @@ env: jobs: release: name: Build and publish - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} env: # Necessary for Docker manifest DOCKER_CLI_EXPERIMENTAL: "enabled" diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index f397bd6ad53c5..8c7bc15dc28f7 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -23,7 +23,7 @@ env: jobs: codeql: - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} steps: - uses: actions/checkout@v3 @@ -57,7 +57,7 @@ jobs: "${{ secrets.SLACK_SECURITY_FAILURE_WEBHOOK_URL }}" trivy: - runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} steps: - uses: actions/checkout@v3 with: From 4de5bae4e214e58f4246d8fc65db7e0672195633 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 1 Jun 2023 04:29:44 +0000 Subject: [PATCH 3/4] Buildjet the caches too --- .github/workflows/ci.yaml | 32 ++++++++++++++++---------------- .github/workflows/release.yaml | 2 +- .github/workflows/security.yaml | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d54e692f3bcf9..e1bf3f3ab0d28 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,7 +69,7 @@ jobs: # Lint our dashboard! - name: Cache node_modules id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules @@ -140,7 +140,7 @@ jobs: - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules @@ -164,13 +164,13 @@ jobs: echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - name: Go Build Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOCACHE }} key: ${{ github.job }}-go-build-${{ hashFiles('**/go.sum', '**/**.go') }} - name: Go Mod Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOMODCACHE }} key: ${{ github.job }}-go-mod-${{ hashFiles('**/go.sum') }} @@ -220,7 +220,7 @@ jobs: - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules @@ -267,13 +267,13 @@ jobs: echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT - name: Go Build Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOCACHE }} key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }} - name: Go Mod Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOMODCACHE }} key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} @@ -356,13 +356,13 @@ jobs: echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - name: Go Build Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOCACHE }} key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum', '**/**.go') }} - name: Go Mod Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOMODCACHE }} key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} @@ -448,20 +448,20 @@ jobs: echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - name: Go Build Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOCACHE }} key: ${{ runner.os }}-release-go-build-${{ hashFiles('**/go.sum') }} - name: Go Mod Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOMODCACHE }} key: ${{ runner.os }}-release-go-mod-${{ hashFiles('**/go.sum') }} - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules @@ -539,7 +539,7 @@ jobs: - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules @@ -581,7 +581,7 @@ jobs: - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules @@ -609,13 +609,13 @@ jobs: echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - name: Go Build Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOCACHE }} key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} - name: Go Mod Cache - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: ${{ steps.go-cache-paths.outputs.GOMODCACHE }} key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c2ad496652646..8b11381050266 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -104,7 +104,7 @@ jobs: - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index 8c7bc15dc28f7..cdad826fe885f 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -69,7 +69,7 @@ jobs: - name: Cache Node id: cache-node - uses: actions/cache@v3 + uses: buildjet/cache@v3 with: path: | **/node_modules From f2e83e24a5e21ae04fac457f3b660e7a85af18ac Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 1 Jun 2023 04:35:40 +0000 Subject: [PATCH 4/4] Change setup actions too --- .github/workflows/ci.yaml | 19 ++++++++++--------- .github/workflows/release.yaml | 3 ++- .github/workflows/security.yaml | 5 +++-- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e1bf3f3ab0d28..7373e10744b61 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,9 +37,10 @@ jobs: uses: actions/checkout@v3 # Install Go! - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: go-version: ${{ env.CODER_GO_VERSION }} + cache: true # Check for any typos! - name: Check for typos @@ -152,7 +153,7 @@ jobs: - name: Install node_modules run: ./scripts/yarn_install.sh - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: cache: false go-version: ${{ env.CODER_GO_VERSION }} @@ -255,7 +256,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: cache: false go-version: ${{ env.CODER_GO_VERSION }} @@ -344,7 +345,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: cache: false go-version: ${{ env.CODER_GO_VERSION }} @@ -436,7 +437,7 @@ jobs: - name: Set up Google Cloud SDK uses: google-github-actions/setup-gcloud@v1 - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: cache: false go-version: ${{ env.CODER_GO_VERSION }} @@ -548,7 +549,7 @@ jobs: restore-keys: | js-${{ runner.os }}- - - uses: actions/setup-node@v3 + - uses: buildjet/setup-node@v3 with: node-version: "16.16.0" @@ -588,7 +589,7 @@ jobs: .eslintcache key: js-${{ runner.os }}-e2e-${{ hashFiles('**/yarn.lock') }} - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: cache: false go-version: ${{ env.CODER_GO_VERSION }} @@ -598,7 +599,7 @@ jobs: terraform_version: 1.1.9 terraform_wrapper: false - - uses: actions/setup-node@v3 + - uses: buildjet/setup-node@v3 with: node-version: "16.16.0" @@ -654,7 +655,7 @@ jobs: # only get 1 commit on shallow checkout. fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: buildjet/setup-node@v3 with: node-version: "16.16.0" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8b11381050266..203a6c05dd49e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -98,9 +98,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: go-version: ${{ env.CODER_GO_VERSION }} + cache: true - name: Cache Node id: cache-node diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index cdad826fe885f..373aa9456e934 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -33,7 +33,7 @@ jobs: languages: go, javascript - name: Setup Go - uses: actions/setup-go@v4 + uses: buildjet/setup-go@v4 with: go-version: ${{ env.CODER_GO_VERSION }} @@ -63,9 +63,10 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-go@v4 + - uses: buildjet/setup-go@v4 with: go-version: ${{ env.CODER_GO_VERSION }} + cache: true - name: Cache Node id: cache-node pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy