-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port Patch 1.6.3.1 -> 1.8.0 #TASK-4667
- Loading branch information
Showing
68 changed files
with
746 additions
and
457 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Check junits | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
short_tests: | ||
type: boolean | ||
required: false | ||
default: true | ||
medium_tests: | ||
type: boolean | ||
required: false | ||
default: false | ||
long_tests: | ||
type: boolean | ||
required: false | ||
default: false | ||
mvn_opts: | ||
type: string | ||
required: false | ||
default: "" | ||
|
||
jobs: | ||
get_profiles: | ||
name: Test JUnit | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
profiles: ${{ steps.getter.outputs.profiles }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '10' | ||
- name: Building string profiles to run | ||
id: getter | ||
run: | | ||
if [ -f "./.github/workflows/scripts/get_profiles.sh" ]; then | ||
chmod +x ./.github/workflows/scripts/get_profiles.sh | ||
echo "profiles=$(./.github/workflows/scripts/get_profiles.sh ${{ inputs.short_tests }} ${{ inputs.medium_tests }} ${{ inputs.long_tests }})" >> $GITHUB_OUTPUT | ||
fi | ||
echo_log: | ||
needs: get_profiles | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Echo profiles | ||
id: log | ||
run: echo "Executing testing profiles -> ${{ needs.get_profiles.outputs.profiles }}" | ||
|
||
test: | ||
needs: [ get_profiles, echo_log ] | ||
uses: ./.github/workflows/test-analysis.yml | ||
with: | ||
test_profile: ${{ needs.get_profiles.outputs.profiles }} | ||
mvn_opts: ${{ inputs.mvn_opts }} | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -9,34 +9,26 @@ on: | |
|
||
jobs: | ||
build: | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop | ||
with: | ||
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6' | ||
|
||
deploy-docker-ext-tools: | ||
uses: opencb/java-common-libs/.github/workflows/[email protected] | ||
needs: build | ||
with: | ||
cli: python3 ./build/cloud/docker/docker-build.py push --images ext-tools --tag ${{ needs.build.outputs.version }} | ||
secrets: inherit | ||
|
||
test: | ||
uses: ./.github/workflows/test-analysis.yml | ||
needs: deploy-docker-ext-tools | ||
secrets: inherit | ||
with: | ||
test_profile: runShortTests,runMediumTests | ||
report_context: development | ||
secrets: inherit | ||
|
||
deploy-maven: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@develop | ||
needs: test | ||
with: | ||
maven_opts: -P storage-hadoop,hdp3.1 -Dopencga.war.name=opencga | ||
secrets: inherit | ||
|
||
deploy-docker: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop | ||
needs: test | ||
with: | ||
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init | ||
|
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,4 +1,4 @@ | ||
name: Deploy Docker Tools | ||
name: Deploy Docker Ext-Tools | ||
|
||
on: | ||
push: | ||
|
@@ -12,13 +12,12 @@ on: | |
|
||
jobs: | ||
build: | ||
uses: opencb/java-common-libs/.github/workflows/[email protected] | ||
with: | ||
maven_opts: | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop | ||
|
||
deploy-docker-ext-tools: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop | ||
needs: build | ||
with: | ||
cli: python3 ./build/cloud/docker/docker-build.py push --images ext-tools --tag ${{ needs.build.outputs.version }} | ||
secrets: inherit | ||
|
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 |
---|---|---|
|
@@ -8,52 +8,35 @@ on: | |
|
||
jobs: | ||
build: | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop | ||
with: | ||
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6' | ||
|
||
deploy-docker-ext-tools: | ||
uses: opencb/java-common-libs/.github/workflows/[email protected] | ||
needs: build | ||
with: | ||
cli: python3 ./build/cloud/docker/docker-build.py push --images ext-tools --tag ${{ needs.build.outputs.version }} | ||
secrets: inherit | ||
|
||
test: | ||
uses: ./.github/workflows/test-analysis.yml | ||
needs: deploy-docker-ext-tools | ||
secrets: inherit | ||
with: | ||
test_profile: runShortTests,runMediumTests | ||
report_context: xetabase | ||
|
||
deploy-maven: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@release-4.8.x | ||
needs: test | ||
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@develop | ||
needs: build | ||
with: | ||
maven_opts: -P storage-hadoop,hdp3.1 -Dopencga.war.name=opencga | ||
secrets: inherit | ||
|
||
deploy-docker: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@release-4.8.x | ||
needs: test | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop | ||
needs: build | ||
with: | ||
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init | ||
secrets: inherit | ||
|
||
|
||
|
||
deploy-python: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-python-workflow.yml@release-4.8.x | ||
needs: test | ||
uses: opencb/java-common-libs/.github/workflows/deploy-python-workflow.yml@develop | ||
needs: build | ||
with: | ||
cli: ./clients/python/python-build.sh push | ||
artifact: build-folder | ||
secrets: inherit | ||
|
||
release: | ||
uses: opencb/java-common-libs/.github/workflows/release-github-workflow.yml@release-4.8.x | ||
needs: [ build,test ] | ||
uses: opencb/java-common-libs/.github/workflows/release-github-workflow.yml@develop | ||
needs: [ build, deploy-maven, deploy-docker, deploy-python ] | ||
with: | ||
artifact: build-folder | ||
file: | | ||
|
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,30 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "The arguments must be 3" | ||
exit 1 | ||
fi | ||
PROFILE="" | ||
|
||
if [ $1 == "true" ]; then | ||
PROFILE="${PROFILE}runShortTests," | ||
fi | ||
if [ $2 == "true" ]; then | ||
PROFILE="${PROFILE}runMediumTests," | ||
fi | ||
if [ $3 == "true" ]; then | ||
PROFILE="${PROFILE}runLongTests" | ||
fi | ||
|
||
if [[ "${PROFILE}" == *"," ]]; then | ||
PROFILE="${PROFILE%?}" | ||
fi | ||
|
||
if [ -z "${PROFILE}" ]; then | ||
echo "There must be at least one active profile" | ||
exit 1 | ||
fi | ||
|
||
echo "${PROFILE}" | ||
exit 0 | ||
|
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,30 @@ | ||
#!/bin/bash | ||
|
||
BRANCH_NAME=$1 | ||
|
||
if [[ -z $BRANCH_NAME ]]; then | ||
echo "The first parameter is mandatory and must be a valid branch name." | ||
exit 1 | ||
fi | ||
|
||
if [[ $BRANCH_NAME != "TASK-"* ]]; then | ||
echo "No need to check dependencies." | ||
exit 0 | ||
fi | ||
|
||
function install(){ | ||
local REPO=$1 | ||
cd /home/runner/work/ || exit 2 | ||
git clone https://github.com/opencb/"$REPO".git -b "$BRANCH_NAME" | ||
if [ -d "./$REPO" ]; then | ||
cd "$REPO" || exit 2 | ||
echo "Branch name $BRANCH_NAME already exists." | ||
mvn clean install -DskipTests | ||
else | ||
echo "$CURRENT Branch is NOT EQUALS $BRANCH_NAME " | ||
fi | ||
} | ||
|
||
install "java-common-libs" | ||
install "biodata" | ||
install "cellbase" |
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 |
---|---|---|
|
@@ -6,9 +6,11 @@ on: | |
- TASK-* | ||
workflow_dispatch: | ||
|
||
# WARNING Develop branch needed for prod | ||
|
||
jobs: | ||
build: | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop | ||
with: | ||
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6' | ||
|
||
|
@@ -18,37 +20,10 @@ jobs: | |
secrets: inherit | ||
with: | ||
test_profile: runShortTests | ||
report_context: development | ||
|
||
deploy-maven: | ||
name: Deploy in maven only for renamed versions | ||
uses: opencb/java-common-libs/.github/workflows/[email protected] | ||
needs: [ build, test ] | ||
if: contains( needs.build.outputs.version ,'TASK') | ||
secrets: inherit | ||
|
||
deploy-docker: | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@release-4.8.x | ||
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop | ||
needs: test | ||
with: | ||
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag ${{ github.ref_name }} | ||
secrets: inherit | ||
|
||
# The following jobs are to see that the previous 'if' doesn't fail and that the maven deploy is executed because it is true | ||
snapshot-version: | ||
name: Check SNAPSHOT version | ||
needs: [ build, test ] | ||
if: contains(needs.build.outputs.version ,'SNAPSHOT') | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: test-version-from-check | ||
run: echo "Project version is " ${{ needs.build.outputs.version }} | ||
|
||
task-version: | ||
name: Check TASK version | ||
needs: [ build, test ] | ||
if: contains(needs.build.outputs.version ,'TASK') | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: test-version-from-check | ||
run: echo "Project version is " ${{ needs.build.outputs.version }} |
Oops, something went wrong.