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

Lbjenn patch 1 #2

Merged
merged 74 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
df4562e
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
a2d82f6
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
3a571db
update liquibase checks conf file for 4.29.1
lbjenn Aug 1, 2024
3ff48b4
Merge branch 'lbjenn-patch-1' of github.com:molivasdat/Snowflake into…
lbjenn Aug 1, 2024
e18f536
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
49d5d77
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
2fdcff6
Updated snapshot file for DEV to include DBCL Histtable
lbjenn Aug 1, 2024
a723f2b
New Snapshots
molivasdat Aug 1, 2024
d8728ca
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
3b29ed6
Update snapshot files to confirm to 4.29.1
lbjenn Aug 1, 2024
b9b4395
updated shapshots for version 4.28.0
lbjenn Aug 1, 2024
2054374
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
ec4b916
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
fcebe15
New Snapshots
molivasdat Aug 1, 2024
e9427e3
Update liquibase.flowfile.yaml
lbjenn Aug 1, 2024
aa885f1
New Snapshots
molivasdat Aug 1, 2024
c405b15
Update liquibase_workflow.yml
lbjenn Aug 1, 2024
1b4909d
New Snapshots
molivasdat Aug 1, 2024
4f05645
Update liquibase.flowfileprod.yaml
lbjenn Aug 1, 2024
03914b6
New Snapshots
molivasdat Aug 1, 2024
b23c3b0
Update liquibase_workflow.yml
lbjenn Aug 2, 2024
6862f07
Update lb_rollback_onedb.yml
lbjenn Aug 2, 2024
3e11281
Restore snapshotfile for DEV
molivasdat Aug 2, 2024
06ddaf1
New Snapshots
molivasdat Aug 2, 2024
ea558b5
New Snapshots
molivasdat Aug 2, 2024
f6efaff
New Snapshots
molivasdat Aug 2, 2024
25ff4fb
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 2, 2024
f0ca718
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 2, 2024
9fac592
Update liquibase_rollback_workflow.yml
lbjenn Aug 2, 2024
2386a09
New Snapshots
molivasdat Aug 2, 2024
513b15a
New Snapshots
molivasdat Aug 2, 2024
c294fad
New Snapshots
molivasdat Aug 2, 2024
34c26c7
UPdated baseline snapshots
lbjenn Aug 2, 2024
9135662
New Snapshots
molivasdat Aug 2, 2024
69b8ed9
New Snapshots
molivasdat Aug 2, 2024
dc3f223
New Snapshots
molivasdat Aug 2, 2024
2d3713a
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 2, 2024
ad51115
New Snapshots
molivasdat Aug 2, 2024
86702d6
New Snapshots
molivasdat Aug 2, 2024
5f2b0d6
New Snapshots
molivasdat Aug 2, 2024
222b0ab
Restore snapshotfile for TEST
molivasdat Aug 2, 2024
c5bd454
Restore snapshotfile for PROD
molivasdat Aug 2, 2024
6447f3c
New Snapshots
molivasdat Aug 2, 2024
9fa0614
New Snapshots
molivasdat Aug 2, 2024
c5b9010
New Snapshots
molivasdat Aug 2, 2024
1847bce
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 3, 2024
22d802a
New Snapshots
molivasdat Aug 3, 2024
6a19d0f
New Snapshots
molivasdat Aug 3, 2024
e9644a5
New Snapshots
molivasdat Aug 3, 2024
7978d9e
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 3, 2024
d3e38bc
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 3, 2024
57cc1b2
New Snapshots
molivasdat Aug 3, 2024
c175213
Update liquibase_workflow.yml
lbjenn Aug 3, 2024
2dc882d
New Snapshots
molivasdat Aug 3, 2024
665a069
New Snapshots
molivasdat Aug 3, 2024
e6aa515
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 3, 2024
5391b5c
Update liquibase_workflow.yml
lbjenn Aug 3, 2024
31e0578
DEV Deploy Reports and Logs
molivasdat Aug 3, 2024
75de210
Deploy Reports and Logs
molivasdat Aug 3, 2024
107e4b2
Deploy Reports and Logs
molivasdat Aug 3, 2024
de4e1fe
Update liquibase_rollback_targeted_workflow.yml
lbjenn Aug 3, 2024
6af69fc
Update changelog.sql
lbjenn Aug 6, 2024
5cea6ca
Update changelog.sql
lbjenn Aug 6, 2024
1962981
Restore snapshotfile for DEV
molivasdat Aug 6, 2024
7861470
DEV Deploy Reports and Logs
molivasdat Aug 6, 2024
ea62c1c
Deploy Reports and Logs
molivasdat Aug 6, 2024
18e591d
Deploy Reports and Logs
molivasdat Aug 6, 2024
fbf6ed7
DEV Deploy Reports and Logs
molivasdat Aug 6, 2024
d0cbc77
Deploy Reports and Logs
molivasdat Aug 6, 2024
95c76f9
Deploy Reports and Logs
molivasdat Aug 6, 2024
da96249
DEV Deploy Reports and Logs
molivasdat Aug 6, 2024
7870c8d
Deploy Reports and Logs
molivasdat Aug 6, 2024
79a85ff
Deploy Reports and Logs
molivasdat Aug 6, 2024
4dfaa5c
Merge branch 'master' into lbjenn-patch-1
molivasdat Aug 12, 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
4 changes: 2 additions & 2 deletions .github/workflows/lb_rollback_onedb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
name: ${{ github.event.inputs.db }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.LB_GH_TOKEN }}

Expand All @@ -55,5 +55,5 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Restore snapshotfile"
git commit -m "Restore snapshotfile for ${{ github.event.inputs.db }}"
git push
53 changes: 46 additions & 7 deletions .github/workflows/liquibase_rollback_targeted_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ env:
LIQUIBASE_COMMAND_USERNAME: ${{ secrets.LIQUIBASE_COMMAND_USERNAME }}
LIQUIBASE_COMMAND_PASSWORD: ${{ secrets.LIQUIBASE_COMMAND_PASSWORD }}
LIQUIBASE_COMMAND_CHANGELOG_FILE: ${{ secrets.LIQUIBASE_COMMAND_CHANGELOG_FILE }}
LIQUIBASE_REPORTS_ENABLED: "TRUE"
LIQUIBASE_LOG_LEVEL: "INFO"


jobs:
Expand All @@ -40,26 +42,51 @@ jobs:
name: DEV

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rolling back DEV
uses: docker://liquibase/liquibase
uses: docker://liquibase/liquibase:4.28.0
with:
args: rollbackOneChangeset --changeset-author=${{ github.event.inputs.author }} --changeset-id=${{ github.event.inputs.id }} --changeset-path=${{ github.event.inputs.path }} --force

###
### Gather logs
###
- name: Gather reports DEV
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: rollback1-reports-DEV
path: |
**/Rollback*.html


Test_Job:
needs: Build_Job
runs-on: ubuntu-latest
environment:
name: TEST

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rolling back TEST
uses: docker://liquibase/liquibase
uses: docker://liquibase/liquibase:4.28.0
with:
args: rollbackOneChangeset --changeset-author=${{ github.event.inputs.author }} --changeset-id=${{ github.event.inputs.id }} --changeset-path=${{ github.event.inputs.path }} --force
args: rollbackOneChangeset --changeset-author=${{ github.event.inputs.author }} --changeset-id=${{ github.event.inputs.id }} --changeset-path=${{ github.event.inputs.path }} --force

###
### Gather logs
###
- name: Gather reports TEST
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: rollback1-reports-TEST
path: |
**/Rollback*.html



Deploy_Prod_Job:
needs: Test_Job
Expand All @@ -68,9 +95,21 @@ jobs:
name: PROD

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rolling back PROD
uses: docker://liquibase/liquibase
uses: docker://liquibase/liquibase:4.28.0
with:
args: rollbackOneChangeset --changeset-author=${{ github.event.inputs.author }} --changeset-id=${{ github.event.inputs.id }} --changeset-path=${{ github.event.inputs.path }} --force

###
### Gather logs
###
- name: Gather reports PROD
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: rollback1-reports-PROD
path: |
**/Rollback*.html

6 changes: 3 additions & 3 deletions .github/workflows/liquibase_rollback_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: DEV

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rolling back DEV changes
uses: docker://liquibase/liquibase
Expand All @@ -50,7 +50,7 @@ jobs:
name: TEST

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rolling back TEST changes
uses: docker://liquibase/liquibase
Expand All @@ -69,7 +69,7 @@ jobs:
name: PROD

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Rolling back PROD changes
uses: docker://liquibase/liquibase
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/liquibase_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ env:
LIQUIBASE_COMMAND_TAG: ${{ github.event.inputs.tag }}
LIQUIBASE_LOG_FORMAT: "JSON"
LIQUIBASE_LOG_LEVEL: "INFO"
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: "TRUE"

jobs:

Expand All @@ -33,11 +34,11 @@ jobs:
name: DEV

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
uses: docker://liquibase/liquibase:4.28.0
with:
args: --log-file=runlog_DEV.json flow --flow-file=liquibase.flowfile.yaml
env:
Expand All @@ -47,9 +48,9 @@ jobs:
###
- name: Gather logs
if: success() || failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: logs
name: logs-DEV
path: |
**/*DEV.json
**/*DEV.html
Expand All @@ -58,7 +59,7 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "New Snapshots"
git commit -m "DEV Deploy Reports and Logs"
git push


Expand All @@ -69,11 +70,11 @@ jobs:
name: TEST

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
uses: docker://liquibase/liquibase:4.28.0
with:
args: --log-file=runlog_TEST.json flow --flow-file=liquibase.flowfile.yaml
env:
Expand All @@ -83,9 +84,9 @@ jobs:
###
- name: Gather logs
if: success() || failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: logs
name: logs-TEST
path: |
**/*TEST.json
**/*TEST.html
Expand All @@ -95,7 +96,7 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "New Snapshots $LB_ENVIRONMENT"
git commit -m "$LB_ENVIRONMENT Deploy Reports and Logs"
git push

Deploy_Prod_Job:
Expand All @@ -105,11 +106,11 @@ jobs:
name: PROD

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
uses: docker://liquibase/liquibase:4.28.0
with:
args: --log-file=runlog_PROD.json flow --flow-file=liquibase.flowfileprod.yaml
env:
Expand All @@ -119,9 +120,9 @@ jobs:
###
- name: Gather logs
if: success() || failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: logs
name: logs-PROD
path: |
**/*PROD.json
**/*PROD.html
Expand All @@ -131,7 +132,7 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "New Snapshots"
git commit -m "$LB_ENVIRONMENT Deploy Reports and Logs"
git push


4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
driftdetection.txt
liquibase.properties
Snapshots/
Snapshots/
logs/
*.html
2 changes: 1 addition & 1 deletion Changelogs/changelog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ BEGIN
RETURN number_2;
END IF;
END;
--rollback DROP PROCEDURE return_greater(INTEGER, INTEGER)
--rollback DROP PROCEDURE return_greater(INTEGER, INTEGER)
10 changes: 5 additions & 5 deletions Diff_DEV.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"diff": {
"diffFormat": 1,
"created": "Thu Feb 22 20:19:49 UTC 2024",
"created": "Thu Aug 01 19:28:56 UTC 2024",
"databases": {
"reference": {
"majorVersion": "7",
"minorVersion": "31",
"majorVersion": "8",
"minorVersion": "28",
"name": "Offline snowflake",
"url": "offline:snowflake?snapshot=Snapshot_DEV.json"
},
"target": {
"majorVersion": "7",
"minorVersion": "31",
"majorVersion": "8",
"minorVersion": "28",
"name": "Snowflake",
"url": "jdbc:snowflake://ba89345.us-east-2.aws.snowflakecomputing.com:443/"
}
Expand Down
Loading