Skip to content

Commit

Permalink
Merge branch 'main' into wrj/expr-bench
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 12, 2022
2 parents 03a12bd + ae398b3 commit 91db0e5
Show file tree
Hide file tree
Showing 84 changed files with 2,162 additions and 744 deletions.
35 changes: 34 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ members = [
"src/sqlparser",
"src/sqlparser/test_runner",
"src/storage",
"src/storage/backup",
"src/storage/backup/cmd",
"src/storage/compactor",
"src/storage/hummock_sdk",
"src/storage/hummock_test",
Expand Down
1 change: 1 addition & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extend = [
{ path = "src/risedevtool/risedev-components.toml" },
{ path = "src/frontend/planner_test/planner_test.toml" },
{ path = "src/tests/compaction_test/Makefile.toml" },
{ path = "src/storage/backup/integration_tests/Makefile.toml" },
]

env_files = ["./risedev-components.user.env"]
Expand Down
4 changes: 4 additions & 0 deletions ci/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ cargo build \
-p risingwave_regress_test \
-p risingwave_sqlsmith \
-p risingwave_compaction_test \
-p risingwave_backup_cmd \
--features "static-link static-log-level" --profile "$profile"

echo "--- Compress debug info for artifacts"
objcopy --compress-debug-sections=zlib-gnu target/"$target"/risingwave
objcopy --compress-debug-sections=zlib-gnu target/"$target"/sqlsmith
objcopy --compress-debug-sections=zlib-gnu target/"$target"/compaction-test
objcopy --compress-debug-sections=zlib-gnu target/"$target"/backup-restore
objcopy --compress-debug-sections=zlib-gnu target/"$target"/risingwave_regress_test
objcopy --compress-debug-sections=zlib-gnu target/"$target"/risedev-dev

Expand All @@ -54,6 +56,7 @@ ldd target/"$target"/risingwave

echo "--- Upload artifacts"
cp target/"$target"/compaction-test ./compaction-test-"$profile"
cp target/"$target"/backup-restore ./backup-restore-"$profile"
cp target/"$target"/risingwave ./risingwave-"$profile"
cp target/"$target"/risedev-dev ./risedev-dev-"$profile"
cp target/"$target"/risingwave_regress_test ./risingwave_regress_test-"$profile"
Expand All @@ -63,3 +66,4 @@ buildkite-agent artifact upload risedev-dev-"$profile"
buildkite-agent artifact upload risingwave_regress_test-"$profile"
buildkite-agent artifact upload ./sqlsmith-"$profile"
buildkite-agent artifact upload ./compaction-test-"$profile"
buildkite-agent artifact upload ./backup-restore-"$profile"
1 change: 1 addition & 0 deletions ci/scripts/cron-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ source ci/scripts/common.env.sh
export RUN_SQLSMITH=1; # fuzz tests
export SQLSMITH_COUNT=1000; # fuzz with 1000 queries
export RUN_COMPACTION=1;
export RUN_META_BACKUP=1;
source ci/scripts/run-e2e-test.sh
2 changes: 2 additions & 0 deletions ci/scripts/pr.env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ set -e

# Don't run e2e compaction test in PR build
export RUN_COMPACTION=0;
# Don't run meta store backup/recovery test
export RUN_META_BACKUP=0;

if [[ -n "$CHANGED" ]]; then
echo "Changes to Sqlsmith source files detected.";
Expand Down
12 changes: 12 additions & 0 deletions ci/scripts/run-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ sqllogictest -p 4566 -d dev -e postgres-extended './e2e_test/extended_query/**/*
echo "--- Kill cluster"
cargo make ci-kill

if [[ "$RUN_META_BACKUP" -eq "1" ]]; then
echo "--- e2e, ci-meta-backup-test"
buildkite-agent artifact download backup-restore-"$profile" target/debug/
mv target/debug/backup-restore-"$profile" target/debug/backup-restore
chmod +x ./target/debug/backup-restore

test_root="src/storage/backup/integration_tests"
BACKUP_TEST_PREFIX_BIN="target/debug" BACKUP_TEST_PREFIX_DATA=".risingwave/data" bash "${test_root}/run_all.sh"
echo "--- Kill cluster"
cargo make kill
fi

if [[ "$RUN_COMPACTION" -eq "1" ]]; then
echo "--- e2e, ci-compaction-test, nexmark_q7"
cargo make clean-data
Expand Down
232 changes: 232 additions & 0 deletions dashboard/proto/gen/backup_service.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 91db0e5

Please sign in to comment.