Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(release): release risingwave all-in-one #13133

Merged
merged 9 commits into from
Oct 31, 2023

Conversation

chenzl25
Copy link
Contributor

@chenzl25 chenzl25 commented Oct 30, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

  • Release all-in-one binary with connector libs.

exit 1
fi
fi
#echo "--- Check risingwave release version"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it's commented?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to get the test to pass temporarily.

ci/scripts/release.sh Outdated Show resolved Hide resolved
@@ -92,6 +94,10 @@ if [[ -n "${BUILDKITE_TAG}" ]]; then

echo "--- Release build and upload risingwave connector node jar asset"
gh release upload "${BUILDKITE_TAG}" risingwave-connector-"${BUILDKITE_TAG}".tar.gz

echo "--- Release upload risingwave-all-in-one asset"
tar -czvf risingwave-all-in-one-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz risingwave libs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we consider setting a default lib path relative to the risingwave binary in jvm initialization so that users don't need to explicitly set the env var when they want to extract the tar and run directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make senses. We can use a default lib path when the environment variable CONNECTOR_LIBS_PATH is not set.

@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Merging #13133 (0cd12b2) into main (9a5e2b8) will decrease coverage by 0.03%.
Report is 8 commits behind head on main.
The diff coverage is 9.47%.

@@            Coverage Diff             @@
##             main   #13133      +/-   ##
==========================================
- Coverage   68.27%   68.25%   -0.03%     
==========================================
  Files        1499     1500       +1     
  Lines      252602   252691      +89     
==========================================
+ Hits       172459   172465       +6     
- Misses      80143    80226      +83     
Flag Coverage Δ
rust 68.25% <9.47%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/frontend/src/binder/expr/function.rs 78.63% <100.00%> (+0.09%) ⬆️
src/frontend/src/expr/pure.rs 87.69% <ø> (ø)
src/jni_core/src/jvm_runtime.rs 0.00% <0.00%> (ø)
src/frontend/src/binder/expr/binary_op.rs 71.87% <0.00%> (-3.95%) ⬇️
src/sqlparser/src/ast/operator.rs 84.93% <0.00%> (-6.25%) ⬇️
src/sqlparser/src/parser.rs 87.39% <16.66%> (-0.14%) ⬇️
src/sqlparser/src/tokenizer.rs 92.67% <20.00%> (-0.94%) ⬇️
src/expr/impl/src/scalar/jsonb_contains.rs 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@huangjw806 huangjw806 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Don’t forget to return the commented code.

"environment variable CONNECTOR_LIBS_PATH is not specified".to_string(),
)
.into());
tracing::warn!("environment variable CONNECTOR_LIBS_PATH is not specified, so use default path `./libs` instead");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to join the env.args[0](which is the path of the binary) and ./libs to get the path. The current way only works correctly when pwd is the same as the directory of risingwave binary (where we can run ./risingwave). If users run as /.../.../risingwave, we may not get the correct libs path.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TennyZhuang TennyZhuang changed the title feat(release): release risingwave all-in-one (release): release risingwave all-in-one Oct 30, 2023
@TennyZhuang TennyZhuang changed the title (release): release risingwave all-in-one build(release): release risingwave all-in-one Oct 30, 2023
@chenzl25 chenzl25 added this pull request to the merge queue Oct 31, 2023
@chenzl25 chenzl25 added the user-facing-changes Contains changes that are visible to users label Oct 31, 2023
Merged via the queue into main with commit 9616cbf Oct 31, 2023
32 of 33 checks passed
@chenzl25 chenzl25 deleted the dylan/release_risingwave_all_in_one branch October 31, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/build user-facing-changes Contains changes that are visible to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

include connector-node's jar and dependency libs in the release package
3 participants