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

chore(dist): update validate release scripts for releasing 1.5.0 #379

Merged
merged 8 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/validate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
release_version:
required: true
description: svn release version
default: '1.3.0'
default: '1.5.0'
gpg_user:
required: true
description: current release manager(gpg username)
default: 'imbajin'
description: current release manager (gpg username)
default: 'vgalaxies'

push:
branches:
Expand Down Expand Up @@ -64,6 +64,9 @@ jobs:

- name: 1. Download SVN Sources
run: |
if [[ ${{ matrix.os }} =~ "macos" ]]; then
brew install svn
fi
rm -rf dist/${{ inputs.release_version }}
svn co ${URL_PREFIX}/${{ inputs.release_version }} dist/${{ inputs.release_version }}

Expand Down Expand Up @@ -99,7 +102,7 @@ jobs:
cd dist/${{ inputs.release_version }} || exit

ls -lh ./*.tar.gz
CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial"
CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial|JSON"
CATEGORY_B="\bCDDL1|\bCPL|\bEPL|\bIPL|\bMPL|\bSPL|OSL-3.0|UnRAR License|Erlang Public License|\bOFL\b|Ubuntu Font License Version 1.0|IPA Font License Agreement v1.0|EPL2.0|CC-BY"
for i in *src.tar.gz; do
echo "$i"
Expand Down Expand Up @@ -165,12 +168,15 @@ jobs:
done

# 4.8 test compile the packages
if [[ (${{ matrix.java_version }} == 8 && "$i" =~ "computer") ]] || [[ "$i" =~ 'hugegraph-ai' ]]; then
if [[ (${{ matrix.java_version }} == 8 && "$i" =~ "computer") ]] || [[ "$i" =~ "hugegraph-ai" ]]; then
echo "Skip compile computer module in java8 & AI module in all versions"
popd || exit
continue
fi
# TODO: consider using commands that are entirely consistent with building binary packages
if [[ "$i" =~ "computer" ]]; then
cd computer
fi
mvn package -DskipTests -Papache-release -ntp -e || exit
ls -lh

Expand Down Expand Up @@ -292,7 +298,8 @@ jobs:
run: |
cd dist/${{ inputs.release_version }} || exit

pushd ./*hugegraph-incubating*${{ inputs.release_version }} || exit
# TODO: run pd & store
pushd ./*hugegraph-incubating*${{ inputs.release_version }}/*hugegraph-server-incubating*${{ inputs.release_version }} || exit
bin/init-store.sh || exit
sleep 3
bin/start-hugegraph.sh || exit
Expand Down Expand Up @@ -331,13 +338,14 @@ jobs:

popd || exit
# stop server
pushd ./*hugegraph-incubating*${{ inputs.release_version }} || exit
pushd ./*hugegraph-incubating*${{ inputs.release_version }}/*hugegraph-server-incubating*${{ inputs.release_version }} || exit
bin/stop-hugegraph.sh || exit
popd || exit

strategy:
fail-fast: false
matrix:
java_version: ['8','11']
# disable java8 because of server
java_version: ['11']
# TODO: support windows-latest or other OS in future
os: [ubuntu-latest, macos-latest]
10 changes: 7 additions & 3 deletions dist/validate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ done
####################################
cd "${WORK_DIR}/dist/${RELEASE_VERSION}"

CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial"
CATEGORY_X="\bGPL|\bLGPL|Sleepycat License|BSD-4-Clause|\bBCL\b|JSR-275|Amazon Software License|\bRSAL\b|\bQPL\b|\bSSPL|\bCPOL|\bNPL1|Creative Commons Non-Commercial|JSON"
CATEGORY_B="\bCDDL1|\bCPL|\bEPL|\bIPL|\bMPL|\bSPL|OSL-3.0|UnRAR License|Erlang Public License|\bOFL\b|Ubuntu Font License Version 1.0|IPA Font License Agreement v1.0|EPL2.0|CC-BY"
ls -lh ./*.tar.gz
for i in *src.tar.gz; do
Expand Down Expand Up @@ -160,6 +160,9 @@ for i in *src.tar.gz; do
echo "Skip compile $i module in all versions"
elif [[ "$i" =~ "hugegraph-commons" ]]; then
mvn install -DskipTests -Papache-release -ntp -e
elif [[ "$i" =~ "hugegraph-computer" ]]; then
cd computer
mvn install -DskipTests -Papache-release -ntp -e
else
# TODO: consider using commands that are entirely consistent with building binary packages
mvn package -DskipTests -Papache-release -ntp -e
Expand Down Expand Up @@ -290,7 +293,8 @@ done
#########################################
cd "${WORK_DIR}/dist/${RELEASE_VERSION}"

pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"
# TODO: run pd & store
pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"/*hugegraph-server-incubating*"${RELEASE_VERSION}"
bin/init-store.sh
sleep 3
bin/start-hugegraph.sh
Expand Down Expand Up @@ -329,7 +333,7 @@ popd

popd
# stop server
pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"
pushd ./*hugegraph-incubating*"${RELEASE_VERSION}"/*hugegraph-server-incubating*"${RELEASE_VERSION}"
bin/stop-hugegraph.sh
popd

Expand Down
Loading