Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: increase parallel (#9614)

Danny Xuf6703146844f
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index 89b745d366..2808e28ee8 100644
--- a/.github/workflows/backend-tests.yml
+++ b/.github/workflows/backend-tests.yml
@@ -43,7 +43,7 @@ jobs:
args: --verbose --timeout 20m --max-same-issues=30 --allow-parallel-runners
skip-cache: true
- name: Run all tests
- run: go test -v ./backend/... -tags=mysql | tee test.log; exit ${PIPESTATUS[0]}
+ run: go test -p=20 -tags=mysql -v ./backend/... | tee test.log; exit ${PIPESTATUS[0]}
- name: Pretty print tests running time
# grep: filter out lines like "--- PASS: TestVCS (15.04s)"
# sed: remove unnecessary characters
diff --git a/scripts/.air.toml b/scripts/.air.toml
index 1d2fbf27f4..632abddb09 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -10,6 +10,7 @@ bin = './.air/bytebase --port 8080 --data . --debug --disable-sample'
cmd = """
go build \
-gcflags="all=-N -l" \
+ -p=16 \
--tags "minimal" \
-o ./.air/bytebase ./backend/bin/server/main.go"""
delay = 500
diff --git a/scripts/build_bytebase.sh b/scripts/build_bytebase.sh
index 7a7021205e..b392c61748 100755
--- a/scripts/build_bytebase.sh
+++ b/scripts/build_bytebase.sh
@@ -58,7 +58,7 @@ flags="-X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION
-X 'github.com/bytebase/bytebase/backend/bin/server/cmd.builduser=$(id -u -n)'"
# -ldflags="-w -s" means omit DWARF symbol table and the symbol table and debug information
-go build --tags "release,embed_frontend" -ldflags "-w -s $flags" -o ${OUTPUT_BINARY} ./backend/bin/server/main.go
+go build -p=16 --tags "release,embed_frontend" -ldflags "-w -s $flags" -o ${OUTPUT_BINARY} ./backend/bin/server/main.go
echo "Completed building Bytebase backend."