Skip to content

Commit

Permalink
GAIAPLAT-2062 - Attempt to fix build break (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackAtGaia authored Feb 24, 2022
1 parent c6d2b90 commit cb9940d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/actions/integration-test-job/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
- name: Check for Previously Downloaded SDK Package
shell: bash
run: |
if [ "$(ls -A ${{ github.workspace }}/packages)" ]; then
if [ "$(ls -A ${{ inputs.gaia-repo }}/build/output/package)" ]; then
echo "SDK=present" >> $GITHUB_ENV
else
echo "SDK=not-present" >> $GITHUB_ENV
Expand All @@ -42,7 +42,7 @@ runs:
if: ${{ env.SDK }} != 'present'
uses: actions/cache@v2
with:
path: ${{ inputs.gaia-repo }}/packages
path: ${{ inputs.gaia-repo }}/build/output/package
key: latest-release-sdk-package

- name: Tests
Expand All @@ -55,7 +55,7 @@ runs:
--repo-path ${{ inputs.gaia-repo }} \
--db-persistence ${{ inputs.db-persistence }} \
--suite-name ${{ inputs.suite-name }} \
--package ${{ inputs.gaia-repo }}/packages
--package ${{ inputs.gaia-repo }}/build/output/package
- name: Upload Output Files
if: always()
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/integration-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ jobs:
- name: Create Directory To Host Install Package Cache
shell: bash
run: |
mkdir -p ${{ github.workspace }}/packages
mkdir -p ${{ github.workspace }}/build/output/package
- name: Download Debian Install Package
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: SDK Install Package
path: ${{ github.workspace }}/packages
path: ${{ github.workspace }}/build/output/package

- name: Create Directory To Host Install Package Cache
shell: bash
run: |
ls -la ${{ github.workspace }}/build/output/package
- name: Run Integration Tests
uses: ./.github/actions/integration-test-job
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
needs:
- Lint
- Third-Party
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
runs-on: ubuntu-20.04
env:
GAIA_REPO: ${{ github.workspace }}
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
Integration_Tests:
needs:
- SDK
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
runs-on: ubuntu-20.04
timeout-minutes: 7
env:
Expand All @@ -186,14 +186,19 @@ jobs:
- name: Create Directory To Host Install Package Cache
shell: bash
run: |
mkdir -p ${{ github.workspace }}/packages
mkdir -p ${{ github.workspace }}/build/output/package
- name: Download Debian Install Package
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: SDK Install Package
path: ${{ github.workspace }}/packages
path: ${{ github.workspace }}/build/output/package

- name: Create Directory To Host Install Package Cache
shell: bash
run: |
ls -la ${{ github.workspace }}/build/output/package
- name: Run Integration Tests
uses: ./.github/actions/integration-test-job
Expand Down
4 changes: 4 additions & 0 deletions dev_tools/github-actions/execute_tests_against_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ fi
cd "$PACKAGE_PATH" || exit
# shellcheck disable=SC2061
INSTALL_PATH="$(find . -name gaia*)"
if [[ -z "$INSTALL_PATH" ]] ; then
ls -la "$PACKAGE_PATH"
complete_process 1 "Debian package to install could not be found."
fi

if [ "$VERBOSE_MODE" -ne 0 ]; then
echo "Installing Debian package '$INSTALL_PATH'..."
Expand Down

0 comments on commit cb9940d

Please sign in to comment.