From 1e4e07e1dc2355dd48e4b086c32617b2a91f6a60 Mon Sep 17 00:00:00 2001 From: Mehdi-Bendriss Date: Mon, 29 Jul 2024 19:11:11 +0200 Subject: [PATCH 1/3] self-hosted runners --- .github/workflows/integration.yaml | 2 +- .github/workflows/lint.yaml | 2 +- .github/workflows/publish.yaml | 2 +- .github/workflows/publish_beta.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 194ac2a..3c44a17 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -15,7 +15,7 @@ jobs: uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@v16 integration: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, X64, jammy, large] timeout-minutes: 120 needs: build strategy: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 7472fbd..ee6d260 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -11,7 +11,7 @@ on: jobs: lint: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, X64, jammy, large] timeout-minutes: 5 steps: - name: Checkout repository diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0af9f0a..0a990d5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -21,7 +21,7 @@ jobs: publish: needs: build name: publish - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, X64, jammy, large] timeout-minutes: 15 steps: - name: Checkout repo diff --git a/.github/workflows/publish_beta.yaml b/.github/workflows/publish_beta.yaml index 251a001..1c51298 100644 --- a/.github/workflows/publish_beta.yaml +++ b/.github/workflows/publish_beta.yaml @@ -6,7 +6,7 @@ jobs: uses: ./.github/workflows/build.yaml publish: needs: build - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, X64, jammy, large] timeout-minutes: 5 permissions: packages: write From 0fda8be9577ec88e91a642274c705066f97be686 Mon Sep 17 00:00:00 2001 From: Mehdi-Bendriss Date: Mon, 29 Jul 2024 20:30:43 +0200 Subject: [PATCH 2/3] self-hosted runners --- .github/workflows/integration.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 3c44a17..46402ce 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -31,14 +31,13 @@ jobs: provider: microk8s channel: "1.29-strict/stable" bootstrap-constraints: "cores=2 mem=2G" - juju-channel: 3.1/stable + juju-channel: 3.4/stable # This is needed until # https://bugs.launchpad.net/juju/+bug/1977582 is fixed - bootstrap-options: "--agent-version 3.1.7" + bootstrap-options: "--agent-version 3.4.4" - name: Install rockcraft run: | - sudo snap install rockcraft --classic --revision 1206 - sudo snap refresh rockcraft --hold=forever + sudo snap install rockcraft --classic - name: Download rock package(s) uses: actions/download-artifact@v4 with: @@ -46,8 +45,15 @@ jobs: merge-multiple: true - name: Install tox & poetry run: | + sudo apt-get update + sudo apt-get install python3-pip python3-venv -y --no-install-recommends + python3 -m pip install --user pipx + python3 -m pipx ensurepath + pipx inject poetry poetry-plugin-export pipx install tox pipx install poetry + pipx install charmcraftcache + poetry config warnings.export false - name: Integration Tests run: | sg snap_microk8s -c "tox -e ${{ matrix.env }}" From 95f044e3ab0d5605584312f87aa24cb49f9342eb Mon Sep 17 00:00:00 2001 From: Mehdi-Bendriss Date: Mon, 29 Jul 2024 20:52:51 +0200 Subject: [PATCH 3/3] self-hosted runners --- .github/workflows/integration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 46402ce..6591775 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -49,10 +49,10 @@ jobs: sudo apt-get install python3-pip python3-venv -y --no-install-recommends python3 -m pip install --user pipx python3 -m pipx ensurepath - pipx inject poetry poetry-plugin-export pipx install tox pipx install poetry pipx install charmcraftcache + pipx inject poetry poetry-plugin-export poetry config warnings.export false - name: Integration Tests run: |