From 2dbc3f83b93a9116094973011896155eab42fec2 Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Fri, 12 May 2023 21:15:05 +0530 Subject: [PATCH 1/9] Create quesst-load-test.yaml Signed-off-by: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> --- .github/workflows/quesst-load-test.yaml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/quesst-load-test.yaml diff --git a/.github/workflows/quesst-load-test.yaml b/.github/workflows/quesst-load-test.yaml new file mode 100644 index 000000000..a57ebd578 --- /dev/null +++ b/.github/workflows/quesst-load-test.yaml @@ -0,0 +1,39 @@ +name: Quest Load mode + +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'helm/**' + - 'assets/**' + - '**.md' + +jobs: + load_test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Rust-Setup + uses: actions/setup-rust@v1 + with: + rust-version: stable + + - name: Required dependencies + run: cargo-build --quiet + + - name: Run load tests + env: + PR_BRANCH: ${{github.event.pull_request.head.ref }} + run: cargo test --features --branch $PR_BRANCH + + - name: Fetch quest file + uses: action/checkout@v3 + with: + repository: parseablehq/quest + path: ./testcases/load.js + + - name: Final Run + run: ./load.js From f41375635ded13bbd25d41bca2de8ba99d8c8bfc Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Fri, 12 May 2023 21:15:44 +0530 Subject: [PATCH 2/9] Rename quesst-load-test.yaml to quest-load-test.yaml Signed-off-by: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> --- .github/workflows/{quesst-load-test.yaml => quest-load-test.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{quesst-load-test.yaml => quest-load-test.yaml} (100%) diff --git a/.github/workflows/quesst-load-test.yaml b/.github/workflows/quest-load-test.yaml similarity index 100% rename from .github/workflows/quesst-load-test.yaml rename to .github/workflows/quest-load-test.yaml From 2e216118c4a67c25918869ee10fe772e72b28067 Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Sat, 13 May 2023 19:06:38 +0530 Subject: [PATCH 3/9] Update docker-compose.yaml Signed-off-by: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> --- docker-compose.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 2bdc14d51..fdf8835c9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -58,7 +58,7 @@ services: delay: 20s max_attempts: 3 - quest: + quest-smoke: image: ghcr.io/parseablehq/quest:main command: ["smoke", "http://parseable:8000", "parseableadmin", "parseableadmin"] networks: @@ -70,3 +70,20 @@ services: condition: on-failure delay: 20s max_attempts: 3 + + quest-load: + image: ghcr.io/parseablehq/quest:main + command: ["load", "http://parseable:8000", "parseableadmin", "parseableadmin", "20"] + networks: + - parseable-internal + depends_on: + quest-smoke: + condition: service_completed_ successfully + - parseable + deploy: + restart_policy: + condition: on-failure + delay: 20s + max_attempts: 3 + + From 7a8552a2bae5488f445930fe8e0842e9bfd4b21b Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Sat, 13 May 2023 19:13:28 +0530 Subject: [PATCH 4/9] Delete quest-load-test.yaml Signed-off-by: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> --- .github/workflows/quest-load-test.yaml | 39 -------------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/quest-load-test.yaml diff --git a/.github/workflows/quest-load-test.yaml b/.github/workflows/quest-load-test.yaml deleted file mode 100644 index a57ebd578..000000000 --- a/.github/workflows/quest-load-test.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Quest Load mode - -on: - pull_request: - paths-ignore: - - 'docs/**' - - 'helm/**' - - 'assets/**' - - '**.md' - -jobs: - load_test: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Rust-Setup - uses: actions/setup-rust@v1 - with: - rust-version: stable - - - name: Required dependencies - run: cargo-build --quiet - - - name: Run load tests - env: - PR_BRANCH: ${{github.event.pull_request.head.ref }} - run: cargo test --features --branch $PR_BRANCH - - - name: Fetch quest file - uses: action/checkout@v3 - with: - repository: parseablehq/quest - path: ./testcases/load.js - - - name: Final Run - run: ./load.js From defc24c819e0c101881aa6a6331ba6f1cb0a6195 Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Sat, 13 May 2023 13:48:43 +0000 Subject: [PATCH 5/9] Correct syntax --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index fdf8835c9..51713e2b8 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -78,7 +78,7 @@ services: - parseable-internal depends_on: quest-smoke: - condition: service_completed_ successfully + condition: service_completed_successfully - parseable deploy: restart_policy: From 120d612fccd8bbfc9fd623ba8ebaa1c64dd0fe61 Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Sat, 13 May 2023 13:55:57 +0000 Subject: [PATCH 6/9] parseable removed --- docker-compose.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 51713e2b8..09e44e90a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -79,7 +79,6 @@ services: depends_on: quest-smoke: condition: service_completed_successfully - - parseable deploy: restart_policy: condition: on-failure From 0fe7f1d5c91b2230998993d5879241ff79bfbf14 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Sat, 13 May 2023 20:32:54 +0530 Subject: [PATCH 7/9] Update docker-compose.yaml Signed-off-by: Nitish Tiwari --- docker-compose.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 09e44e90a..082a6ec66 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -64,7 +64,8 @@ services: networks: - parseable-internal depends_on: - - parseable + parseable: + condition: service_healthy deploy: restart_policy: condition: on-failure @@ -77,6 +78,8 @@ services: networks: - parseable-internal depends_on: + parseable: + condition: service_healthy quest-smoke: condition: service_completed_successfully deploy: From 080f9079cfe30ec86aeb0e443761666c59556095 Mon Sep 17 00:00:00 2001 From: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> Date: Sat, 13 May 2023 20:41:46 +0530 Subject: [PATCH 8/9] Update integration-test.yaml Signed-off-by: Sajiyah Salat <109643863+Sajiyah-Salat@users.noreply.github.com> --- .github/workflows/integration-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 3484022ee..f340f6e27 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -17,7 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Start compose - run: docker-compose up --build --exit-code-from quest + run: docker-compose up --build --exit-code-from quest-load - name: Stop compose if: always() run: docker-compose down From 6dae3611308d5087a11f3d617c5bdf8de47a4531 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Sat, 13 May 2023 22:37:50 +0530 Subject: [PATCH 9/9] Update docker-compose.yaml Signed-off-by: Nitish Tiwari --- docker-compose.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 082a6ec66..76325b4ee 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -65,7 +65,7 @@ services: - parseable-internal depends_on: parseable: - condition: service_healthy + condition: service_started deploy: restart_policy: condition: on-failure @@ -79,9 +79,9 @@ services: - parseable-internal depends_on: parseable: - condition: service_healthy + condition: service_started quest-smoke: - condition: service_completed_successfully + condition: service_started deploy: restart_policy: condition: on-failure