Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: create release package for CLIs (#3635)
Summary: The current release mechanism only allows releasing everything. Introduce a new option to release just the CLIs: cqlsh, redis-cli, and ysqlsh. Do so by creating a package level in `yb_release_manifest.json`, as suggested by Bogdan Matican. At that level, split off to `all`, containing the old configuration, and `cli`, containing only what's necessary for the CLIs. Update all the scripts to respect this new manifest structure. Don't change build: regardless of release package, build the whole `packaged` target. Also, move `postgres/bin/*` from `get_seed_executable_patterns` to `yb_release_manifest.json` because it seems to work and is more uniform. Depends on D7970 Close: #3635 Test Plan: ```sh ./yb_release --force # verify a release tar.gz is created that has full features as before git clean -dX # use at your own risk ./yb_release --force --package_name all # verify a release tar.gz is created that has full features as before git clean -dX # use at your own risk ./yb_release --force --package_name cli tar xzf build/yugabyte-*.tar.gz -C /tmp cd /tmp/yugabyte-* if [ "$(uname)" = linux ]; then ./bin/post_install.sh fi # create a cluster with default IP and port ./bin/cqlsh --execute "SHOW VERSION" ./bin/redis-cli "INFO" ./bin/ysqlsh --command "SELECT version()" ``` Reviewers: mikhail, neha, sanketh, bogdan Reviewed By: bogdan Subscribers: jenkins-bot, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D8031
- Loading branch information
Jason Kim
committed
Feb 26, 2020
1 parent
c685bc4
commit 4b4baae
Showing
4 changed files
with
70 additions
and
48 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,43 +1,62 @@ | ||
{ | ||
"%symlinks%": { | ||
"bin/psql": "../postgres/bin/ysqlsh", | ||
"bin/ysqlsh": "../postgres/bin/ysqlsh" | ||
"all": { | ||
"%symlinks%": { | ||
"bin/psql": "../postgres/bin/ysqlsh", | ||
"bin/ysqlsh": "../postgres/bin/ysqlsh" | ||
}, | ||
".": ["$BUILD_ROOT/version_metadata.json"], | ||
"bin": [ | ||
"$BUILD_ROOT/bin/ldb", | ||
"$BUILD_ROOT/bin/log-dump", | ||
"$BUILD_ROOT/bin/sst_dump", | ||
"$BUILD_ROOT/bin/yb-admin", | ||
"$BUILD_ROOT/bin/yb-bulk_load", | ||
"$BUILD_ROOT/bin/yb-generate_partitions_main", | ||
"$BUILD_ROOT/bin/yb-master", | ||
"$BUILD_ROOT/bin/yb-pbc-dump", | ||
"$BUILD_ROOT/bin/yb-ts-cli", | ||
"$BUILD_ROOT/bin/yb-tserver", | ||
"$BUILD_ROOT/bin/yb-ysck", | ||
"$BUILD_ROOT/bin/yb_load_test_tool", | ||
"$BUILD_ROOT/postgres/bin/*", | ||
"$THIRDPARTY_BUILD_SPECIFIC_DIR/bin/pprof", | ||
"bin/bulk_load_cleanup.sh", | ||
"bin/bulk_load_helper.sh", | ||
"bin/configure", | ||
"bin/log_cleanup.sh", | ||
"bin/yb-check-consistency.py", | ||
"bin/yb-check-failed-tablets.sh", | ||
"bin/yb-prof.py", | ||
"bin/yugabyted", | ||
"build-support/post_install.sh", | ||
"submodules/yugabyte-installation/bin/yb-ctl", | ||
"thirdparty/installed/common/bin/redis-cli", | ||
"thirdparty/installed/common/cqlsh/bin/cqlsh", | ||
"thirdparty/installed/common/cqlsh/bin/cqlsh.py" | ||
], | ||
"lib": ["thirdparty/installed/common/cqlsh/lib/*"], | ||
"postgres": ["$BUILD_ROOT/postgres/*"], | ||
"pylib": ["thirdparty/installed/common/cqlsh/pylib/*"], | ||
"share": [ | ||
"$BUILD_ROOT/share/initial_sys_catalog_snapshot", | ||
"sample/*.sql" | ||
], | ||
"www": ["www/*"] | ||
}, | ||
".": ["$BUILD_ROOT/version_metadata.json"], | ||
"bin": [ | ||
"$BUILD_ROOT/bin/ldb", | ||
"$BUILD_ROOT/bin/log-dump", | ||
"$BUILD_ROOT/bin/sst_dump", | ||
"$BUILD_ROOT/bin/yb-admin", | ||
"$BUILD_ROOT/bin/yb-bulk_load", | ||
"$BUILD_ROOT/bin/yb-generate_partitions_main", | ||
"$BUILD_ROOT/bin/yb-master", | ||
"$BUILD_ROOT/bin/yb-pbc-dump", | ||
"$BUILD_ROOT/bin/yb-ts-cli", | ||
"$BUILD_ROOT/bin/yb-tserver", | ||
"$BUILD_ROOT/bin/yb-ysck", | ||
"$BUILD_ROOT/bin/yb_load_test_tool", | ||
"$THIRDPARTY_BUILD_SPECIFIC_DIR/bin/pprof", | ||
"bin/bulk_load_cleanup.sh", | ||
"bin/bulk_load_helper.sh", | ||
"bin/configure", | ||
"bin/log_cleanup.sh", | ||
"bin/yb-check-consistency.py", | ||
"bin/yb-check-failed-tablets.sh", | ||
"bin/yb-prof.py", | ||
"bin/yugabyted", | ||
"build-support/post_install.sh", | ||
"submodules/yugabyte-installation/bin/yb-ctl", | ||
"thirdparty/installed/common/bin/redis-cli", | ||
"thirdparty/installed/common/cqlsh/bin/cqlsh", | ||
"thirdparty/installed/common/cqlsh/bin/cqlsh.py" | ||
], | ||
"lib": ["thirdparty/installed/common/cqlsh/lib/*"], | ||
"postgres": ["$BUILD_ROOT/postgres/*"], | ||
"pylib": ["thirdparty/installed/common/cqlsh/pylib/*"], | ||
"share": [ | ||
"$BUILD_ROOT/share/initial_sys_catalog_snapshot", | ||
"sample/*.sql" | ||
], | ||
"www": ["www/*"] | ||
"cli": { | ||
"%symlinks%": { | ||
"bin/psql": "../postgres/bin/ysqlsh", | ||
"bin/ysqlsh": "../postgres/bin/ysqlsh" | ||
}, | ||
".": ["$BUILD_ROOT/version_metadata.json"], | ||
"bin": [ | ||
"$BUILD_ROOT/postgres/bin/ysqlsh", | ||
"build-support/post_install.sh", | ||
"thirdparty/installed/common/bin/redis-cli", | ||
"thirdparty/installed/common/cqlsh/bin/cqlsh", | ||
"thirdparty/installed/common/cqlsh/bin/cqlsh.py" | ||
], | ||
"lib": ["thirdparty/installed/common/cqlsh/lib/*"], | ||
"pylib": ["thirdparty/installed/common/cqlsh/pylib/*"] | ||
} | ||
} |