From eb13630d2f2058ef92a2bf5457909cb64f3940c7 Mon Sep 17 00:00:00 2001 From: "marcel.henselin" Date: Fri, 27 Feb 2026 10:08:09 +0000 Subject: [PATCH 1/3] feat: test STACKIT runner (#78) Signed-off-by: marcel.henselin ## Description relates to #1234 ## Checklist - [ ] Issue was linked above - [ ] Code format was applied: `make fmt` - [ ] Examples were added / adjusted (see `examples/` directory) - [x] Docs are up-to-date: `make generate-docs` (will be checked by CI) - [ ] Unit tests got implemented or updated - [ ] Acceptance tests got implemented or updated (see e.g. [here](https://github.com/stackitcloud/terraform-provider-stackit/blob/f5f99d170996b208672ae684b6da53420e369563/stackit/internal/services/dns/dns_acc_test.go)) - [x] Unit tests are passing: `make test` (will be checked by CI) - [x] No linter issues: `make lint` (will be checked by CI) Reviewed-on: https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/pulls/78 Co-authored-by: marcel.henselin Co-committed-by: marcel.henselin --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f229dcb4..e747e730 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,39 @@ env: CODE_COVERAGE_ARTIFACT_NAME: "code-coverage" jobs: + runner_test: + name: "Test STACKIT runner" + runs-on: stackit-docker + steps: + - name: Install needed tools + run: | + apt-get -y -qq update + apt-get -y -qq install jq python3 python3-pip python-is-python3 s3cmd git make wget + + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Install go tools + run: | + go install golang.org/x/tools/cmd/goimports@latest + go install github.com/hashicorp/terraform-plugin-codegen-framework/cmd/tfplugingen-framework@latest + go install github.com/hashicorp/terraform-plugin-codegen-openapi/cmd/tfplugingen-openapi@latest + + - name: Setup JAVA + uses: actions/setup-java@v5 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '21' + + - name: Checkout + uses: actions/checkout@v6 + + - name: Run build pkg directory + run: | + go run cmd/main.go build + publish_test: name: "Test readiness for publishing provider" needs: config From 07458c5677e0e9809d9aac2932547a877c3066dc Mon Sep 17 00:00:00 2001 From: "marcel.henselin" Date: Fri, 27 Feb 2026 10:20:02 +0000 Subject: [PATCH 2/3] feat: add runner stats (#79) Signed-off-by: marcel.henselin ## Description relates to #1234 ## Checklist - [ ] Issue was linked above - [ ] Code format was applied: `make fmt` - [ ] Examples were added / adjusted (see `examples/` directory) - [x] Docs are up-to-date: `make generate-docs` (will be checked by CI) - [ ] Unit tests got implemented or updated - [ ] Acceptance tests got implemented or updated (see e.g. [here](https://github.com/stackitcloud/terraform-provider-stackit/blob/f5f99d170996b208672ae684b6da53420e369563/stackit/internal/services/dns/dns_acc_test.go)) - [x] Unit tests are passing: `make test` (will be checked by CI) - [x] No linter issues: `make lint` (will be checked by CI) Reviewed-on: https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/pulls/79 Co-authored-by: marcel.henselin Co-committed-by: marcel.henselin --- .github/workflows/runnerstats.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/runnerstats.yaml diff --git a/.github/workflows/runnerstats.yaml b/.github/workflows/runnerstats.yaml new file mode 100644 index 00000000..330e6e0f --- /dev/null +++ b/.github/workflows/runnerstats.yaml @@ -0,0 +1,29 @@ +name: Runner stats + +on: + workflow_dispatch: + +jobs: + stats-own: + name: "Get own runner stats" + runs-on: ubuntu-latest + steps: + - name: Install needed tools + run: | + apt-get -y -qq update + apt-get -y -qq install inxi + + - name: Show stats + run: inxi + + stats-stackit: + name: "Get STACKIT runner stats" + runs-on: stackit-docker + steps: + - name: Install needed tools + run: | + apt-get -y -qq update + apt-get -y -qq install inxi + + - name: Show stats + run: inxi From 635a9abf205c28890dd270a4b6312eb4be13da3e Mon Sep 17 00:00:00 2001 From: "marcel.henselin" Date: Fri, 27 Feb 2026 10:25:10 +0000 Subject: [PATCH 3/3] fix: disable shell color in runnerstats (#80) Signed-off-by: marcel.henselin ## Description relates to #1234 ## Checklist - [ ] Issue was linked above - [ ] Code format was applied: `make fmt` - [ ] Examples were added / adjusted (see `examples/` directory) - [x] Docs are up-to-date: `make generate-docs` (will be checked by CI) - [ ] Unit tests got implemented or updated - [ ] Acceptance tests got implemented or updated (see e.g. [here](https://github.com/stackitcloud/terraform-provider-stackit/blob/f5f99d170996b208672ae684b6da53420e369563/stackit/internal/services/dns/dns_acc_test.go)) - [x] Unit tests are passing: `make test` (will be checked by CI) - [x] No linter issues: `make lint` (will be checked by CI) Reviewed-on: https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/pulls/80 Co-authored-by: marcel.henselin Co-committed-by: marcel.henselin --- .github/workflows/runnerstats.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runnerstats.yaml b/.github/workflows/runnerstats.yaml index 330e6e0f..08190d4c 100644 --- a/.github/workflows/runnerstats.yaml +++ b/.github/workflows/runnerstats.yaml @@ -14,7 +14,7 @@ jobs: apt-get -y -qq install inxi - name: Show stats - run: inxi + run: inxi -c 0 stats-stackit: name: "Get STACKIT runner stats" @@ -26,4 +26,4 @@ jobs: apt-get -y -qq install inxi - name: Show stats - run: inxi + run: inxi -c 0