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

fix: update bytebase-sql-review.yml for CICD #8984

Merged
merged 3 commits into from Oct 30, 2023

Conversation

bds-congnguyen
Copy link
Contributor

Why:
Sometimes, the pipeline return sql review passed but when deploy on Bytebase, the sql checking (UI) return some warning/error check.
We re-review log in cicd and noticed that script return

sh: 0: unknown operand

that cause next steps in script will always failed because there is no data.

Fix:
The echo command is wrapped in double quotes to preserve the JSON structure stored in the content variable.
in some case, it'll return

sh: 0: unknown operand

and cause script run incorrectly

Tthe `echo` command is wrapped in double quotes to preserve the JSON structure stored in the `content` variable.
in some case, it'll return
```
sh: 0: unknown operand
```
and cause script run incorrectly
Tthe `echo` command is wrapped in double quotes to preserve the JSON structure stored in the `content` variable.
in some case, it'll return
```
sh: 0: unknown operand
```
and cause script run incorrectly
Update bytebase-sql-review.yml
@cla-bot
Copy link

cla-bot bot commented Oct 30, 2023

We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please please sign CLA and add your name to contributors list.

@RainbowDashy
Copy link
Contributor

LGTM, please sign the cla.

@d-bytebase
Copy link
Contributor

@cla-bot check.

@cla-bot cla-bot bot added the cla-signed label Oct 30, 2023
@cla-bot
Copy link

cla-bot bot commented Oct 30, 2023

The GitHub CLA Bot is rechecking to see that you have signed the CLA

@d-bytebase d-bytebase changed the title Update bytebase-sql-review.yml for CICD fix: Update bytebase-sql-review.yml for CICD Oct 30, 2023
@d-bytebase d-bytebase changed the title fix: Update bytebase-sql-review.yml for CICD fix: update bytebase-sql-review.yml for CICD Oct 30, 2023
@bds-congnguyen
Copy link
Contributor Author

LGTM, please sign the cla.

already signed CLA, can you help me recheck CLA?

@RainbowDashy RainbowDashy merged commit 4e9fc75 into bytebase:main Oct 30, 2023
9 checks passed
@RainbowDashy
Copy link
Contributor

Thanks!

@d-bytebase
Copy link
Contributor

The change has been cherry-picked to 2.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants