From 47891d1cbb3928a7e32ed95ad351b814f4f07c15 Mon Sep 17 00:00:00 2001 From: Chai Bot Date: Tue, 1 Sep 2026 09:47:23 +0000 Subject: [PATCH] Remove unused upstream .github/workflows The upstream GitHub Actions workflows are not used downstream (OpenShift CI uses Prow/ci-operator). The syncbot is being updated (rhobs/syncbot#163) to drop .github/workflows post-merge, so removing it now avoids merge conflicts. --- .github/workflows/build-release-branch.yml | 27 ------- .github/workflows/ci.yml | 88 --------------------- .github/workflows/container_description.yml | 61 -------------- .github/workflows/golangci-lint.yml | 12 --- .github/workflows/govulncheck.yml | 24 ------ .github/workflows/mixin.yml | 24 ------ .github/workflows/publish.yml | 37 --------- .github/workflows/release.yml | 46 ----------- .github/workflows/stale.yml | 31 -------- .github/workflows/ui-ci.yml | 38 --------- 10 files changed, 388 deletions(-) delete mode 100644 .github/workflows/build-release-branch.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/container_description.yml delete mode 100644 .github/workflows/golangci-lint.yml delete mode 100644 .github/workflows/govulncheck.yml delete mode 100644 .github/workflows/mixin.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/stale.yml delete mode 100644 .github/workflows/ui-ci.yml diff --git a/.github/workflows/build-release-branch.yml b/.github/workflows/build-release-branch.yml deleted file mode 100644 index 5342c37960..0000000000 --- a/.github/workflows/build-release-branch.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Build release branch -on: # yamllint disable-line rule:truthy - push: - branches: - - release-* - workflow_dispatch: -permissions: - contents: read - -jobs: - ci: - name: Run ci - uses: ./.github/workflows/ci.yml - - build: - name: Build Alertmanager for all architectures - runs-on: ubuntu-latest - strategy: - matrix: - thread: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - needs: ci - steps: - - uses: prometheus/promci/build@13941414d409d227afd67544e5d306827db5a1a2 # v0.8.5 - with: - parallelism: 12 - thread: ${{ matrix.thread }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 238d7c4c7c..0000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,88 +0,0 @@ ---- -name: CI -on: # yamllint disable-line rule:truthy - pull_request: - workflow_call: -jobs: - test_frontend: - name: Test alertmanager frontend - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 - with: - node-version-file: './.nvmrc' - cache: 'npm' - cache-dependency-path: | - .nvmrc - **/package-lock.json - - run: make clean - - run: make all - working-directory: ./ui/app - - run: make assets - - run: make apiv2 - - run: git diff --exit-code - - run: make assets-tarball - - uses: prometheus/promci-artifacts/save@f9a587dbc0b2c78a0c54f8ad1cde71ea29a4b76f # v0.1.0 - with: - directory: .tarballs - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.6.2 - with: - name: ui-dist - path: ui/app/dist - include-hidden-files: true - - build: - name: Build Alertmanager for common architectures - needs: [test_frontend] - runs-on: ubuntu-latest - strategy: - matrix: - thread: [0, 1, 2] - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.0.0 - with: - persist-credentials: false - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: ui-dist - path: ui/app/dist - - uses: prometheus/promci/build@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2 - with: - promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386" - parallelism: 3 - thread: ${{ matrix.thread }} - - test: - name: Test - runs-on: ubuntu-latest - needs: [test_frontend] - # Whenever the Go version is updated here, .promu.yml - # should also be updated. - container: - - image: quay.io/prometheus/golang-builder:1.26-base - services: - maildev-noauth: - image: maildev/maildev:2.2.1 - maildev-auth: - image: maildev/maildev:2.2.1 - env: - MAILDEV_INCOMING_USER: user - MAILDEV_INCOMING_PASS: pass - env: - EMAIL_NO_AUTH_CONFIG: testdata/noauth.yml - EMAIL_AUTH_CONFIG: testdata/auth.yml - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: ui-dist - path: ui/app/dist - - uses: prometheus/promci-setup@5af30ba8c199a91d6c04ebdc3c48e630e355f62d # v0.1.0 - - run: make - - run: git diff --exit-code diff --git a/.github/workflows/container_description.yml b/.github/workflows/container_description.yml deleted file mode 100644 index d7b879f9c7..0000000000 --- a/.github/workflows/container_description.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -name: Push README to Docker Hub -on: - push: - paths: - - "README.md" - - "README-containers.md" - - ".github/workflows/container_description.yml" - branches: [ main, master ] - -permissions: - contents: read - -jobs: - PushDockerHubReadme: - runs-on: ubuntu-latest - name: Push README to Docker Hub - if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. - steps: - - name: git checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Set docker hub repo name - run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV - - name: Push README to Dockerhub - uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1 - env: - DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }} - DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }} - with: - destination_container_repo: ${{ env.DOCKER_REPO_NAME }} - provider: dockerhub - short_description: ${{ env.DOCKER_REPO_NAME }} - # Empty string results in README-containers.md being pushed if it - # exists. Otherwise, README.md is pushed. - readme_file: '' - - PushQuayIoReadme: - runs-on: ubuntu-latest - name: Push README to quay.io - if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. - steps: - - name: git checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Set quay.io org name - run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV - - name: Set quay.io repo name - run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV - - name: Push README to quay.io - uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1 - env: - DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }} - with: - destination_container_repo: ${{ env.DOCKER_REPO_NAME }} - provider: quay - # Empty string results in README-containers.md being pushed if it - # exists. Otherwise, README.md is pushed. - readme_file: '' diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml deleted file mode 100644 index b10d4c2089..0000000000 --- a/.github/workflows/golangci-lint.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: golangci-lint -on: # yamllint disable-line rule:truthy - pull_request: - workflow_call: - -jobs: - lint: - name: lint - runs-on: ubuntu-latest - steps: - - run: echo "Lint is run as part of the CI workflow." diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml deleted file mode 100644 index 1e13fbd990..0000000000 --- a/.github/workflows/govulncheck.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: govulncheck -on: - pull_request: - paths: - - VERSION - - .github/workflows/govulncheck.yml - push: - branches: - - main - - master - schedule: - - cron: '33 2 * * *' - -permissions: - contents: read - -jobs: - govulncheck: - runs-on: ubuntu-latest - name: Run govulncheck - steps: - - id: govulncheck - uses: golang/govulncheck-action@31f7c5463448f83528bd771c2d978d940080c9fd # v1.0.4-unreleased diff --git a/.github/workflows/mixin.yml b/.github/workflows/mixin.yml deleted file mode 100644 index 5280dd648d..0000000000 --- a/.github/workflows/mixin.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: mixin -on: - pull_request: - paths: - - "doc/alertmanager-mixin/**" - -jobs: - mixin: - name: mixin-lint - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: install Go - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 - with: - go-version: 1.26.x - # pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged. - - run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@2282201396b69055bb0f92f187049027a16d2130 - - run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest - - run: go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest - - run: make -C doc/alertmanager-mixin lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index d9e78c774b..0000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -name: Publish -on: # yamllint disable-line rule:truthy - push: - branches: - - main -jobs: - ci: - name: Run ci - uses: ./.github/workflows/ci.yml - - build: - name: Build Alertmanager for all architectures - runs-on: ubuntu-latest - strategy: - matrix: - thread: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - needs: ci - steps: - - uses: prometheus/promci/build@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2 - with: - parallelism: 12 - thread: ${{ matrix.thread }} - publish_main: - name: Publish main branch artefacts - runs-on: ubuntu-latest - permissions: - packages: write - needs: build - steps: - - uses: prometheus/promci/publish_main@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2 - with: - docker_hub_login: ${{ secrets.docker_hub_login }} - docker_hub_password: ${{ secrets.docker_hub_password }} - ghcr_io_password: ${{ github.token }} - quay_io_login: ${{ secrets.quay_io_login }} - quay_io_password: ${{ secrets.quay_io_password }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index b2b9177620..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Release -on: # yamllint disable-line rule:truthy - push: - tags: - - v* -jobs: - ci: - name: Run ci - uses: ./.github/workflows/ci.yml - - build: - name: Build Alertmanager for all architectures - runs-on: ubuntu-latest - strategy: - matrix: - thread: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - needs: ci - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: ui-dist - path: ui/app/dist - - uses: prometheus/promci/build@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2 - with: - parallelism: 12 - thread: ${{ matrix.thread }} - publish_release: - name: Publish release artefacts - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - needs: build - steps: - - uses: prometheus/promci/publish_release@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2 - with: - docker_hub_login: ${{ secrets.docker_hub_login }} - docker_hub_password: ${{ secrets.docker_hub_password }} - ghcr_io_password: ${{ github.token }} - quay_io_login: ${{ secrets.quay_io_login }} - quay_io_password: ${{ secrets.quay_io_password }} - github_token: ${{ github.token }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index b29097c400..0000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Stale Check -on: - workflow_dispatch: {} - schedule: - - cron: '16 22 * * *' -permissions: - issues: write - pull-requests: write -jobs: - stale: - if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. - runs-on: ubuntu-latest - steps: - - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - # opt out of defaults to avoid marking issues as stale and closing them - # https://github.com/actions/stale#days-before-close - # https://github.com/actions/stale#days-before-stale - days-before-stale: -1 - days-before-close: -1 - # Setting it to empty string to skip comments. - # https://github.com/actions/stale#stale-pr-message - # https://github.com/actions/stale#stale-issue-message - stale-pr-message: '' - stale-issue-message: '' - operations-per-run: 30 - # override days-before-stale, for only marking the pull requests as stale - days-before-pr-stale: 60 - stale-pr-label: stale - exempt-pr-labels: keepalive diff --git a/.github/workflows/ui-ci.yml b/.github/workflows/ui-ci.yml deleted file mode 100644 index 4b3ef3efb8..0000000000 --- a/.github/workflows/ui-ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: UI CI - -on: - pull_request: - branches: - - '**' - paths: - - '.nvmrc' - - 'ui/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: true - -jobs: - test_mantine_ui: - name: Test mantine-ui - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./ui/mantine-ui - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 - with: - node-version-file: './.nvmrc' - cache: 'npm' - cache-dependency-path: | - .nvmrc - **/package-lock.json - - name: Install dependencies - run: npm ci - - name: Run build - run: npm run build - - name: Run tests - run: npm test