Skip to content

Commit

Permalink
Bug fixes for new GCP weekly workflow
Browse files Browse the repository at this point in the history
Adjust provision-cluster to work for scheduled events
Add in missing conditions when invoking provision-cluster
Make Docker unit tests runs privileged (to avoid sudo errors)

Skip-build: true
Skip-test: true
Skip-unit-tests: true
Required-githooks: true

Signed-off-by: Margaret Lawson <[email protected]>
  • Loading branch information
mlawsonca committed Jan 15, 2025
1 parent 155432c commit 99b8ba7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/actions/provision-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,28 @@ inputs:
condition:
description: Condition this should run on
required: true
ref:
description: Ref for code checkout
default: "${{ github.event.pull_request.head.sha }}"
required: false
runs:
using: "composite"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ inputs.ref }}
- name: Request and Provision a Cluster
if: ${{ inputs.condition }}
shell: bash
run: |
. ci/gha_functions.sh
STAGE_NAME='${{ env.STAGE_NAME }}'
REQID='${{ github.event.pull_request.number }}-${{ github.run_number }}'
if "${{ github.event.schedule }}"; then
REQID='${{ github.run_id }}-${{ github.run_number }}'
else
REQID='${{ github.event.pull_request.number }}-${{ github.run_number }}'
fi
CP_PRIORITY=${{ env.CP_PRIORITY }}
if ! JENKINS_URL='${{ env.JENKINS_URL }}' \
LABEL='${{ env.LABEL }}' \
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/gcp-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ jobs:
- name: Request and Provision a Cluster
timeout-minutes: 7200
uses: ./.github/actions/provision-cluster
with:
condition: true
# DO NOT LAND THIS. This is for testing only
ref: ${{ github.event.pull_request.head.sha }}
# ref: ${{ env.GCP_BRANCH }}
- name: Run Test
timeout-minutes: 7200
id: run-test
Expand Down Expand Up @@ -467,6 +472,11 @@ jobs:
- name: Request and Provision a Cluster
timeout-minutes: 7200
uses: ./.github/actions/provision-cluster
with:
condition: true
# DO NOT LAND THIS. This is for testing only
ref: ${{ github.event.pull_request.head.sha }}
# ref: ${{ env.GCP_BRANCH }}
- name: Run Test
timeout-minutes: 7200
id: run-test
Expand Down Expand Up @@ -544,8 +554,8 @@ jobs:
--build-arg DAOS_JAVA_BUILD=yes
--tag gha-amd-${{github.run_id}}-${{github.run_attempt}}
- name: Run Unit Testing with bdev
run: docker run gha-amd-${{github.run_id}}-${{github.run_attempt}}
run: docker run --privileged=true gha-amd-${{github.run_id}}-${{github.run_attempt}}
cd daos && BDEV_TEST=true ./ci/unit/test_main_node.sh
- name: Run Unit Testing with bdev and memcheck
run: docker run gha-amd-${{github.run_id}}-${{github.run_attempt}}
run: docker run --privileged=true gha-amd-${{github.run_id}}-${{github.run_attempt}}
cd daos && WITH_VALGRIND=true BDEV_TEST=true ./ci/unit/test_main_node.sh

0 comments on commit 99b8ba7

Please sign in to comment.