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

add automatic db deployment to test, uat. add keycloak sync to uat. update action definitions to allow for env specific secrets for keycloak sync. #3573

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

devinleighsmith
Copy link
Collaborator

No description provided.

Copy link
Contributor

github-actions bot commented Nov 6, 2023

✅ No secrets were detected in the code.

@devinleighsmith
Copy link
Collaborator Author

secret creation covered by: https://jira.th.gov.bc.ca/browse/PSP-7200

Copy link
Contributor

github-actions bot commented Nov 7, 2023

✅ No secrets were detected in the code.

@@ -123,7 +123,7 @@ jobs:
- name: call scripts to upgrade database
shell: bash
run: |
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p SERVER_NAME=sqldevtst.th.gov.bc.ca -p DB_NAME=PIMS_DEV -p NAMESPACE=3cd915-dev | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s)
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database GIT_BRANCH=dev SERVER_NAME=sqldevtst.th.gov.bc.ca -p DB_NAME=PIMS_DEV -p NAMESPACE=3cd915-dev | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you test this on OCP? According to OC documentation, template parameters need to be listed each with -p but I see this oc process ... -p DB_SECRET_NAME=... [-p needed here?] GIT_BRANCH=dev ...

I think you need to add -p in front of GIT_BRANCH and SERVER_NAME parameters - right? or does it work without it?

Comment on lines 88 to 89
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database-test GIT_BRANCH=dev SERVER_NAME=sqldevtst.th.gov.bc.ca -p DB_NAME=PIMS_TST -p NAMESPACE=3cd915-dev | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment re: -p applies here

- name: call scripts to upgrade database
shell: bash
run: |
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database GIT_BRANCH=test SERVER_NAME=sqlprd.th.gov.bc.ca -p DB_NAME=PIMS_UAT -p NAMESPACE=3cd915-test | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check usage of -p here

Comment on lines +101 to +104
- name: Install dependencies for keycloak sync
run: dotnet restore
working-directory: ${{env.sync-directory}}
Copy link
Collaborator

@asanchezr asanchezr Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The env-var sync-directory: ./tools/keycloak/sync is not present in this file like the others above. Please add it or kc-sync will fail in UAT

Copy link
Collaborator

@asanchezr asanchezr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@devinleighsmith devinleighsmith force-pushed the pipeline_enhancements branch 2 times, most recently from 5f6048e to 23c0751 Compare November 7, 2023 22:24
Copy link
Contributor

github-actions bot commented Nov 7, 2023

✅ No secrets were detected in the code.

1 similar comment
Copy link
Contributor

github-actions bot commented Nov 7, 2023

✅ No secrets were detected in the code.

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #3573 (119849f) into dev (795d389) will decrease coverage by 6.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #3573      +/-   ##
==========================================
- Coverage   69.57%   63.47%   -6.11%     
==========================================
  Files        1370      472     -898     
  Lines       33716    15141   -18575     
  Branches     6270     1026    -5244     
==========================================
- Hits        23458     9610   -13848     
+ Misses      10007     5280    -4727     
  Partials      251      251              
Flag Coverage Δ
unittests 63.47% <100.00%> (-6.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...rce/backend/dal/Repositories/PropertyRepository.cs 73.42% <100.00%> (ø)

... and 898 files with indirect coverage changes

for testing purposes only, revert.

typo.

skip unecessary steps.

temp.

Revert "for testing purposes only, revert."

This reverts commit 629967c.

Revert "skip unecessary steps."

This reverts commit bedc627.
Copy link
Contributor

github-actions bot commented Nov 7, 2023

✅ No secrets were detected in the code.

1 similar comment
Copy link
Contributor

github-actions bot commented Nov 7, 2023

✅ No secrets were detected in the code.

@devinleighsmith devinleighsmith merged commit 7c953cb into bcgov:dev Nov 7, 2023
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants