From e27190a11e5d569a0252821f1fb8cbb093df68fa Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 11:05:45 -0700 Subject: [PATCH 01/12] testing --- .github/workflows/integration-test.yml | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/integration-test.yml diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 0000000..22309d6 --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,42 @@ +name: Integration testing + +on: + push: + branches: + - main + # pull_request: + # branches: + # - main +jobs: + test: + runs-on: ubuntu-latest + steps: + # Install Tools + - name: Install Miscellaneous Tools + uses: alexellis/arkade-get@493cf9387f80dcbf8a85786c55e04de45c927a5c + with: + kubectl: v1.30.2 + kustomize: v5.3.0 + helm: v3.16.1 + helmfile: v0.161.0 + k3d: v5.7.3 + + - name: Create k3d Cluster + run: k3d cluster create temp + + - name: Apply Manifests Into the Cluster + run: make + + - name: Wait For Jobs to Complete + run: | + kubectl wait \ + --for=condition=complete job --all -A \ + --timeout 4m + + - name: Wait For Pods to be Ready + run: | + kubectl get pods -A + kubectl wait \ + --for=condition=ready pod --all -A \ + --field-selector=status.phase!=Succeeded \ + --timeout 4m \ No newline at end of file From ee777def5e09ca9f20eb7a3af4641bd0d5e1d42e Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 11:15:34 -0700 Subject: [PATCH 02/12] test --- .github/workflows/integration-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 22309d6..66dfba8 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -11,6 +11,8 @@ jobs: test: runs-on: ubuntu-latest steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + # Install Tools - name: Install Miscellaneous Tools uses: alexellis/arkade-get@493cf9387f80dcbf8a85786c55e04de45c927a5c From 77a627167a7211f70324546ba6c0376e47a48119 Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 11:22:02 -0700 Subject: [PATCH 03/12] test --- .github/workflows/integration-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 66dfba8..41b057d 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - + # Install Tools - name: Install Miscellaneous Tools uses: alexellis/arkade-get@493cf9387f80dcbf8a85786c55e04de45c927a5c @@ -41,4 +41,4 @@ jobs: kubectl wait \ --for=condition=ready pod --all -A \ --field-selector=status.phase!=Succeeded \ - --timeout 4m \ No newline at end of file + --timeout 10m \ No newline at end of file From 1f8946df1cd4097cd9beb241731b2f1a2b9b461a Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 12:26:46 -0700 Subject: [PATCH 04/12] trying out integration --- .github/workflows/integration-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 41b057d..6ec5329 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -41,4 +41,4 @@ jobs: kubectl wait \ --for=condition=ready pod --all -A \ --field-selector=status.phase!=Succeeded \ - --timeout 10m \ No newline at end of file + --timeout 4m \ No newline at end of file From 36e8cb04d4706fff92ac6180fcf15350ceb4de5e Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 15:35:36 -0700 Subject: [PATCH 05/12] test --- .github/workflows/integration-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 6ec5329..a1e3450 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -34,6 +34,8 @@ jobs: kubectl wait \ --for=condition=complete job --all -A \ --timeout 4m + + - run: sleep 20 - name: Wait For Pods to be Ready run: | From 15342617643ffe7eec03be47302d9e83ecb3247f Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 15:42:48 -0700 Subject: [PATCH 06/12] test --- .github/workflows/integration-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index a1e3450..8303170 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -33,9 +33,11 @@ jobs: run: | kubectl wait \ --for=condition=complete job --all -A \ + --field-selector=status.phase!=Succeeded --timeout 4m - - run: sleep 20 + # This is to ensure jobs are all complete so they don't get verified wit + - run: sleep 10 - name: Wait For Pods to be Ready run: | From 33a2065e34ab73377e88ce8de812bcd5051d1110 Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 15:43:04 -0700 Subject: [PATCH 07/12] test --- .github/workflows/integration-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 8303170..ec11ef7 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -36,8 +36,8 @@ jobs: --field-selector=status.phase!=Succeeded --timeout 4m - # This is to ensure jobs are all complete so they don't get verified wit - - run: sleep 10 + # # This is to ensure jobs are all complete so they don't get verified wit + # - run: sleep 10 - name: Wait For Pods to be Ready run: | From 6c8946adebd70c7fe2d6b07333679d1204c218f1 Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 15:47:52 -0700 Subject: [PATCH 08/12] test ghr --- .github/workflows/integration-test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index ec11ef7..e030299 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -27,17 +27,15 @@ jobs: run: k3d cluster create temp - name: Apply Manifests Into the Cluster - run: make + run: make ghr - name: Wait For Jobs to Complete run: | kubectl wait \ --for=condition=complete job --all -A \ - --field-selector=status.phase!=Succeeded --timeout 4m - - # # This is to ensure jobs are all complete so they don't get verified wit - # - run: sleep 10 + + - run: sleep 10 - name: Wait For Pods to be Ready run: | From de7f5ecb2decc80c9016e70561fe5c065b4e1982 Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 15:50:57 -0700 Subject: [PATCH 09/12] dora test --- .github/workflows/{integration-test.yml => build-test.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{integration-test.yml => build-test.yml} (95%) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/build-test.yml similarity index 95% rename from .github/workflows/integration-test.yml rename to .github/workflows/build-test.yml index e030299..1f83e7a 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/build-test.yml @@ -1,4 +1,4 @@ -name: Integration testing +name: Build Test on: push: @@ -27,7 +27,7 @@ jobs: run: k3d cluster create temp - name: Apply Manifests Into the Cluster - run: make ghr + run: make dora - name: Wait For Jobs to Complete run: | From 0e3e2777b7e06b86b2828204e59a12a9c9bdf71b Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 15:59:27 -0700 Subject: [PATCH 10/12] test pr --- .github/workflows/build-test.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 1f83e7a..87014ef 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,12 +1,10 @@ name: Build Test on: - push: + pull_request: branches: - main - # pull_request: - # branches: - # - main + jobs: test: runs-on: ubuntu-latest @@ -26,16 +24,18 @@ jobs: - name: Create k3d Cluster run: k3d cluster create temp - - name: Apply Manifests Into the Cluster - run: make dora + - name: Apply Base Manifests Into the Cluster + run: make - - name: Wait For Jobs to Complete - run: | - kubectl wait \ - --for=condition=complete job --all -A \ - --timeout 4m + # - name: Wait For Jobs to Complete + # run: | + # kubectl wait \ + # --for=condition=complete job --all -A \ + # --timeout 4m - - run: sleep 10 + # wait for jobs to be done before checking pod status. + - name: Wait for Jobs to be Complete + run: sleep 10 - name: Wait For Pods to be Ready run: | From c5f00e020d99b2bf3c591053443a46526bad0d38 Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 16:30:10 -0700 Subject: [PATCH 11/12] test dora in prs --- .github/workflows/build-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 87014ef..666b0e1 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -27,6 +27,9 @@ jobs: - name: Apply Base Manifests Into the Cluster run: make + - name: Apply dora manifests + run: make dora + # - name: Wait For Jobs to Complete # run: | # kubectl wait \ From d00a292fd7ee846f4d73deb8e4b89e49d55259c2 Mon Sep 17 00:00:00 2001 From: baserrato Date: Tue, 24 Sep 2024 16:39:19 -0700 Subject: [PATCH 12/12] test traces --- .github/workflows/build-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 666b0e1..766d85e 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -30,6 +30,9 @@ jobs: - name: Apply dora manifests run: make dora + - name: Apply trace + run: make traces + # - name: Wait For Jobs to Complete # run: | # kubectl wait \