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

TASK-6807 - Pull request approve workflow Fail #90

Merged
merged 31 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e280466
cicd: Upload reference to develop branch in pull-request-approve to t…
juanfeSanahuja Sep 4, 2024
e8552ed
cicd: Refactor and fix SSH env values #TASK-6807
juanfeSanahuja Sep 5, 2024
59ad86b
Env variables to FIX error #TASK-6807
juanfeSanahuja Sep 5, 2024
85e297a
Env variables to FIX error #TASK-6807
juanfeSanahuja Sep 5, 2024
abb3b6b
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
12a5159
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
9182e1e
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
2d940e3
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
230010e
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
a4d2fbb
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
8e3cc88
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
f84ebf3
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
6ca7c8c
Fix get-xetabase-branch #TASK-6807
juanfeSanahuja Sep 5, 2024
9272829
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
5d473dd
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
7b2a8b0
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
c3fbf52
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
546ea97
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
b870aa0
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
ba5a19e
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
ca2ede1
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
9241eb2
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
ca6debc
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
47688af
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
3efd0b5
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
45e3902
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
f4a286f
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
534106c
TEST workflow for pull-request #TASK-6807
juanfeSanahuja Sep 5, 2024
039c4fd
Fix ssh to report server #TASK-6807
juanfeSanahuja Sep 9, 2024
c07c902
pull-request-approve Remove fail-never #TASK-6807
juanfeSanahuja Sep 12, 2024
502537f
pull-request-approve Remove fail-never #TASK-6807
juanfeSanahuja Sep 12, 2024
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
6 changes: 4 additions & 2 deletions .github/workflows/pull-request-approved.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ jobs:
name: "Get current branch for Xetabase from target branch"
run: |
chmod +x ./.github/workflows/scripts/get-xetabase-branch.sh
xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.base.ref }})
echo "github.event.pull_request.base.ref: ${{ github.event.pull_request.base.ref }}"
echo "github.event.pull_request.head.ref: ${{ github.event.pull_request.head.ref }}"
xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.head.ref }})
echo "__Xetabase ref:__ \"${xetabase_branch}\"" | tee -a ${GITHUB_STEP_SUMMARY}
echo "xetabase_branch=${xetabase_branch}" >> $GITHUB_OUTPUT

test:
name: "Run all tests before merging"
needs: calculate-xetabase-branch
uses: opencb/java-common-libs/.github/workflows/test-xetabase-workflow.yml@TASK-6399
uses: opencb/java-common-libs/.github/workflows/test-xetabase-workflow.yml@develop
with:
branch: ${{ needs.calculate-xetabase-branch.outputs.xetabase_branch }}
task: ${{ github.event.pull_request.head.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/get-xetabase-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ get_xetabase_branch() {
# If the branch begins with 'TASK' and exists in the opencga-enterprise repository, I return it
if [[ $input_branch == TASK* ]]; then
if [ "$(git ls-remote https://github.com/zetta-genomics/opencga-enterprise.git "$input_branch" )" ] ; then
echo "$GIT_BRANCH";
exit 0;
echo "$input_branch";
return 0;
fi
fi

Expand Down
35 changes: 10 additions & 25 deletions .github/workflows/test-xetabase-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
AZURE_KUBE_CONFIG/field/Secret Value > env:AZURE_KUBE_CONFIG
DOCKER_HUB_USER/field/Secret Value > env:DOCKER_HUB_USER
DOCKER_HUB_PASSWORD/field/Secret Value > env:DOCKER_HUB_PASSWORD
SSH_TESTING_SERVER_HOST/field/Secret Value > env:SSH_TESTING_SERVER_HOST
SSH_TESTING_SERVER_PORT/field/Secret Value > env:SSH_TESTING_SERVER_PORT
SSH_TESTING_SERVER_USER/field/Secret Value > env:SSH_TESTING_SERVER_USER
SSH_TESTING_SERVER_PASSWORD/field/Secret Value > env:SSH_TESTING_SERVER_PASSWORD
SSH_TESTING_SERVER_HOST/field/Secret Value > env:SSH_HOST
SSH_TESTING_SERVER_PORT/field/Secret Value > env:SSH_PORT
SSH_TESTING_SERVER_USER/field/Secret Value > env:SSH_USER
SSH_TESTING_SERVER_PASSWORD/field/Secret Value > env:SSH_PASS
- name: Log inputs
run: |
echo "__OpenCGA-enterprise branch:__ \"${{ inputs.branch }}\"" | tee -a $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -104,18 +104,13 @@ jobs:
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Run all OpenCB Junit tests, ie. java-common-libs, biodata, cellbase, opencga and opencga-enterprise
run: |
pwd
ls -lrtha
echo "------------------------------------"
cd opencga-enterprise
pwd
ls -lrtha
echo "------------------------------------"
ln -s ../opencga opencga-home
echo "------------------------------------"
ls -lrtha
#./build.sh -t -l runShortTests,runMediumTests,runLongTests -b -s -f -T ${{ inputs.task }} -c localhost:27018 -H hdp3.1
printenv
./build.sh -t -l runShortTests -b -s -f -T ${{ inputs.task }} -c localhost:27018 -H hdp3.1
env:
SSH_HOST: ${{ env.SSH_HOST }}
SSH_PORT: ${{ env.SSH_PORT }}
SSH_USER: ${{ env.SSH_USER }}
SSH_PASS: ${{ env.SSH_PASS }}
- name: Upload reports results to Github
uses: actions/upload-artifact@v4
with:
Expand All @@ -126,16 +121,6 @@ jobs:
with:
name: build-log
path: ./opencga-enterprise/build.log
- name: Upload junit reports to a remote scp server
uses: garygrossgarten/github-action-scp@release
with:
local: opencga-enterprise/reports/test
remote: /var/www/html/reports/xetabase/${{ inputs.task }}/
host: ${{ env.SSH_TESTING_SERVER_HOST}}
port: ${{ env.SSH_TESTING_SERVER_PORT}}
username: ${{ env.SSH_TESTING_SERVER_USER }}
password: ${{ env.SSH_TESTING_SERVER_PASSWORD }}
concurrency: 2
- name: Log summary
run: |
cat ./opencga-enterprise/build.log | tee -a $GITHUB_STEP_SUMMARY
Expand Down
Loading