Skip to content

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

chore: fix machorelocsect size mismatch error (#10783)

Danny Xuf16f5a44dc04
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml
index df1f8a2009..a064386d08 100644
--- a/.github/workflows/backend-tests.yml
+++ b/.github/workflows/backend-tests.yml
@@ -40,10 +40,10 @@ jobs:
uses: golangci/golangci-lint-action@v4
with:
version: v1.55.2
- args: -j 16 --verbose --timeout 20m --max-same-issues=30 --allow-parallel-runners
+ args: -j 8 --verbose --timeout 20m --max-same-issues=30 --allow-parallel-runners
skip-cache: true
- name: Run all tests
- run: go test -p=16 -tags=mysql -v ./backend/... | tee test.log; exit ${PIPESTATUS[0]}
+ run: go test -p=8 -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 c00adc3523..b49f9adede 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -9,8 +9,7 @@ bin = './.air/bytebase --port 8080 --data . --debug --disable-sample --developme
cmd = """
go build \
- -gcflags="all=-N -l" \
- -p=16 \
+ -p=8 \
--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 e8aa69815c..88650477a3 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 -p=16 --tags "release,embed_frontend" -ldflags "-w -s $flags" -o ${OUTPUT_BINARY} ./backend/bin/server/main.go
+go build -p=8 --tags "release,embed_frontend" -ldflags "-w -s $flags" -o ${OUTPUT_BINARY} ./backend/bin/server/main.go
echo "Completed building Bytebase backend."