From d39f559d6bc2fdce7e1fb431e130762382632506 Mon Sep 17 00:00:00 2001 From: rjsadow Date: Tue, 16 Jan 2024 18:59:13 -0500 Subject: [PATCH] Removing presubmit github actions workflow Signed-off-by: rjsadow --- .github/workflows/test.yml | 107 ------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index cbd3bb0..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,107 +0,0 @@ -name: Test with Kind - -on: - workflow_dispatch: - pull_request: - branches: - - main - -env: - KIND_VERSION: v0.20.0 - K8S_VERSION: v1.29.0 - # Maximum time a dry run test should take to run in seconds - DRYRUN_THRESHOLD: 5 - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.21 - - - name: Lint - run: | - gofmt -l -s $(find . -type f -name '*.go') - if [[ -n $(gofmt -l -s $(find . -type f -name '*.go')) ]]; then exit 1; fi - - - name: Install kind - run: | - curl -Lo ./kind https://kind.sigs.k8s.io/dl/${{ env.KIND_VERSION }}/kind-linux-amd64 - chmod +x ./kind - sudo mv ./kind /usr/local/bin/kind - - - name: Create tmpfs for etcd - run: | - sudo mkdir -p /tmp/etcd - sudo mount -t tmpfs tmpfs /tmp/etcd - - - name: Create kind cluster - run: | - cat <> $GITHUB_ENV - - - name: Check dry run duration - run: | - if [[ ${{ env.DRYRUN_DURATION }} -gt ${{ env.DRYRUN_THRESHOLD }} ]]; then - echo "Focused test took too long to run. Expected less than ${{ env.DRYRUN_THRESHOLD }} seconds, got ${{ env.DRYRUN_DURATION }} seconds" - exit 1 - fi - - - name: Wait for cleanup - timeout-minutes: 5 - run: | - while kubectl get namespace conformance 2>/dev/null; do - echo "Waiting for conformance namespace to be deleted" - sleep 5 - done - - - name: Run a single focused test - run: | - bin/hydrophone --focus 'Simple pod should contain last line of the log' \ - --output-dir ${{ github.workspace }}/results/ \ - --conformance-image registry.k8s.io/conformance:${K8S_VERSION} | tee /tmp/test.log - echo "DURATION=$(grep -oP 'Ran 1 of \d+ Specs in \K[0-9.]+(?= seconds)' /tmp/test.log | cut -d. -f1)" >> $GITHUB_ENV - - - name: Check duration - run: | - if [[ ${{ env.DURATION }} -lt ${{ env.DRYRUN_THRESHOLD }} ]]; then - echo "Focused test exited too quickly, check if dry-run is enabled. Expected more than ${{ env.DRYRUN_THRESHOLD }} seconds, got ${{ env.DURATION }} seconds" - exit 1 - fi - - - name: Archive conformance results - uses: actions/upload-artifact@v3 - with: - name: conformance-results - path: ${{ github.workspace }}/results/