Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/loadtests9 #1583

Open
wants to merge 64 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
533a7c2
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
3aa7dc6
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
ff664a1
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
6a99977
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
74ef010
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
8755509
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
35d137c
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 23, 2024
bac3bcc
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 24, 2024
cfd78b9
fix: Properly adding RESULTS_DIR as env var
cberg-aot Aug 29, 2024
d7694f2
fix: moving loadtests to own pipelines
cberg-aot Aug 29, 2024
17ba179
feat: split idir & bceid tests; testing new loadtest workflows
cberg-aot Sep 4, 2024
c0ec54f
ORV2-2732: updated get power units and get trailers token to bceid token
bcgov-brwang Sep 4, 2024
7c3c1b8
ORV2-2629 Permission Matrix in Routes and Auth walls (#1581)
krishnan-aot Sep 4, 2024
9c9ee8a
Permission Matrix updates - Credit Account (#1584)
krishnan-aot Sep 4, 2024
0f08c8d
ORV2-2685: added document on the way page when pdf file unavailable (…
bcgov-brwang Sep 4, 2024
96670fa
ORV2-2732: updated dops test cases
bcgov-brwang Sep 5, 2024
3e26684
fix: split bceid and idir for frontend
cberg-aot Sep 5, 2024
ab872b9
feat: Initial load of OS permittable data (#1572)
john-fletcher-aot Sep 5, 2024
69acd32
ORV22-2637 DB Model for Case Managements /Queue - First Draft (#1544)
praju-aot Sep 9, 2024
9208bbd
ORV2-2636 Add STOS fields to PermitData Json (#1586)
praju-aot Sep 9, 2024
2d30e13
Backend policy engine helper to format Application to Policy Applicat…
gchauhan-aot Sep 9, 2024
318996f
ORV2-2682 - Staff Manage queue (#1587)
praju-aot Sep 9, 2024
86034f8
Fix cached application data bug (#1588)
zgong-gov Sep 9, 2024
0887dfe
fix: Add IN_QUEUE status to scheduler. (#1589)
praju-aot Sep 10, 2024
23fea88
docs: Update documentation for policy engine configuration JSON (#1590)
john-fletcher-aot Sep 11, 2024
b5cf05e
feat: ORV2-2973 - Application Queue resubmit and rejection (#1592)
praju-aot Sep 12, 2024
d60f720
feat: Add sample policy configuration JSON, and add documentation (#1…
john-fletcher-aot Sep 12, 2024
5517651
ORV2-1504: Applying for no-fee permits (#1595)
zgong-gov Sep 13, 2024
aeb7770
ORV2 1504 Sonar Issue Fix (#1597)
gchauhan-aot Sep 16, 2024
b86eeb4
ORV2-2824 - FE: Update status - Change leave application warning moda…
glen-aot Sep 16, 2024
5c59222
ORV2-2764 - FE: CV Client Pay using Cash, Cheque, PoS and GA Payment …
glen-aot Sep 16, 2024
c1ea3f4
ORV2-2684 - FE:User Manage Applications in Review (#1594)
glen-aot Sep 16, 2024
480c36e
fix/loadtests9: updated frontend test samplers with selenium webdrive…
bcgov-brwang Sep 17, 2024
c084e4a
ORV2-2825 - FE: Update: Display suspend status on Staff search for co…
glen-aot Sep 17, 2024
fdc89b1
ORV2-2827 - FE: Update: Remove Applications in Progress Counter (#1600)
glen-aot Sep 17, 2024
84c5625
ORV2-2792 Staff Queue Changes (#1603)
praju-aot Sep 18, 2024
56c4375
fix: ORV2-2792 Document applicationQueueStatus query parameter (#1604)
praju-aot Sep 19, 2024
3599fd6
fix: ORV2-2972 Start and Expiry date validation (#1606)
praju-aot Sep 23, 2024
e0f581a
Feat/release please (#1602)
cberg-aot Sep 23, 2024
1cbac35
fix: moved release-please to its own file (#1608)
cberg-aot Sep 23, 2024
a846d53
fix: removed vars from release-please.yml (#1609)
cberg-aot Sep 23, 2024
854d6e3
Fix/release please 3 (#1610)
cberg-aot Sep 24, 2024
5986a0e
feat: removed release-please (#1613)
cberg-aot Sep 24, 2024
3fc25ed
ORV2-2693 Add STOS permit templates to OnRouteBC (#1612)
praju-aot Sep 24, 2024
5d58f53
feat: removed release-please (#1614)
cberg-aot Sep 24, 2024
62d6e89
feat: Release events now should continue pipeline via pr (#1615)
cberg-aot Sep 24, 2024
1bb6ece
Fix/release event add pr (#1616)
cberg-aot Sep 24, 2024
af4046a
ORV2-2693 Add License GVW to permitData (#1618)
praju-aot Sep 25, 2024
7a63703
fix: removing release events due to pr data not in event (#1617)
cberg-aot Sep 25, 2024
945a352
feature: ORV2-2841 MFP Permit Template and BE changes (#1619)
praju-aot Sep 25, 2024
b453ac4
fix: ORV2-2841 Correct the DB version for 44 (#1620)
praju-aot Sep 25, 2024
61ede22
fix: deploying via last merged pr instead of tag promotion (#1621)
cberg-aot Sep 25, 2024
888f0d4
fix: catching release event (#1622)
cberg-aot Sep 25, 2024
5e14488
fix:ORV2-2792 Rectify the expiry date validation for Staff Queue (#1623)
praju-aot Sep 26, 2024
21fa121
Permission Changes For LoA And Special Auth (#1624)
gchauhan-aot Sep 27, 2024
38456ec
LoA number change (#1626)
gchauhan-aot Sep 27, 2024
8411ca1
ORV2-2780: integrate selenium webdriver for login to get access token
bcgov-brwang Sep 27, 2024
7851a62
chore(ci): handle gh runner oc removal (#1625)
DerekRoberts Oct 3, 2024
743d267
docs: Move database history table docs to git (#1628)
john-fletcher-aot Oct 4, 2024
97e4370
feat: Increment version for policy-engine for NPM package (#1629)
john-fletcher-aot Oct 4, 2024
b3ecd7f
Merge branch 'fix/loadtests9' of https://github.com/bcgov/onroutebc i…
bcgov-brwang Oct 8, 2024
c277fec
ORV2-2780: added idir test cases
bcgov-brwang Oct 8, 2024
4c38f78
ORV2-2780: added frontend test cases
bcgov-brwang Oct 8, 2024
d93c692
ORV2-2780: added crud vehicles test cases
bcgov-brwang Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 17 additions & 27 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,32 @@ name: Deploy Demo
on:
workflow_dispatch:
inputs:
environment:
description: "Deployment environment - test --> vault secrets"
required: true
type: choice
options: ["test","tools"]
default: "test"
tag:
description: "Image tag to deploy"
required: false
type: string
default: "uat"
workflow_call:
inputs:
tag:
description: "Image tag to deploy"
required: false
type: string
default: "uat"


concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
uninstall-demo:
name: Uninstall (demo)
environment: ${{inputs.environment}}
runs-on: ubuntu-22.04
steps:
- name: uninstall
run: |
oc login --token=${{ secrets.oc_token }} --server=${{ secrets.oc_server }}
oc project ${{ secrets.OC_NAMESPACE }} # Safeguard!
helm uninstall onroutebc-demo || true
deploy-demo:
name: Deploys (demo)
name: Deploys (DEMO)
uses: ./.github/workflows/deploy.yml
needs: uninstall-demo
secrets: inherit
with:
autoscaling: false
environment: ${{inputs.environment}}
tag: "test"
environment: demo
tag: ${{inputs.tag}}
release: "demo"
params: |
--set-string global.license='c28f0c' \
--set-string global.zone='test' \
--set-string global.vault.role='nonprod' \
--set-string global.vault.zone='staging' \
--set-string global.pr_num='${{ needs.vars.outputs.pr }}' \
--set-string global.vault.zone='demo' \
--set-string global.pr_num='${{ inputs.tag }}' \
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ jobs:
# If here skip deployment
echo "No triggers have fired, deployment skipped"

- uses: redhat-actions/openshift-tools-installer@v1
if: ${{ steps.triggers.outputs.triggered == 'true' }}
with:
oc: "4"

- name: Deploy if Triggers Fired
if: ${{ steps.triggers.outputs.triggered == 'true' }}
working-directory: ${{ inputs.directory }}
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Deploy Dev

on:
workflow_dispatch:
inputs:
tag:
description: "Image tag to deploy"
required: false
type: string
default: "latest"
workflow_call:
inputs:
tag:
description: "Image tag to deploy"
required: false
type: string
default: "latest"
jobs:
deploy-dev:
name: Deploys (DEV)
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
autoscaling: false
environment: dev
release: ${{inputs.tag}}
tag: ${{ inputs.tag }}
triggers: '' #omit=always;
params: |
--set-string global.license='c28f0c' \
--set-string global.zone='dev' \
--set-string global.vault.role='nonprod' \
--set-string global.vault.zone='dev' \
--set-string global.pr_num='${{ inputs.tag }}' \
--set-json dops.containers[0].resources='{"limits": {"cpu": "1000m", "memory": "2000Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json frontend.containers[0].resources='{"limits": {"cpu": "75m", "memory": "150Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json scheduler.containers[0].resources='{"limits": {"cpu": "75m", "memory": "150Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json policy.containers[0].resources='{"limits": {"cpu": "75m", "memory": "150Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json vehicles.containers[0].resources='{"limits": {"cpu": "300m", "memory": "500Mi"}, "requests": {"cpu": "200m", "memory": "400Mi"}}' \
55 changes: 0 additions & 55 deletions .github/workflows/loadtest.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/loadtest_dops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name: loadtest_dops

on:
workflow_dispatch:
inputs:
### Required
num_threads:
description: 'Number of concurrent threads (USERS) for each test in sequence'
default: 2
required: true
type: integer
release:
description: 'PR number, test or prod.'
default: test
required: true
type: string
bearer_token:
description: "The bearer token pertaining to the user running the tests"
required: true
type: string

jobs:
vars:
name: Set Variables
outputs:
dops_api_url: ${{ steps.vars.outputs.dops_api_url }}
frontend_api_url: ${{ steps.vars.outputs.frontend_api_url }}
vehicles_api_url: ${{ steps.vars.outputs.vehicles_api_url }}
runs-on: ubuntu-22.04
steps:
- name: vars
id: vars
run: |
echo "dops_api_url=onroutebc-${{inputs.environment}}-dops.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV
echo "frontend_api_url=onroutebc-${{inputs.environment}}-frontend.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV
echo "vehicles_api_url=onroutebc-${{inputs.environment}}-vehicles.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV

orbc_load_test_plan_dops:
name: orbc_load_test_plan_dops
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: rbhadti94/[email protected]
with:
testFilePath: loadtests/dops/orbc_load_test_plan_dops.jmx
outputReportsFolder: results_dops
args: |
--loglevel INFO
--jmeterlogconf=log.conf
-JBEARER_TOKEN=${{inputs.bearer_token}}
-JNUM_THREADS=${{inputs.num_threads}}
-JFRONTEND_API_URL=${{vars.frontend_api_url}}
-JDOPS_API_URL=${{vars.dops_api_url}}
-JVEHICLES_API_URL=${{vars.vehicles_api_url}}
-JRESULTS_DIR=results_dops

- uses: actions/[email protected]
with:
name: jmeter-test-results-dops
path: results_dops
62 changes: 62 additions & 0 deletions .github/workflows/loadtest_frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: loadtest_frontend

on:
workflow_dispatch:
inputs:
### Required
num_threads:
description: 'Number of concurrent threads (USERS) for each test in sequence'
default: 2
required: true
type: integer
release:
description: 'PR number, test or prod.'
default: test
required: true
type: string
bearer_token:
description: "The bearer token pertaining to the user running the tests"
required: true
type: string

jobs:
vars:
name: Set Variables
outputs:
dops_api_url: ${{ steps.vars.outputs.dops_api_url }}
frontend_api_url: ${{ steps.vars.outputs.frontend_api_url }}
vehicles_api_url: ${{ steps.vars.outputs.vehicles_api_url }}
runs-on: ubuntu-22.04
steps:
- name: vars
id: vars
run: |
echo "dops_api_url=onroutebc-${{inputs.environment}}-dops.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV
echo "frontend_api_url=onroutebc-${{inputs.environment}}-frontend.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV
echo "vehicles_api_url=onroutebc-${{inputs.environment}}-vehicles.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV

orbc_load_test_plan_frontend:
name: orbc_load_test_plan_frontend
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: rbhadti94/[email protected]
with:
testFilePath: loadtests/frontend/orbc_load_test_plan_frontend.jmx
outputReportsFolder: results_frontend
args: |
--loglevel INFO
--jmeterlogconf=log.conf
-JBEARER_TOKEN=${{inputs.bearer_token}}
-JNUM_THREADS=${{inputs.num_threads}}
-JFRONTEND_API_URL=${{vars.frontend_api_url}}
-JDOPS_API_URL=${{vars.dops_api_url}}
-JVEHICLES_API_URL=${{vars.vehicles_api_url}}
-JRESULTS_DIR=results_frontend
- uses: actions/[email protected]
with:
name: jmeter-test-results-frontend
path: results_frontend
63 changes: 63 additions & 0 deletions .github/workflows/loadtest_vehicles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name: loadtest_vehicles

on:
workflow_dispatch:
inputs:
### Required
num_threads:
description: 'Number of concurrent threads (USERS) for each test in sequence'
default: 2
required: true
type: integer
release:
description: 'PR number, test or prod.'
default: test
required: true
type: string
bearer_token:
description: "The bearer token pertaining to the user running the tests"
required: true
type: string

jobs:
vars:
name: Set Variables
outputs:
dops_api_url: ${{ steps.vars.outputs.dops_api_url }}
frontend_api_url: ${{ steps.vars.outputs.frontend_api_url }}
vehicles_api_url: ${{ steps.vars.outputs.vehicles_api_url }}
runs-on: ubuntu-22.04
steps:
- name: vars
id: vars
run: |
echo "dops_api_url=onroutebc-${{inputs.environment}}-dops.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV
echo "frontend_api_url=onroutebc-${{inputs.environment}}-frontend.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV
echo "vehicles_api_url=onroutebc-${{inputs.environment}}-vehicles.apps.silver.devops.gov.bc.ca" >> GITHUB_ENV

orbc_load_test_plan_vehicles:
name: orbc_load_test_plan_vehicles
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: rbhadti94/[email protected]
with:
testFilePath: loadtests/vehicles/
outputReportsFolder: results_vehicles
args: |
--loglevel INFO
--jmeterlogconf=log.conf
-JBEARER_TOKEN=${{inputs.bearer_token}}
-JNUM_THREADS=${{inputs.num_threads}}
-JFRONTEND_API_URL=${{vars.frontend_api_url}}
-JDOPS_API_URL=${{vars.vars_api_url}}
-JVEHICLES_API_URL=${{vars.vehicles_api_url}}
-JRESULTS_DIR=results_vehicles

- uses: actions/[email protected]
with:
name: jmeter-test-results-vehicles
path: results_vehicles
Loading
Loading