Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 610067f

Browse files
committed
Fixing gathering of diag data
Fixing uninstall validation
1 parent cb26d10 commit 610067f

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/scripts/uninstall_validate_utplsql.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
1010
whenever sqlerror exit failure rollback
1111
1212
@uninstall_all.sql $UT3_DEVELOP_SCHEMA
13+
SQL
14+
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
15+
set feedback off
16+
set verify off
1317
whenever sqlerror exit failure rollback
1418
declare
1519
v_leftover_objects_count integer;

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,19 +144,25 @@ jobs:
144144
id: run-tests
145145
run: bash test/run_tests.sh
146146

147-
#Needed to diagnose occasional failures of DB on test runs
147+
#Start Needed to diagnose occasional failures of DB on test runs
148+
- name: Prepare diagnostic directory
149+
id: preapre-oracle-diag-dir
150+
if: ${{ always() && steps.run-tests.outcome == 'failure' }}
151+
run: |
152+
mkdir database-diag
153+
chmod +777 database-diag
148154
- name: Get ORACLE_BASE/diag data
149155
id: get-oracle-diag-data
150156
if: ${{ always() && steps.run-tests.outcome == 'failure' }}
151157
run: docker exec oracle bash -c "cp -r /opt/oracle/diag /utPLSQL/database-diag"
152-
#Needed to diagnose occasional failures of DB on test runs
153158
- name: Upload ORACLE_BASE/diag data Artifact
154159
id: upload
155160
if: ${{ always() && steps.run-tests.outcome == 'failure' }}
156161
uses: actions/upload-artifact@v2
157162
with:
158163
name: my-artifact$-${{matrix.db_version_name}}
159164
path: ${{github.workspace}}/database-diag
165+
#End Needed to diagnose occasional failures of DB on test runs
160166

161167
- name: Validate utPLSQL reports format
162168
id: validate-reports-format

0 commit comments

Comments
 (0)