diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index d4661e85174..00000000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,130 +0,0 @@ -name: CI - -on: - push: - branches: - - main - - 'release-*' - pull_request: - branches: - - main - - 'release-*' - paths-ignore: - - "docs/**" - - "**/*.md" - - ".github/ISSUE_TEMPLATE/*" - - ".goreleaser.yaml" - - ".github/workflows/docs-gen-and-push.yaml" - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -# NOTE!!! -# -# If you add a job here that is a REQUIRED status check in GitHub, you MUST add a job with the same name to ci-docs-only.yaml -# -# NOTE!!! - -env: - # etcd uses fsync by default, disable it for running on github actions to avoid disk contention - # xref: https://github.com/kcp-dev/kcp/pull/435/commits/064a517747d69c2cd8f7f8b4a595ad909e595c89 - UNSAFE_E2E_HACK_DISABLE_ETCD_FSYNC: true - # always enable the Kubernetes cache mutation detector when running in CI, this guarantees to catch - # potentiall issues with controllers not properly copying objects before mutating them. - KUBE_CACHE_MUTATION_DETECTOR: true - -jobs: - e2e-shared-server: - name: e2e-shared-server - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: v1.19 - cache: true - - run: make build - - # Install kind with a local registry - - uses: container-tools/kind-action@v2 - name: Kubernetes KinD Cluster w/local registry - with: - version: v0.17.0 - config: test/e2e/kind/config-calico.yaml - - # Install Calico - - run: |- - kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/release-v3.24/manifests/calico.yaml - kubectl -n kube-system set env daemonset/calico-node FELIX_IGNORELOOSERPF=true - - # Install ko - - run: |- - go install github.com/google/ko@latest - - # wait for Calico to be ready - - run: |- - kubectl wait pods -n kube-system -l k8s-app=calico-node --for=condition=Ready --timeout=90s - - - run: |- - LOG_DIR=/tmp/e2e/shared-server/artifacts ARTIFACT_DIR=/tmp/e2e COUNT=2 SUITES=transparent-multi-cluster:requires-kind \ - ./hack/run-with-prometheus.sh make test-e2e-shared - - - uses: cytopia/upload-artifact-retry-action@v0.1.7 - if: ${{ always() }} - with: - name: e2e-shared-server - path: /tmp/e2e/**/artifacts/ - - - uses: cytopia/upload-artifact-retry-action@v0.1.7 - if: ${{ always() }} - with: - name: e2e-shared-server-metrics - path: /tmp/e2e/**/metrics/ - - e2e-sharded: - name: e2e-sharded - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: v1.19 - cache: true - - run: make build - - # Install kind with a local registry - - uses: container-tools/kind-action@v2 - name: Kubernetes KinD Cluster w/local registry - with: - version: v0.17.0 - config: test/e2e/kind/config-calico.yaml - - # Install Calico - - run: |- - kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/release-v3.24/manifests/calico.yaml - kubectl -n kube-system set env daemonset/calico-node FELIX_IGNORELOOSERPF=true - - # Install ko - - run: |- - go install github.com/google/ko@latest - - # wait for Calico to be ready - - run: |- - kubectl wait pods -n kube-system -l k8s-app=calico-node --for=condition=Ready --timeout=90s - - - run: |- - LOG_DIR=/tmp/e2e/sharded/artifacts ARTIFACT_DIR=/tmp/e2e COUNT=2 SUITES=transparent-multi-cluster:requires-kind \ - ./hack/run-with-prometheus.sh make test-e2e-sharded - - - uses: cytopia/upload-artifact-retry-action@v0.1.7 - if: ${{ always() }} - with: - name: e2e-sharded - path: /tmp/e2e/**/artifacts/ - - - uses: cytopia/upload-artifact-retry-action@v0.1.7 - if: ${{ always() }} - with: - name: e2e-sharded-metrics - path: /tmp/e2e/**/metrics/ diff --git a/test/e2e/framework/config.go b/test/e2e/framework/config.go index c516d9abd8b..0bdbe868260 100644 --- a/test/e2e/framework/config.go +++ b/test/e2e/framework/config.go @@ -103,7 +103,7 @@ func registerFlags(c *testConfig) { flag.StringVar(&c.syncerImage, "syncer-image", "", "The syncer image to use with the pcluster. Requires --pcluster-kubeconfig") flag.StringVar(&c.kcpTestImage, "kcp-test-image", "", "The test image to use with the pcluster. Requires --pcluster-kubeconfig") flag.BoolVar(&c.useDefaultKCPServer, "use-default-kcp-server", false, "Whether to use server configuration from .kcp/admin.kubeconfig.") - flag.StringVar(&c.suites, "suites", "control-plane,transparent-multi-cluster,transparent-multi-cluster:requires-kind", "A comma-delimited list of suites to run.") + flag.StringVar(&c.suites, "suites", "control-plane", "A comma-delimited list of suites to run.") } // WriteLogicalClusterConfig creates a logical cluster config for the given config and