Psp 11434#5291
Draft
devinleighsmith wants to merge 8 commits into
Draft
Conversation
Comment on lines
+65
to
+85
| name: clean database of test user GUID | ||
| needs: [smoke-test] | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Checkout Source Code | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
| - name: Login to OpenShift | ||
| uses: redhat-actions/oc-login@5eb45e848b168b6bf6b8fe7f1561003c12e3c99d # v1.3 | ||
| with: | ||
| openshift_server_url: ${{ env.OPENSHIFT_SERVER }} | ||
| openshift_token: ${{ env.OPENSHIFT_TOKEN }} | ||
| insecure_skip_tls_verify: true | ||
| namespace: ${{ env.TARGET_NAMESPACE }} | ||
| - name: call scripts to clean database | ||
| shell: bash | ||
| run: | | ||
| JOB_NAME=$(oc process -f ./openshift/4.0/templates/jobs/db-clean-guid.yaml -p DB_SECRET_NAME=${{ env.TARGET_DB_SECRET_NAME }} -p GIT_BRANCH=${{ env.TARGET_GIT_BRANCH }} -p SERVER_NAME=${{ env.TARGET_SERVER_NAME }} -p DB_NAME=${{ env.TARGET_DB_NAME }} -p NAMESPACE=${{ env.TARGET_NAMESPACE }} -p TEST_USER_GUID=${{ env.Users__0__Guid }} | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*") | ||
| oc wait --for=condition=complete job/$JOB_NAME --timeout=300s | ||
| oc get pods -o custom-columns=POD:.metadata.name --no-headers | grep -Eo $JOB_NAME-[^\s].* | (read POD_NAME; oc logs $POD_NAME) | ||
|
|
||
| database-clean-2: |
Comment on lines
+86
to
+104
| name: clean database of test user GUID | ||
| needs: [smoke-test] | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Checkout Source Code | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
| - name: Login to OpenShift | ||
| uses: redhat-actions/oc-login@5eb45e848b168b6bf6b8fe7f1561003c12e3c99d # v1.3 | ||
| with: | ||
| openshift_server_url: ${{ env.OPENSHIFT_SERVER }} | ||
| openshift_token: ${{ env.OPENSHIFT_TOKEN }} | ||
| insecure_skip_tls_verify: true | ||
| namespace: ${{ env.TARGET_NAMESPACE }} | ||
| - name: call scripts to clean database | ||
| shell: bash | ||
| run: | | ||
| JOB_NAME=$(oc process -f ./openshift/4.0/templates/jobs/db-clean-guid.yaml -p DB_SECRET_NAME=${{ env.TARGET_DB_SECRET_NAME }} -p GIT_BRANCH=${{ env.TARGET_GIT_BRANCH }} -p SERVER_NAME=${{ env.TARGET_SERVER_NAME }} -p DB_NAME=${{ env.TARGET_DB_NAME }} -p NAMESPACE=${{ env.TARGET_NAMESPACE }} -p TEST_USER_GUID=${{ env.Users__1__Guid }} | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*") | ||
| oc wait --for=condition=complete job/$JOB_NAME --timeout=300s | ||
| oc get pods -o custom-columns=POD:.metadata.name --no-headers | grep -Eo $JOB_NAME-[^\s].* | (read POD_NAME; oc logs $POD_NAME) |
9274118 to
d779845
Compare
asanchezr
reviewed
Apr 22, 2026
Comment on lines
-39
to
-40
| - name: 🚀 Run Cucumber Smoke Tests | ||
| run: npx cucumber-js --tags @smokeTest |
Collaborator
There was a problem hiding this comment.
why do the playwright tests were removed? Do they not work currently?
Collaborator
Author
There was a problem hiding this comment.
just removed for test purposes, since these aren't running cleanly atm.
d779845 to
9274118
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Tested in dev environment. Not intended for production use.
Does a best-effort clean of data created by test user(s) specified in smoke tests.
Does not delete entities where sub-entities have been manually added by other users.
Database scripts generated by AI.
Deletion does not affect PIMS_USER* or PIMS_PERSON* tables required for testing.
Deletion scripts run by openshift jobs due to firewall restrictions.
Cleans history as well as data rows - as stated, not for production.