Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update gitlab ci summary message (#5919)
ecmadaobfba29724778
diff --git a/backend/server/webhook.go b/backend/server/webhook.goindex 16f5db44ee..d47c8afb1d 100644--- a/backend/server/webhook.go+++ b/backend/server/webhook.go@@ -1754,7 +1754,7 @@ func convertSQLAdviceToGitLabCIResult(adviceMap map[string][]advisor.Advice) *aptestcase := fmt.Sprintf("<testcase name=\"%s\" classname=\"%s\" file=\"%s#L%d\">\n<failure>\n%s\n</failure>\n</testcase>",- fmt.Sprintf("%s#L%d: %s", filename, line, advice.Title),+ fmt.Sprintf("[%s] %s#L%d: %s", advice.Status, filename, line, advice.Title),filePath,filePath,line,diff --git a/backend/server/webhook_test.go b/backend/server/webhook_test.goindex 6689769b9b..2352104aa2 100644--- a/backend/server/webhook_test.go+++ b/backend/server/webhook_test.go@@ -137,13 +137,13 @@ func TestVCSSQLReview_ConvertSQLAdviceToGitLabCIResult(t *testing.T) {`<?xml version="1.0" encoding="UTF-8"?><testsuites name="SQL Review"><testsuite name="file1.sql">-<testcase name="file1.sql#L1: column.no-null" classname="file1.sql" file="file1.sql#L1">+<testcase name="[WARN] file1.sql#L1: column.no-null" classname="file1.sql" file="file1.sql#L1"><failure>Error: Column "id" in "public"."book" cannot have NULL value.You can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#402</failure></testcase>-<testcase name="file1.sql#L2: naming.index.idx" classname="file1.sql" file="file1.sql#L2">+<testcase name="[ERROR] file1.sql#L2: naming.index.idx" classname="file1.sql" file="file1.sql#L2"><failure>Error: Index in table "tech_book" mismatches the naming convention, expect "^$|^idx_tech_book_id_name$" but found "tech_book_id_name".You can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#303@@ -151,13 +151,13 @@ You can check the docs at https://www.bytebase.com/docs/reference/error-code/adv</testcase></testsuite><testsuite name="file2.sql">-<testcase name="file2.sql#L1: naming.table" classname="file2.sql" file="file2.sql#L1">+<testcase name="[WARN] file2.sql#L1: naming.table" classname="file2.sql" file="file2.sql#L1"><failure>Error: "techBook" mismatches table naming convention, naming format should be "^[a-z]+(_[a-z]+)*$".You can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#301</failure></testcase>-<testcase name="file2.sql#L4: naming.index.uk" classname="file2.sql" file="file2.sql#L4">+<testcase name="[ERROR] file2.sql#L4: naming.index.uk" classname="file2.sql" file="file2.sql#L4"><failure>Error: Unique key in table "tech_book" mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found "tech_book_id_name".You can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#304diff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.goindex 456c3d6382..ae1eb20ac5 100644--- a/backend/tests/schema_update_test.go+++ b/backend/tests/schema_update_test.go@@ -1505,7 +1505,7 @@ func TestVCS_SQL_Review(t *testing.T) {Status: advisor.Warn,Content: []string{fmt.Sprintf(- "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<testsuites name=\"SQL Review\">\n<testsuite name=\"%s\">\n<testcase name=\"%s#L1: SQL review policy not found\" classname=\"%s\" file=\"%s#L1\">\n<failure>\nError: You can configure the SQL review policy on %s/setting/sql-review.\nYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#2\n</failure>\n</testcase>\n</testsuite>\n</testsuites>",+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<testsuites name=\"SQL Review\">\n<testsuite name=\"%s\">\n<testcase name=\"[WARN] %s#L1: SQL review policy not found\" classname=\"%s\" file=\"%s#L1\">\n<failure>\nError: You can configure the SQL review policy on %s/setting/sql-review.\nYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#2\n</failure>\n</testcase>\n</testsuite>\n</testsuites>",filePath,pathes[len(pathes)-1],filePath,@@ -1522,7 +1522,7 @@ func TestVCS_SQL_Review(t *testing.T) {Status: advisor.Warn,Content: []string{fmt.Sprintf(- "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<testsuites name=\"SQL Review\">\n<testsuite name=\"%s\">\n<testcase name=\"%s#L1: column.required\" classname=\"%s\" file=\"%s#L1\">\n<failure>\nError: Table \"book\" requires columns: created_ts, creator_id, updated_ts, updater_id.\nYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#401\n</failure>\n</testcase>\n<testcase name=\"%s#L1: column.no-null\" classname=\"%s\" file=\"%s#L1\">\n<failure>\nError: Column \"name\" in \"public\".\"book\" cannot have NULL value.\nYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#402\n</failure>\n</testcase>\n</testsuite>\n</testsuites>",+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<testsuites name=\"SQL Review\">\n<testsuite name=\"%s\">\n<testcase name=\"[WARN] %s#L1: column.required\" classname=\"%s\" file=\"%s#L1\">\n<failure>\nError: Table \"book\" requires columns: created_ts, creator_id, updated_ts, updater_id.\nYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#401\n</failure>\n</testcase>\n<testcase name=\"[WARN] %s#L1: column.no-null\" classname=\"%s\" file=\"%s#L1\">\n<failure>\nError: Column \"name\" in \"public\".\"book\" cannot have NULL value.\nYou can check the docs at https://www.bytebase.com/docs/reference/error-code/advisor#402\n</failure>\n</testcase>\n</testsuite>\n</testsuites>",filePath,filename,filePath,