Skip to content

Commit

Permalink
feat(ci): upload timings (#16755)
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <wangrunji0408@163.com>
  • Loading branch information
wangrunji0408 committed May 15, 2024
1 parent 47dad6f commit 489d597
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/scripts/build-simulation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo "--- Generate RiseDev CI config"
cp ci/risedev-components.ci.env risedev-components.user.env

echo "--- Build deterministic simulation e2e test runner"
risedev sslt-build-all --profile ci-sim
risedev sslt-build-all --profile ci-sim --timings

echo "--- Show sccache stats"
sccache --show-stats
Expand All @@ -25,6 +25,7 @@ sccache --zero-stats
echo "--- Upload artifacts"
mv target/sim/ci-sim/risingwave_simulation ./risingwave_simulation
tar --zstd -cvf risingwave_simulation.tar.zst risingwave_simulation
buildkite-agent artifact upload target/sim/cargo-timings/cargo-timing.html

artifacts=(risingwave_simulation.tar.zst simulation-it-test.tar.zst)
echo -n "${artifacts[*]}" | parallel -d ' ' "buildkite-agent artifact upload ./{}"
4 changes: 3 additions & 1 deletion ci/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ cargo build \
"${RISINGWAVE_FEATURE_FLAGS[@]}" \
--features embedded-deno-udf \
--features embedded-python-udf \
--profile "$profile"
--profile "$profile" \
--timings


artifacts=(risingwave sqlsmith compaction-test risingwave_regress_test risingwave_e2e_extended_mode_test risedev-dev delete-range-test)
Expand All @@ -66,6 +67,7 @@ ldd target/"$profile"/risingwave

echo "--- Upload artifacts"
echo -n "${artifacts[*]}" | parallel -d ' ' "mv target/$profile/{} ./{}-$profile && compress-and-upload-artifact ./{}-$profile"
buildkite-agent artifact upload target/cargo-timings/cargo-timing.html

# This magically makes it faster to exit the docker
rm -rf target
Expand Down

0 comments on commit 489d597

Please sign in to comment.