From ea62b2852096e96365af3e3d06815a0d8e784e86 Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 11:47:49 -0500 Subject: [PATCH 1/9] WIP --- src/test/e2e/bundle_test.go | 6 ------ src/test/e2e/commands_test.go | 6 ++++++ tasks/tests.yaml | 7 +++++++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/test/e2e/bundle_test.go b/src/test/e2e/bundle_test.go index 6520c150..ae225d25 100644 --- a/src/test/e2e/bundle_test.go +++ b/src/test/e2e/bundle_test.go @@ -20,12 +20,6 @@ import ( "github.com/defenseunicorns/uds-cli/src/config" ) -func zarfPublish(t *testing.T, path string, reg string) { - args := strings.Split(fmt.Sprintf("zarf package publish %s oci://%s --insecure --oci-concurrency=10 -l debug", path, reg), " ") - _, _, err := e2e.UDS(args...) - require.NoError(t, err) -} - func TestUDSCmd(t *testing.T) { _, _, err := e2e.UDS() require.NoError(t, err) diff --git a/src/test/e2e/commands_test.go b/src/test/e2e/commands_test.go index 5a6aa280..bfc153cf 100644 --- a/src/test/e2e/commands_test.go +++ b/src/test/e2e/commands_test.go @@ -25,6 +25,12 @@ import ( // This file contains helpers for running UDS CLI commands (ie. uds create/deploy/etc with various flags and options) +func zarfPublish(t *testing.T, path string, reg string) { + args := strings.Split(fmt.Sprintf("zarf package publish %s oci://%s --insecure --oci-concurrency=10 -l debug", path, reg), " ") + _, _, err := e2e.UDS(args...) + require.NoError(t, err) +} + func createLocal(t *testing.T, bundlePath string, arch string) { cmd := strings.Split(fmt.Sprintf("create %s --insecure --confirm -a %s", bundlePath, arch), " ") _, _, err := e2e.UDS(cmd...) diff --git a/tasks/tests.yaml b/tasks/tests.yaml index 647c7411..aebcdd76 100644 --- a/tasks/tests.yaml +++ b/tasks/tests.yaml @@ -27,6 +27,13 @@ tasks: actions: - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m -run TestTaskRunner + + + - name: run-variable-test + description: only run tests in variable_test.go + actions: + - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m variable_test.go commands_test.go main_test.go + - name: push-test-artifacts description: push artifacts that UDS CLI tests rely on to GHCR actions: From b0fa62903158ebdb8c186c498ce0e19b662ae3b2 Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 12:05:45 -0500 Subject: [PATCH 2/9] chore: run CI tests in parallel --- .../actions/setup-from-previous/action.yaml | 28 +++++ .github/workflows/test-e2e-pr.yaml | 89 ++++++++++++- src/test/e2e/runner_inputs_test.go | 119 ------------------ tasks/tests.yaml | 27 +++- 4 files changed, 133 insertions(+), 130 deletions(-) create mode 100644 .github/actions/setup-from-previous/action.yaml delete mode 100644 src/test/e2e/runner_inputs_test.go diff --git a/.github/actions/setup-from-previous/action.yaml b/.github/actions/setup-from-previous/action.yaml new file mode 100644 index 00000000..b030e2de --- /dev/null +++ b/.github/actions/setup-from-previous/action.yaml @@ -0,0 +1,28 @@ +name: setup-from-previous +description: grabs artifact from a previous job and sets up the env for tests + +runs: + using: composite + steps: + # Checkout the repo and setup the tooling for this job + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + + - name: Download build artifacts + uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 + with: + name: build-artifacts + path: build/ + + - name: Setup golang + uses: ./.github/actions/golang + + - name: Make UDS-CLI executable + shell: bash + run: | + chmod +x build/uds + + - name: Setup K3d + uses: ./.github/actions/k3d diff --git a/.github/workflows/test-e2e-pr.yaml b/.github/workflows/test-e2e-pr.yaml index c5c90b3d..3a0a5678 100644 --- a/.github/workflows/test-e2e-pr.yaml +++ b/.github/workflows/test-e2e-pr.yaml @@ -21,11 +21,16 @@ concurrency: cancel-in-progress: true jobs: - test: + build: runs-on: ubuntu-latest + permissions: + packages: write steps: + # Checkout the repo and setup the tooling for this job - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 - name: Setup golang uses: ./.github/actions/golang @@ -33,15 +38,87 @@ jobs: - name: Install UDS CLI uses: ./.github/actions/install-uds-cli - - name: Build UDS-CLI binary - run: uds run build-cli-linux-amd + - name: Build CLI + run: | + uds run build-cli-linux-amd + + # Upload the contents of the build directory for later stages to use + - name: Upload build artifacts + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + with: + name: build-artifacts + path: build/ + retention-days: 1 + test-bundle: + runs-on: ubuntu-latest + needs: build + steps: + - name: setup-using-previous-job + uses: ./.github/actions/setup-from-previous + + - name: Run e2e tests + run: | + build/uds run test:run-bundle-test --no-progress + + - name: Save logs + if: always() + uses: ./.github/actions/save-logs - - name: Setup K3d - uses: ./.github/actions/k3d + dev-test: + runs-on: ubuntu-latest + needs: build + steps: + - name: setup-using-previous-job + uses: ./.github/actions/setup-from-previous + + - name: Run e2e tests + run: | + build/uds run test:run-dev-test --no-progress + + - name: Save logs + if: always() + uses: ./.github/actions/save-logs + + test-variables: + runs-on: ubuntu-latest + needs: build + steps: + - name: setup-using-previous-job + uses: ./.github/actions/setup-from-previous + + - name: Run e2e tests + run: | + build/uds run test:run-variable-test --no-progress + + - name: Save logs + if: always() + uses: ./.github/actions/save-logs + + test-optional-bundle: + runs-on: ubuntu-latest + needs: build + steps: + - name: setup-using-previous-job + uses: ./.github/actions/setup-from-previous + + - name: Run e2e tests + run: | + build/uds run test:run-optional-bundle-tests --no-progress + + - name: Save logs + if: always() + uses: ./.github/actions/save-logs + + test-vendor: + runs-on: ubuntu-latest + needs: build + steps: + - name: setup-using-previous-job + uses: ./.github/actions/setup-from-previous - name: Run e2e tests run: | - build/uds run test:e2e-no-ghcr-write --no-progress + build/uds run test:run-vendor-tests --no-progress - name: Save logs if: always() diff --git a/src/test/e2e/runner_inputs_test.go b/src/test/e2e/runner_inputs_test.go deleted file mode 100644 index e0a456a1..00000000 --- a/src/test/e2e/runner_inputs_test.go +++ /dev/null @@ -1,119 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2023-Present The UDS Authors - -// Package test provides e2e tests for UDS. -package test - -import ( - "os" - "testing" - - "github.com/stretchr/testify/require" -) - -func TestRunnerInputs(t *testing.T) { - t.Run("test that default values for inputs work when not required", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "has-default-empty", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "default") - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that default values for inputs work when required", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "has-default-and-required-empty", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "default") - require.NotContains(t, stdErr, "{{") - - }) - - t.Run("test that default values for inputs work when required and have values supplied", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "has-default-and-required-supplied", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "supplied-value") - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that inputs that aren't required with no default don't error", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "no-default-empty", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.NotContains(t, stdErr, "has-no-default") - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that inputs with no defaults that aren't required don't error when supplied with a value", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "no-default-supplied", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "success + supplied-value") - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that tasks that require inputs with no defaults error when called without values", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "no-default-and-required-empty", "--file", "src/test/tasks/inputs/tasks.yaml") - require.Error(t, err, stdOut, stdErr) - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that tasks that require inputs with no defaults run when supplied with a value", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "no-default-and-required-supplied", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "supplied-value") - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that when a task is called with extra inputs it warns", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "no-default-and-required-supplied-extra", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "supplied-value") - require.Contains(t, stdErr, "WARNING") - require.Contains(t, stdErr, "does not have an input named extra") - require.NotContains(t, stdErr, "{{") - }) - - t.Run("test that displays a deprecated message", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "deprecated-task", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "WARNING") - require.Contains(t, stdErr, "This input has been marked deprecated: This is a deprecated message") - }) - - t.Run("test that variables can be used as inputs", func(t *testing.T) { - t.Parallel() - - stdOut, stdErr, err := e2e.UDS("run", "variable-as-input", "--file", "src/test/tasks/inputs/tasks.yaml", "--set", "foo=im a variable") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "im a variable") - }) - - t.Run("test that env vars can be used as inputs and take precedence over default vals", func(t *testing.T) { - os.Setenv("UDS_FOO", "im an env var") - stdOut, stdErr, err := e2e.UDS("run", "variable-as-input", "--file", "src/test/tasks/inputs/tasks.yaml") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "im an env var") - }) - - t.Run("test that a --set var has the greatest precedence for inputs", func(t *testing.T) { - os.Setenv("UDS_FOO", "im an env var") - stdOut, stdErr, err := e2e.UDS("run", "variable-as-input", "--file", "src/test/tasks/inputs/tasks.yaml", "--set", "foo=most specific") - require.NoError(t, err, stdOut, stdErr) - require.Contains(t, stdErr, "most specific") - }) -} diff --git a/tasks/tests.yaml b/tasks/tests.yaml index aebcdd76..324ed50e 100644 --- a/tasks/tests.yaml +++ b/tasks/tests.yaml @@ -15,25 +15,42 @@ tasks: - name: e2e-no-ghcr-write description: run e2e tests without writing to GHCR actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m -skip ".*GHCR.*" + - task: run-bundle-test + - task: run-dev-test + - task: run-variable-test + - task: run-optional-bundle-tests + - task: run-vendor-tests - name: e2e-ghcr description: run e2e tests that write to GHCR actions: - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m -run ".*GHCR.*" - - name: e2e-runner - description: run e2e tests for task runner only + - name: run-bundle-test + description: only run tests in bundle_test.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m -run TestTaskRunner - + - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m bundle_test.go commands_test.go main_test.go + - name: run-dev-test + description: only run tests in dev.go + actions: + - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m dev_test.go commands_test.go main_test.go - name: run-variable-test description: only run tests in variable_test.go actions: - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m variable_test.go commands_test.go main_test.go + - name: run-optional-bundle-tests + description: only run tests in optional_bundle_test.go + actions: + - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m optional_bundle_test.go commands_test.go main_test.go + + - name: run-vendor-tests + description: only run tests in zarf_test.go and runner_test.go + actions: + - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m zarf_test.go runner_test commands_test.go main_test.go + - name: push-test-artifacts description: push artifacts that UDS CLI tests rely on to GHCR actions: From f4265103b6da70ec49d25abdd48247553726989e Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 12:07:43 -0500 Subject: [PATCH 3/9] fix log name --- .github/actions/save-logs/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/save-logs/action.yaml b/.github/actions/save-logs/action.yaml index fd5a9aa7..3d9fb369 100644 --- a/.github/actions/save-logs/action.yaml +++ b/.github/actions/save-logs/action.yaml @@ -6,10 +6,10 @@ runs: steps: - name: Fix log permissions run: | - sudo chown $USER /tmp/zarf-*.log || echo "" + sudo chown $USER /tmp/uds-*.log || echo "" shell: bash - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 with: name: debug-log - path: /tmp/zarf-*.log + path: /tmp/uds-*.log From 428e311cad66bdd4b3b973a64b3ed7c80741f5f7 Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 12:15:41 -0500 Subject: [PATCH 4/9] typos and such --- .github/workflows/test-e2e-pr.yaml | 35 +++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-e2e-pr.yaml b/.github/workflows/test-e2e-pr.yaml index 3a0a5678..788cfe34 100644 --- a/.github/workflows/test-e2e-pr.yaml +++ b/.github/workflows/test-e2e-pr.yaml @@ -53,10 +53,15 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - name: setup-using-previous-job uses: ./.github/actions/setup-from-previous - - name: Run e2e tests + - name: Run e2e bundle tests run: | build/uds run test:run-bundle-test --no-progress @@ -68,10 +73,15 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - name: setup-using-previous-job uses: ./.github/actions/setup-from-previous - - name: Run e2e tests + - name: Run e2e dev tests run: | build/uds run test:run-dev-test --no-progress @@ -83,10 +93,15 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - name: setup-using-previous-job uses: ./.github/actions/setup-from-previous - - name: Run e2e tests + - name: Run e2e variable tests run: | build/uds run test:run-variable-test --no-progress @@ -98,10 +113,15 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - name: setup-using-previous-job uses: ./.github/actions/setup-from-previous - - name: Run e2e tests + - name: Run e2e optional bundle tests run: | build/uds run test:run-optional-bundle-tests --no-progress @@ -113,10 +133,15 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - name: setup-using-previous-job uses: ./.github/actions/setup-from-previous - - name: Run e2e tests + - name: Run e2e vendor tests run: | build/uds run test:run-vendor-tests --no-progress From 644bd0c5d0ac1e6d7bdc4e41ef6957ade1c202de Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 12:30:25 -0500 Subject: [PATCH 5/9] more typos and such --- .github/actions/save-logs/action.yaml | 9 +++++++-- .github/workflows/test-e2e-pr.yaml | 12 ++++++++++-- src/test/e2e/commands_test.go | 2 +- tasks/tests.yaml | 2 +- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/actions/save-logs/action.yaml b/.github/actions/save-logs/action.yaml index 3d9fb369..f6bfbc14 100644 --- a/.github/actions/save-logs/action.yaml +++ b/.github/actions/save-logs/action.yaml @@ -1,15 +1,20 @@ name: save-logs description: "Save debug logs" +inputs: + name: + description: "unique name to put in log file" + required: true + runs: using: composite steps: - name: Fix log permissions run: | - sudo chown $USER /tmp/uds-*.log || echo "" + sudo chown $USER /tmp/uds-${{ inputs.name }}.log || echo "" shell: bash - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 with: name: debug-log - path: /tmp/uds-*.log + path: /tmp/uds-${{ inputs.name }}.log diff --git a/.github/workflows/test-e2e-pr.yaml b/.github/workflows/test-e2e-pr.yaml index 788cfe34..ed67ee69 100644 --- a/.github/workflows/test-e2e-pr.yaml +++ b/.github/workflows/test-e2e-pr.yaml @@ -23,8 +23,6 @@ concurrency: jobs: build: runs-on: ubuntu-latest - permissions: - packages: write steps: # Checkout the repo and setup the tooling for this job - name: Checkout @@ -68,6 +66,8 @@ jobs: - name: Save logs if: always() uses: ./.github/actions/save-logs + with: + name: build dev-test: runs-on: ubuntu-latest @@ -88,6 +88,8 @@ jobs: - name: Save logs if: always() uses: ./.github/actions/save-logs + with: + name: dev-test test-variables: runs-on: ubuntu-latest @@ -108,6 +110,8 @@ jobs: - name: Save logs if: always() uses: ./.github/actions/save-logs + with: + name: test-variables test-optional-bundle: runs-on: ubuntu-latest @@ -128,6 +132,8 @@ jobs: - name: Save logs if: always() uses: ./.github/actions/save-logs + with: + name: test-optional-bundle test-vendor: runs-on: ubuntu-latest @@ -148,3 +154,5 @@ jobs: - name: Save logs if: always() uses: ./.github/actions/save-logs + with: + name: test-vendor diff --git a/src/test/e2e/commands_test.go b/src/test/e2e/commands_test.go index bfc153cf..86e6a72c 100644 --- a/src/test/e2e/commands_test.go +++ b/src/test/e2e/commands_test.go @@ -26,7 +26,7 @@ import ( // This file contains helpers for running UDS CLI commands (ie. uds create/deploy/etc with various flags and options) func zarfPublish(t *testing.T, path string, reg string) { - args := strings.Split(fmt.Sprintf("zarf package publish %s oci://%s --insecure --oci-concurrency=10 -l debug", path, reg), " ") + args := strings.Split(fmt.Sprintf("zarf package publish %s oci://%s --insecure --oci-concurrency=10 -l debug --no-progress", path, reg), " ") _, _, err := e2e.UDS(args...) require.NoError(t, err) } diff --git a/tasks/tests.yaml b/tasks/tests.yaml index 324ed50e..8f3448c3 100644 --- a/tasks/tests.yaml +++ b/tasks/tests.yaml @@ -49,7 +49,7 @@ tasks: - name: run-vendor-tests description: only run tests in zarf_test.go and runner_test.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m zarf_test.go runner_test commands_test.go main_test.go + - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m zarf_test.go runner_test.go commands_test.go main_test.go - name: push-test-artifacts description: push artifacts that UDS CLI tests rely on to GHCR From f7c8aae07a4957a220917a549e65c7e2820453c9 Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 12:33:05 -0500 Subject: [PATCH 6/9] remove alpha --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 85050f1b..f1679521 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ [![Build Status](https://img.shields.io/github/actions/workflow/status/defenseunicorns/uds-cli/release.yaml)](https://github.com/defenseunicorns/uds-cli/actions/workflows/release.yaml) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/defenseunicorns/uds-cli/badge)](https://api.securityscorecards.dev/projects/github.com/defenseunicorns/uds-cli) -**:warning: Warning**: UDS-CLI is in early alpha, expect changes to the schema and workflow - ## Table of Contents 1. [Install](#install) From f6ad86977550a1515b97493c2e9fa5076402b551 Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 13:28:03 -0500 Subject: [PATCH 7/9] bump test timeout --- tasks/tests.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/tests.yaml b/tasks/tests.yaml index 8f3448c3..95916b54 100644 --- a/tasks/tests.yaml +++ b/tasks/tests.yaml @@ -29,27 +29,27 @@ tasks: - name: run-bundle-test description: only run tests in bundle_test.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m bundle_test.go commands_test.go main_test.go + - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m bundle_test.go commands_test.go main_test.go - name: run-dev-test description: only run tests in dev.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m dev_test.go commands_test.go main_test.go + - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m dev_test.go commands_test.go main_test.go - name: run-variable-test description: only run tests in variable_test.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m variable_test.go commands_test.go main_test.go + - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m variable_test.go commands_test.go main_test.go - name: run-optional-bundle-tests description: only run tests in optional_bundle_test.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m optional_bundle_test.go commands_test.go main_test.go + - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m optional_bundle_test.go commands_test.go main_test.go - name: run-vendor-tests description: only run tests in zarf_test.go and runner_test.go actions: - - cmd: cd src/test/e2e && go test -failfast -v -timeout 5m zarf_test.go runner_test.go commands_test.go main_test.go + - cmd: cd src/test/e2e && go test -failfast -v -timeout 30m zarf_test.go runner_test.go commands_test.go main_test.go - name: push-test-artifacts description: push artifacts that UDS CLI tests rely on to GHCR From 2940c15c4340943df338448f10544f3078890bbd Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 13:45:49 -0500 Subject: [PATCH 8/9] consistency --- .github/workflows/test-e2e-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-e2e-pr.yaml b/.github/workflows/test-e2e-pr.yaml index ed67ee69..ec710bec 100644 --- a/.github/workflows/test-e2e-pr.yaml +++ b/.github/workflows/test-e2e-pr.yaml @@ -69,7 +69,7 @@ jobs: with: name: build - dev-test: + test-dev: runs-on: ubuntu-latest needs: build steps: From a1eeb584cac5b37d68a74748bd1132cc7480fabd Mon Sep 17 00:00:00 2001 From: unclegedd Date: Wed, 29 May 2024 14:01:13 -0500 Subject: [PATCH 9/9] consistency --- .github/workflows/test-e2e-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-e2e-pr.yaml b/.github/workflows/test-e2e-pr.yaml index ec710bec..c3312893 100644 --- a/.github/workflows/test-e2e-pr.yaml +++ b/.github/workflows/test-e2e-pr.yaml @@ -89,7 +89,7 @@ jobs: if: always() uses: ./.github/actions/save-logs with: - name: dev-test + name: test-dev test-variables: runs-on: ubuntu-latest