From 2893d62c09c9f149ee8c656818524c2a43ab27b4 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 18:09:26 +0700 Subject: [PATCH 01/45] test comment posting --- .github/workflows/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbc7e19..ad81e92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -on: [ push ] +on: [ pull_request ] jobs: migration_job: @@ -9,6 +9,20 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Post comment to PR + env: + URL: ${{ github.event.pull_request.comments_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo $URL + export COMMENT_BODY='{ "body": "Test comment" }' + curl \ + -X POST \ + $URL \ + -H "Content-Type: application/json" \ + -H "Authorization: token $GITHUB_TOKEN" \ + --data "$COMMENT_BODY" + # Run DB migrations with the public action - name: DB migrations checker with DLE uses: postgres-ai/migration-ci-action@v0.1.1 @@ -39,3 +53,5 @@ jobs: # Show migration summary - name: Get the response status run: echo "${{ steps.db-migration.outputs.response }}" + + From 598477eaaaaaeac8e4f4e6bc8929bff41823f46a Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 18:41:38 +0700 Subject: [PATCH 02/45] post comment in markdown --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad81e92..4c5f273 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,19 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | echo $URL - export COMMENT_BODY='{ "body": "Test comment" }' + + export COMMENT_BODY="This is a multi-line test comment \ + - With GitHub **Markdown** :sparkles: \ + - Created by [postgres-ai/migration-ci-action][1] \ + \ + [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" + curl \ -X POST \ $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "$COMMENT_BODY" + --data "'{ \"body\": \"$COMMENT_BODY\" }'" # Run DB migrations with the public action - name: DB migrations checker with DLE From 03209050fe08ae5e437ea06a087d8b8d34416312 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 18:50:02 +0700 Subject: [PATCH 03/45] post comment in markdown --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c5f273..b5dd28b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,18 +16,19 @@ jobs: run: | echo $URL - export COMMENT_BODY="This is a multi-line test comment \ + export COMMENT="This is a multi-line test comment \ - With GitHub **Markdown** :sparkles: \ - Created by [postgres-ai/migration-ci-action][1] \ \ [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" + export COMMENT_BODY="{ 'body': '$COMMENT' }" curl \ -X POST \ $URL \ - -H "Content-Type: application/json" \ + -H "Content-Type: application/vnd.github+json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "'{ \"body\": \"$COMMENT_BODY\" }'" + --data "'$COMMENT_BODY'" # Run DB migrations with the public action - name: DB migrations checker with DLE From 5484ca278d35af408a91a5033dece43b66dca3c3 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 18:56:22 +0700 Subject: [PATCH 04/45] post comment in markdown --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5dd28b..1b79a50 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,13 +22,14 @@ jobs: \ [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" export COMMENT_BODY="{ 'body': '$COMMENT' }" + echo $COMMENT_BODY curl \ -X POST \ $URL \ - -H "Content-Type: application/vnd.github+json" \ + -H "Content-Type: application/vnd.github.raw+json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "'$COMMENT_BODY'" + --data "$COMMENT" # Run DB migrations with the public action - name: DB migrations checker with DLE From b645050b8ec75d5ef3c27c0e4add025ae6bac34c Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:07:35 +0700 Subject: [PATCH 05/45] post comment in markdown --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b79a50..a207fdd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,15 +21,15 @@ jobs: - Created by [postgres-ai/migration-ci-action][1] \ \ [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" - export COMMENT_BODY="{ 'body': '$COMMENT' }" + export COMMENT_BODY='{ "body": "$COMMENT" }' echo $COMMENT_BODY curl \ -X POST \ $URL \ - -H "Content-Type: application/vnd.github.raw+json" \ + -H "Content-Type: application/vnd.github+json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "$COMMENT" + --data "'$COMMENT_BODY'" # Run DB migrations with the public action - name: DB migrations checker with DLE From 5ccd6f74befe11b09a65acc3bd28ddc2877b6761 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:12:22 +0700 Subject: [PATCH 06/45] post comment as a markdown in plain text --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a207fdd..9e92598 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,15 +21,15 @@ jobs: - Created by [postgres-ai/migration-ci-action][1] \ \ [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" - export COMMENT_BODY='{ "body": "$COMMENT" }' + export COMMENT_BODY={ "body": "$COMMENT" } echo $COMMENT_BODY curl \ -X POST \ $URL \ - -H "Content-Type: application/vnd.github+json" \ + -H "Content-Type: text/plain" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "'$COMMENT_BODY'" + --data "$COMMENT" # Run DB migrations with the public action - name: DB migrations checker with DLE From 4a22407e175369ffa498e076a2da6637f9dd593c Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:39:00 +0700 Subject: [PATCH 07/45] post comment markdown --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e92598..caf31d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,15 +21,15 @@ jobs: - Created by [postgres-ai/migration-ci-action][1] \ \ [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" - export COMMENT_BODY={ "body": "$COMMENT" } + export COMMENT_BODY="{ 'body': '$COMMENT' }" echo $COMMENT_BODY curl \ -X POST \ $URL \ - -H "Content-Type: text/plain" \ + -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "$COMMENT" + --data "'$COMMENT_BODY'" # Run DB migrations with the public action - name: DB migrations checker with DLE From 8173b688302571a96dd64434bd87de74179db34a Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:41:25 +0700 Subject: [PATCH 08/45] fix quotes to post comment markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index caf31d7..5d29576 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: - Created by [postgres-ai/migration-ci-action][1] \ \ [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" - export COMMENT_BODY="{ 'body': '$COMMENT' }" + export COMMENT_BODY="{ \"body\": \"$COMMENT\" }" echo $COMMENT_BODY curl \ From 02fff45f4b241408c3a612344364889de7cb58f3 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:51:05 +0700 Subject: [PATCH 09/45] simplify markdown --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d29576..a408284 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,7 @@ jobs: export COMMENT="This is a multi-line test comment \ - With GitHub **Markdown** :sparkles: \ - - Created by [postgres-ai/migration-ci-action][1] \ - \ - [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" + - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" export COMMENT_BODY="{ \"body\": \"$COMMENT\" }" echo $COMMENT_BODY From 77c875a934f004eb80d2348a9bb3502e41372c6c Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:53:18 +0700 Subject: [PATCH 10/45] simplify markdown --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a408284..4c81c85 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,9 +16,9 @@ jobs: run: | echo $URL - export COMMENT="This is a multi-line test comment \ - - With GitHub **Markdown** :sparkles: \ - - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" + export COMMENT="This is a multi-line test comment | + - With GitHub **Markdown** :sparkles: | + - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" export COMMENT_BODY="{ \"body\": \"$COMMENT\" }" echo $COMMENT_BODY From c33c366edeb5e8eaa41c189a1e1896454274c69d Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:55:15 +0700 Subject: [PATCH 11/45] simplify markdown --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c81c85..5cd1d50 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,12 +13,11 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo $URL - - export COMMENT="This is a multi-line test comment | + COMMENT: "This is a multi-line test comment | - With GitHub **Markdown** :sparkles: | - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" + run: | + echo $URL export COMMENT_BODY="{ \"body\": \"$COMMENT\" }" echo $COMMENT_BODY From 2b49d9b8ba44d211dac36a74c0a8088c402f9cb4 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:57:48 +0700 Subject: [PATCH 12/45] reformat markdown --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cd1d50..ecd6492 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,15 +18,13 @@ jobs: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" run: | echo $URL - export COMMENT_BODY="{ \"body\": \"$COMMENT\" }" - echo $COMMENT_BODY - + echo $COMMENT curl \ -X POST \ $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "'$COMMENT_BODY'" + --data "{ \`"body\`": \`"$COMMENT\`" }" # Run DB migrations with the public action - name: DB migrations checker with DLE From f00b189066fe71152dc3300736d7f551b5dfcb5e Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 19:59:30 +0700 Subject: [PATCH 13/45] reformat markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecd6492..3d01c6d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "{ \`"body\`": \`"$COMMENT\`" }" + --data "{ \""body\"": \""$COMMENT\"" }" # Run DB migrations with the public action - name: DB migrations checker with DLE From 887f4e69cc0d61db8ba0234c807cc758ba2ad15d Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:03:53 +0700 Subject: [PATCH 14/45] reformat markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d01c6d..5f0544f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "{ \""body\"": \""$COMMENT\"" }" + --data "{ 'body': '$COMMENT' }" # Run DB migrations with the public action - name: DB migrations checker with DLE From 910bb2b468f69b0adb8afe10265da76ea8a15211 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:06:07 +0700 Subject: [PATCH 15/45] simplify markdown --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f0544f..d6c7d86 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment | - - With GitHub **Markdown** :sparkles: | - - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" + COMMENT: "This is a multi-line test comment - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" run: | echo $URL echo $COMMENT From cd00a7260e11a90727482cdce6ab5f2ad7303573 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:08:55 +0700 Subject: [PATCH 16/45] simplify markdown --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6c7d86..2fbaa7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,12 +17,13 @@ jobs: run: | echo $URL echo $COMMENT + export COMMENT_BODY="{'body':'$COMMENT'}" curl \ -X POST \ $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "{ 'body': '$COMMENT' }" + --data "'$COMMENT_BODY'" # Run DB migrations with the public action - name: DB migrations checker with DLE From 1ed17e61ecacb4ee8627f6a84382cd54dfdebe0a Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:09:49 +0700 Subject: [PATCH 17/45] simplify markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2fbaa7a..d6ef50b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" + COMMENT: "This is a multi-line test comment - With GitHub **Markdown** :sparkles:" run: | echo $URL echo $COMMENT From 6a20777249371a9cacf8c5e13f82068dd4d6784b Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:10:51 +0700 Subject: [PATCH 18/45] simplify markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6ef50b..aa9be93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment - With GitHub **Markdown** :sparkles:" + COMMENT: 'This is a multi-line test comment - With GitHub ' run: | echo $URL echo $COMMENT From bbb58c116b90904bd79f825083ad4235784b3171 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:12:55 +0700 Subject: [PATCH 19/45] simplify markdown --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa9be93..50bddd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,13 +17,13 @@ jobs: run: | echo $URL echo $COMMENT - export COMMENT_BODY="{'body':'$COMMENT'}" + export COMMENT_BODY='{"body":"$COMMENT"}' curl \ -X POST \ $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "'$COMMENT_BODY'" + --data "$COMMENT_BODY" # Run DB migrations with the public action - name: DB migrations checker with DLE From 1282026929a194f18128b23e8cb4a0721392d9ee Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:15:22 +0700 Subject: [PATCH 20/45] update markdown --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 50bddd3..93c335a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,12 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: 'This is a multi-line test comment - With GitHub ' + COMMENT: "This is a multi-line test comment - With GitHub | + - With GitHub **Markdown** :sparkles:" run: | echo $URL echo $COMMENT - export COMMENT_BODY='{"body":"$COMMENT"}' + export COMMENT_BODY="'{\"body\":\"$COMMENT\"}'" curl \ -X POST \ $URL \ From 2a190fff54e2c92cde6da9a2e340aa1cef3c8eca Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:18:52 +0700 Subject: [PATCH 21/45] single line markdown --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93c335a..a0bbd80 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,8 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment - With GitHub | - - With GitHub **Markdown** :sparkles:" + COMMENT: "This is a multi-line test comment - With GitHub | - With GitHub **Markdown** :sparkles:" run: | echo $URL echo $COMMENT From 39acf74119e928b7d27ce748517db325f0e50229 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:20:50 +0700 Subject: [PATCH 22/45] single line markdown --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0bbd80..7d6bd44 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,11 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment - With GitHub | - With GitHub **Markdown** :sparkles:" + COMMENT: "This is a multi-line test comment - With GitHub **Markdown**" run: | echo $URL echo $COMMENT - export COMMENT_BODY="'{\"body\":\"$COMMENT\"}'" + export COMMENT_BODY="{'body':'$COMMENT'}" curl \ -X POST \ $URL \ From 794f3f209fbd791a07a136a623b285e2d278684d Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:21:32 +0700 Subject: [PATCH 23/45] single line markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d6bd44..404073f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment - With GitHub **Markdown**" + COMMENT: "This is a multi-line test comment - With GitHub" run: | echo $URL echo $COMMENT From d4ce0e3462aaa0ede303d5be39acad2f740b972d Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:24:24 +0700 Subject: [PATCH 24/45] multiline markdown --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 404073f..90c1659 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,12 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment - With GitHub" + COMMENT: "This is a multi-line test comment | + - With GitHub **Markdown** :sparkles:" run: | echo $URL echo $COMMENT - export COMMENT_BODY="{'body':'$COMMENT'}" + export COMMENT_BODY='{"body":"'"$COMMENT"'"}' curl \ -X POST \ $URL \ From 72eaf21253c6dbd0a00d866faf245dd29c6ce20f Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:27:07 +0700 Subject: [PATCH 25/45] multiline markdown --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90c1659..7066dd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,18 +13,21 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment | - - With GitHub **Markdown** :sparkles:" + COMMENT: | + This is a multi-line test comment + - With GitHub **Markdown** :sparkles: + - Created by [postgres-ai/migration-ci-action][1] + + [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci run: | echo $URL echo $COMMENT - export COMMENT_BODY='{"body":"'"$COMMENT"'"}' curl \ -X POST \ $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data "$COMMENT_BODY" + --data '{"body":"'"$COMMENT"'"}' # Run DB migrations with the public action - name: DB migrations checker with DLE From ca798e00a98decc40510f7ab8c8636112985b109 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:29:21 +0700 Subject: [PATCH 26/45] multiline markdown --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7066dd8..1b64fac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,20 +14,21 @@ jobs: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMMENT: | - This is a multi-line test comment + This is a multi-line test comment: - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action][1] - [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci + [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci run: | echo $URL echo $COMMENT + export COMMENT_BODY='{"body":"'"$COMMENT"'"}' curl \ -X POST \ $URL \ -H "Content-Type: application/json" \ -H "Authorization: token $GITHUB_TOKEN" \ - --data '{"body":"'"$COMMENT"'"}' + --data "$COMMENT_BODY" # Run DB migrations with the public action - name: DB migrations checker with DLE From ba24113e6f2f13bd2643e5ba30c9350b15367688 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:30:46 +0700 Subject: [PATCH 27/45] multiline markdown --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b64fac..58c27dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,10 +14,10 @@ jobs: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMMENT: | - This is a multi-line test comment: - - With GitHub **Markdown** :sparkles: - - Created by [postgres-ai/migration-ci-action][1] - + This is a multi-line test comment: \ + - With GitHub **Markdown** :sparkles: \ + - Created by [postgres-ai/migration-ci-action][1] \ + \ [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci run: | echo $URL From efe229b80878e8188193a6bbd5e2b7a638a68c29 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:32:22 +0700 Subject: [PATCH 28/45] format as a multiline markdown --- .github/workflows/main.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58c27dd..10aded1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,12 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: | - This is a multi-line test comment: \ - - With GitHub **Markdown** :sparkles: \ - - Created by [postgres-ai/migration-ci-action][1] \ - \ - [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci + COMMENT: "This is a multi-line test comment: \n - With GitHub **Markdown** :sparkles: \n - Created by [postgres-ai/migration-ci-action][1] \n \n [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" run: | echo $URL echo $COMMENT From 0fcb67a131f104d1f9e93a5e192e0fae8d25be6f Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 13 Jul 2022 20:34:18 +0700 Subject: [PATCH 29/45] format as a multiline markdown --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 10aded1..087af6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: env: URL: ${{ github.event.pull_request.comments_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment: \n - With GitHub **Markdown** :sparkles: \n - Created by [postgres-ai/migration-ci-action][1] \n \n [ 1 ]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci" + COMMENT: "This is a multi-line test comment: - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" run: | echo $URL echo $COMMENT From bed8f9cb3e4bdbf1d04c9dc2b35df3387318a146 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 13:38:03 +0700 Subject: [PATCH 30/45] post a multiline comment --- .github/workflows/main.yml | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 087af6c..a0cf021 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,20 +10,29 @@ jobs: uses: actions/checkout@v2 - name: Post comment to PR - env: - URL: ${{ github.event.pull_request.comments_url }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT: "This is a multi-line test comment: - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" - run: | - echo $URL - echo $COMMENT - export COMMENT_BODY='{"body":"'"$COMMENT"'"}' - curl \ - -X POST \ - $URL \ - -H "Content-Type: application/json" \ - -H "Authorization: token $GITHUB_TOKEN" \ - --data "$COMMENT_BODY" +# env: +# URL: ${{ github.event.pull_request.comments_url }} +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# COMMENT: "This is a multi-line test comment: - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" +# run: | +# echo $URL +# echo $COMMENT +# export COMMENT_BODY='{"body":"'"$COMMENT"'"}' +# curl \ +# -X POST \ +# $URL \ +# -H "Content-Type: application/json" \ +# -H "Authorization: token $GITHUB_TOKEN" \ +# --data "$COMMENT_BODY" + uses: peter-evans/create-or-update-comment@v2 + with: + issue-number: ${{ github.event.issue.number }} + body: | + This is a multi-line test comment + - With GitHub **Markdown** :sparkles: + - Created by [postgres-ai/migration-ci-action][1] + + [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci # Run DB migrations with the public action - name: DB migrations checker with DLE From a067afda59eee35b6aac6eca6696ef62e220fa90 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 13:39:57 +0700 Subject: [PATCH 31/45] post a multiline comment --- .github/workflows/main.yml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0cf021..4949365 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,29 +10,15 @@ jobs: uses: actions/checkout@v2 - name: Post comment to PR -# env: -# URL: ${{ github.event.pull_request.comments_url }} -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# COMMENT: "This is a multi-line test comment: - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action](https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci)" -# run: | -# echo $URL -# echo $COMMENT -# export COMMENT_BODY='{"body":"'"$COMMENT"'"}' -# curl \ -# -X POST \ -# $URL \ -# -H "Content-Type: application/json" \ -# -H "Authorization: token $GITHUB_TOKEN" \ -# --data "$COMMENT_BODY" - uses: peter-evans/create-or-update-comment@v2 - with: - issue-number: ${{ github.event.issue.number }} - body: | - This is a multi-line test comment - - With GitHub **Markdown** :sparkles: - - Created by [postgres-ai/migration-ci-action][1] - - [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci + uses: peter-evans/create-or-update-comment@v2 + with: + issue-number: ${{ github.event.issue.number }} + body: | + This is a multi-line test comment + - With GitHub **Markdown** :sparkles: + - Created by [postgres-ai/migration-ci-action][1] + + [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci # Run DB migrations with the public action - name: DB migrations checker with DLE From 6757394abfd7ac567669f361b1f0cd4b290a0848 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 13:43:57 +0700 Subject: [PATCH 32/45] pass an issue number --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4949365..e5f54f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - name: Post comment to PR uses: peter-evans/create-or-update-comment@v2 with: - issue-number: ${{ github.event.issue.number }} + issue-number: ${{ github.event.issues.issue.number }} body: | This is a multi-line test comment - With GitHub **Markdown** :sparkles: From 68fbf4d7371d595a90f1719567f2f0e4d3a4119f Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 13:46:41 +0700 Subject: [PATCH 33/45] pass an issue number --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5f54f9..6bcabb4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - name: Post comment to PR uses: peter-evans/create-or-update-comment@v2 with: - issue-number: ${{ github.event.issues.issue.number }} + issue-number: ${{ github.event.pull_request.number }} body: | This is a multi-line test comment - With GitHub **Markdown** :sparkles: From 85176e975bd83e4b1b4318cfea848906a59c7ab8 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 14:23:53 +0700 Subject: [PATCH 34/45] pass an issue numbergs --- .github/workflows/main.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6bcabb4..3129fb9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,15 +11,26 @@ jobs: - name: Post comment to PR uses: peter-evans/create-or-update-comment@v2 - with: - issue-number: ${{ github.event.pull_request.number }} - body: | + env: + COMMENT: | This is a multi-line test comment - With GitHub **Markdown** :sparkles: - Created by [postgres-ai/migration-ci-action][1] [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci + ### Summary + | Status | Passed :heavy_check_mark: | + |:---:| --- | + | Session | #872 | + | Project | - | + | DLE instance | DLE version:v3.1.1-15-g1db723b-20220616-0755 | + | Data state at | 2022-06-12 00:00:06 +0000 UTC | + | Duration | 44s| + with: + issue-number: ${{ github.event.pull_request.number }} + body: $COMMENT + # Run DB migrations with the public action - name: DB migrations checker with DLE uses: postgres-ai/migration-ci-action@v0.1.1 From 4f7c8e6df21ec16bb3ab527bdb8ded8a172b0863 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 14:26:00 +0700 Subject: [PATCH 35/45] pass markdown content --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3129fb9..9efd711 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: | Duration | 44s| with: issue-number: ${{ github.event.pull_request.number }} - body: $COMMENT + body: ${{COMMENT}} # Run DB migrations with the public action - name: DB migrations checker with DLE From e233ab973fb6e63232460eeee26aaf30ff767627 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 14:27:35 +0700 Subject: [PATCH 36/45] use env variable --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9efd711..1a9a235 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: | Duration | 44s| with: issue-number: ${{ github.event.pull_request.number }} - body: ${{COMMENT}} + body: ${{ env.COMMENT }} # Run DB migrations with the public action - name: DB migrations checker with DLE From b8e8b89e0de1f80ce9b2b41e19148d66dca85bb7 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 15:47:42 +0700 Subject: [PATCH 37/45] use an official github action --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1a9a235..515a3f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: uses: actions/checkout@v2 - name: Post comment to PR - uses: peter-evans/create-or-update-comment@v2 + uses: actions/github-script@v6 env: COMMENT: | This is a multi-line test comment @@ -24,12 +24,17 @@ jobs: |:---:| --- | | Session | #872 | | Project | - | - | DLE instance | DLE version:v3.1.1-15-g1db723b-20220616-0755 | + | DLE version | v3.1.1-15-g1db723b-20220616-0755 | | Data state at | 2022-06-12 00:00:06 +0000 UTC | | Duration | 44s| with: - issue-number: ${{ github.event.pull_request.number }} - body: ${{ env.COMMENT }} + script: | + github.rest.issues.createComment({ + issue_number: github.event.pull_request.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'env.COMMENT' + }) # Run DB migrations with the public action - name: DB migrations checker with DLE From 45ebd351de7c4db0e533aa9f9f98bc73c242e5bd Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 15:52:23 +0700 Subject: [PATCH 38/45] use env variable --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 515a3f6..927fbb8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,11 +29,12 @@ jobs: | Duration | 44s| with: script: | + const { COMMENT } = process.env github.rest.issues.createComment({ - issue_number: github.event.pull_request.number, + issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'env.COMMENT' + body: ${COMMENT} }) # Run DB migrations with the public action From 931bfc9d28d11f5db52ceef194122055133824a2 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 14 Jul 2022 16:56:11 +0700 Subject: [PATCH 39/45] run composite actions --- .github/workflows/main.yml | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 927fbb8..bc955de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,37 +9,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Post comment to PR - uses: actions/github-script@v6 - env: - COMMENT: | - This is a multi-line test comment - - With GitHub **Markdown** :sparkles: - - Created by [postgres-ai/migration-ci-action][1] - - [1]: https://github.com/marketplace/actions/database-lab-realistic-db-testing-in-ci - - ### Summary - | Status | Passed :heavy_check_mark: | - |:---:| --- | - | Session | #872 | - | Project | - | - | DLE version | v3.1.1-15-g1db723b-20220616-0755 | - | Data state at | 2022-06-12 00:00:06 +0000 UTC | - | Duration | 44s| - with: - script: | - const { COMMENT } = process.env - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: ${COMMENT} - }) - # Run DB migrations with the public action - name: DB migrations checker with DLE - uses: postgres-ai/migration-ci-action@v0.1.1 +# uses: postgres-ai/migration-ci-action@v0.1.1 + uses: agneum/migration-action@composite-action id: db-migrations with: dbname: test_small From d5565910064ca0689a2758bba6a4731357aa8d59 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 27 Jul 2022 18:32:38 +0700 Subject: [PATCH 40/45] change action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc955de..40bf6ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: # Run DB migrations with the public action - name: DB migrations checker with DLE # uses: postgres-ai/migration-ci-action@v0.1.1 - uses: agneum/migration-action@composite-action + uses: postgres-ai/migration-ci-action@composite-action id: db-migrations with: dbname: test_small From f56e13ca227af24e78c3d2c5536af00c09b40ef2 Mon Sep 17 00:00:00 2001 From: akartasov Date: Thu, 28 Jul 2022 16:01:04 +0700 Subject: [PATCH 41/45] debug input --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40bf6ab..bc955de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: # Run DB migrations with the public action - name: DB migrations checker with DLE # uses: postgres-ai/migration-ci-action@v0.1.1 - uses: postgres-ai/migration-ci-action@composite-action + uses: agneum/migration-action@composite-action id: db-migrations with: dbname: test_small From ebde35d3385587b5d79fbbc9bdc7391e26f03c57 Mon Sep 17 00:00:00 2001 From: akartasov Date: Mon, 5 Sep 2022 16:56:43 +0700 Subject: [PATCH 42/45] test DB migration --- deploy/pgbench-accounts-index-bid.sql | 3 +++ revert/pgbench-accounts-index-bid.sql | 3 +++ sqitch.plan | 1 + verify/pgbench-accounts-index-bid.sql | 4 ++++ 4 files changed, 11 insertions(+) create mode 100644 deploy/pgbench-accounts-index-bid.sql create mode 100644 revert/pgbench-accounts-index-bid.sql create mode 100644 verify/pgbench-accounts-index-bid.sql diff --git a/deploy/pgbench-accounts-index-bid.sql b/deploy/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..c57f45d --- /dev/null +++ b/deploy/pgbench-accounts-index-bid.sql @@ -0,0 +1,3 @@ +-- Deploy green-zone:pgbench-accounts-index-bid to pg + +create index bid_idx on pgbench_accounts(bid); diff --git a/revert/pgbench-accounts-index-bid.sql b/revert/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..bd0d163 --- /dev/null +++ b/revert/pgbench-accounts-index-bid.sql @@ -0,0 +1,3 @@ +-- Revert green-zone:pgbench-accounts-index-bid from pg + +drop index concurrently if exists bid_idx; diff --git a/sqitch.plan b/sqitch.plan index 9321ad2..ab302f1 100644 --- a/sqitch.plan +++ b/sqitch.plan @@ -4,3 +4,4 @@ initial 2021-06-29T04:14:53Z akartasov # init a database schema @v0.0.1 2021-06-29T04:20:10Z akartasov # initial version +pgbench-accounts-index-bid 2022-09-05T09:53:14Z akartasov # add a new pgbench_accounts index diff --git a/verify/pgbench-accounts-index-bid.sql b/verify/pgbench-accounts-index-bid.sql new file mode 100644 index 0000000..3f299a9 --- /dev/null +++ b/verify/pgbench-accounts-index-bid.sql @@ -0,0 +1,4 @@ +-- Verify green-zone:pgbench-accounts-index-bid on pg + +begin; +rollback; From 36c4b61c442890520dd3c08fd7c6bce09062ae01 Mon Sep 17 00:00:00 2001 From: akartasov Date: Tue, 6 Sep 2022 17:31:12 +0700 Subject: [PATCH 43/45] create index concurrently --- deploy/pgbench-accounts-index-bid.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/pgbench-accounts-index-bid.sql b/deploy/pgbench-accounts-index-bid.sql index c57f45d..06ea4d9 100644 --- a/deploy/pgbench-accounts-index-bid.sql +++ b/deploy/pgbench-accounts-index-bid.sql @@ -1,3 +1,3 @@ -- Deploy green-zone:pgbench-accounts-index-bid to pg -create index bid_idx on pgbench_accounts(bid); +create index concurrently bid_idx on pgbench_accounts(bid); From e0f2cf0f900f9c5845188a0ce50f8a9f6cf6b192 Mon Sep 17 00:00:00 2001 From: akartasov Date: Fri, 28 Oct 2022 09:16:03 +0700 Subject: [PATCH 44/45] test updated action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc955de..6e16071 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: commands: | env sqitch deploy --verbose - echo 'Migration has been completed' + echo 'Migration has been completed.' download_artifacts: true observation_interval: "10" max_lock_duration: "1" From eac49364f8aec940f25cfd334f905d195b4c985a Mon Sep 17 00:00:00 2001 From: akartasov Date: Fri, 13 Oct 2023 17:53:45 +0700 Subject: [PATCH 45/45] run migration checker on a new machine --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6e16071..bc955de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: commands: | env sqitch deploy --verbose - echo 'Migration has been completed.' + echo 'Migration has been completed' download_artifacts: true observation_interval: "10" max_lock_duration: "1"