-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zongyu/sqlsmith_subquery
- Loading branch information
Showing
460 changed files
with
15,485 additions
and
9,092 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CI Workflow | ||
|
||
## Sqlsmith | ||
|
||
Sqlsmith has two `cron` workflows. | ||
1. Frontend tests | ||
2. E2e tests (TODO) | ||
|
||
It is separate from PR workflow because: | ||
1. Fuzzing tests might fail as new features and generators are added. | ||
2. Avoid slowing down PR workflow, fuzzing tests take a while to run. | ||
We can include failing tests in e2e / unit tests when encountered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
# Exits as soon as any line fails. | ||
set -euo pipefail | ||
|
||
date="$(date +%Y%m%d)" | ||
ghcraddr="ghcr.io/singularity-data" | ||
|
||
components=( | ||
"risingwave" | ||
"compute-node" | ||
"meta-node" | ||
"frontend-node" | ||
"compactor-node" | ||
) | ||
|
||
echo "--- ghcr login" | ||
echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin | ||
|
||
for component in "${components[@]}" | ||
do | ||
echo "--- multi arch image create : ${component}" | ||
if [[ "${#BUILDKITE_COMMIT}" = 40 ]]; then | ||
# If the commit is 40 characters long, it's probably a SHA. | ||
TAG="${ghcraddr}/${component}:git-${BUILDKITE_COMMIT}" | ||
docker manifest create --insecure "$TAG" \ | ||
--amend "${ghcraddr}/${component}:latest-x86_64" \ | ||
--amend "${ghcraddr}/${component}:latest-aarch64" | ||
docker manifest push --insecure "$TAG" | ||
fi | ||
|
||
if [ "${BUILDKITE_SOURCE}" == "schedule" ] || [ "${BUILDKITE_SOURCE}" == "ui" ]; then | ||
# If this is a schedule/ui build, tag the image with the date. | ||
TAG="${ghcraddr}/${component}:nightly-${date}" | ||
docker manifest create --insecure "$TAG" \ | ||
--amend "${ghcraddr}/${component}:latest-x86_64" \ | ||
--amend "${ghcraddr}/${component}:latest-aarch64" | ||
docker manifest push --insecure "$TAG" | ||
fi | ||
|
||
if [[ -n "${BUILDKITE_TAG}" ]]; then | ||
# If there's a tag, we tag the image. | ||
TAG="${ghcraddr}/${component}:${BUILDKITE_TAG}" | ||
docker manifest create --insecure "$TAG" \ | ||
--amend "${ghcraddr}/${component}:latest-x86_64" \ | ||
--amend "${ghcraddr}/${component}:latest-aarch64" | ||
docker manifest push --insecure "$TAG" | ||
fi | ||
|
||
TAG="${ghcraddr}/${component}:latest" | ||
docker manifest create --insecure "$TAG" \ | ||
--amend "${ghcraddr}/${component}:latest-x86_64" \ | ||
--amend "${ghcraddr}/${component}:latest-aarch64" | ||
docker manifest push --insecure "$TAG" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Exits as soon as any line fails. | ||
set -euo pipefail | ||
|
||
source ci/scripts/common.env.sh | ||
source ci/scripts/pr.env.sh | ||
./ci/scripts/run-unit-test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
set -euo pipefail | ||
|
||
set +e | ||
# Set features, depending on our workflow | ||
# If sqlsmith files are modified, we run unit tests with sqlsmith enabled | ||
# by overriding RUSTFLAGS to enable sqlsmith feature. | ||
CHANGED=$(git diff --name-only origin/main | grep "ci/scripts/pr.env.sh\|src/tests/sqlsmith") | ||
set -e | ||
|
||
if [[ -n "$CHANGED" ]]; then | ||
echo "Changes to Sqlsmith source files detected."; | ||
export RUN_SQLSMITH=1; | ||
echo "Enabled Sqlsmith tests."; | ||
else | ||
# Otherwise we use default. | ||
export RUN_SQLSMITH=0; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Exits as soon as any line fails. | ||
set -euo pipefail | ||
|
||
source ci/scripts/common.env.sh | ||
export RUN_SQLSMITH=1; # fuzz tests | ||
source ci/scripts/run-unit-test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.