From b9c4fca90e8a7a36c693eb74c335ecba0e5ec311 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Mon, 30 Jun 2025 16:48:06 -0700 Subject: [PATCH] remove unused go-compatibility pipeline --- pipelines/go-compatibility/pipeline.yml | 148 ------------------ pipelines/go-compatibility/update-pipeline.sh | 13 -- 2 files changed, 161 deletions(-) delete mode 100644 pipelines/go-compatibility/pipeline.yml delete mode 100755 pipelines/go-compatibility/update-pipeline.sh diff --git a/pipelines/go-compatibility/pipeline.yml b/pipelines/go-compatibility/pipeline.yml deleted file mode 100644 index 8a2f6fa73..000000000 --- a/pipelines/go-compatibility/pipeline.yml +++ /dev/null @@ -1,148 +0,0 @@ -# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 - -display: - - background_image: https://upload.wikimedia.org/wikipedia/commons/6/68/Mirounga_leonina.jpg - -meta: - - build_pinniped: &build_pinniped - config: - platform: linux - inputs: - - name: pinniped-source - run: - path: bash - args: - - "-c" - - | - set -exuo pipefail - go version - cd pinniped-source/ - - # compile all of our code - go build -o /dev/null ./... - - # compile (but don't actually run) all of our tests - go test ./... -run=nothing - -resources: - - - name: daily - type: time - icon: calendar-clock - check_every: 10m - source: - location: America/Los_Angeles - start: 4:00 AM - stop: 5:00 AM - days: [ Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday ] - - - name: pinniped-source - type: git - icon: github - source: - uri: git@github.com:vmware-tanzu/pinniped.git - branch: main - private_key: ((source-repo-deploy-key)) - - - name: go-1.22-image - type: registry-image - icon: docker - check_every: 10m - source: - repository: docker.io/golang - tag: "1.22" - -jobs: - - - name: go-install-cli - public: true # all logs are publicly visible - serial: true - plan: - - get: daily - trigger: true - - task: go-install - config: - platform: linux - image_resource: - type: registry-image - source: - repository: docker.io/golang - run: - path: bash - args: - - "-c" - - | - set -exuo pipefail - go install -v go.pinniped.dev/cmd/pinniped@latest - - # This job attempts to check whether it's possible to depend on our API client submodule. - # It creates a simple test application with go.mod and main.go files, then attempts to compile it. - # - # As of now, this is known to be broken so we've decided to disable this job. - # - name: go-get-submodule - # serial: true - # plan: - # - get: daily - # trigger: true - # - task: go-get - # config: - # platform: linux - # image_resource: - # type: registry-image - # source: - # repository: docker.io/golang - # run: - # path: bash - # args: - # - "-c" - # - | - # set -euo pipefail - # mkdir /work - # cd /work - - # cat << EOF > go.mod - # module testapp - - # go 1.14 - - # require ( - # go.pinniped.dev/generated/1.18/apis v0.0.0-00010101000000-000000000000 - # go.pinniped.dev/generated/1.18/client v0.0.0-20200918195624-2d4d7e588a18 - # ) - - # replace ( - # go.pinniped.dev/generated/1.18/apis v0.0.0-00010101000000-000000000000 => go.pinniped.dev/generated/1.18/apis v0.0.0-20200918195624-2d4d7e588a18 - # ) - # EOF - - # cat << EOF > main.go - # package main - - # import ( - # _ "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" - # _ "go.pinniped.dev/generated/1.18/client/clientset/versioned" - # ) - - # func main() {} - # EOF - - # head -100 go.mod main.go - # set -x - # go mod download - # go build -o testapp main.go - - - name: go-1.22-compatibility - public: true # all logs are publicly visible - serial: true - plan: - - in_parallel: - - get: daily - trigger: true - - get: pinniped-source - - get: go-1.22-image - - task: build - image: go-1.22-image - <<: *build_pinniped diff --git a/pipelines/go-compatibility/update-pipeline.sh b/pipelines/go-compatibility/update-pipeline.sh deleted file mode 100755 index 3114907b6..000000000 --- a/pipelines/go-compatibility/update-pipeline.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 - -set -euo pipefail - -script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -pipeline=$(basename "$script_dir") -source "$script_dir/../../hack/fly-helpers.sh" - -set_pipeline "$pipeline" "$script_dir/pipeline.yml" -ensure_time_resource_has_at_least_one_version "$pipeline" daily