Skip to content

Commit

Permalink
Merge the ABFS product tests job with others
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and ebyhr committed May 28, 2022
1 parent 4911312 commit 9b33e05
Showing 1 changed file with 12 additions and 65 deletions.
77 changes: 12 additions & 65 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ jobs:
- suite-3
# suite-4 does not exist
- suite-5
- suite-azure
jdk:
- 11
exclude:
Expand All @@ -613,6 +614,14 @@ jobs:
|| contains(github.event.pull_request.labels.*.name, 'tests:hive')
}}
- suite: suite-azure
config: default
- suite: suite-azure
config: cdh5
- suite: suite-azure
ignore exclusion if: >-
${{ needs.build-pt.outputs.have_azure_secrets == 'true' }}
ignore exclusion if:
# Do not use this property outside of the matrix configuration.
#
Expand Down Expand Up @@ -702,72 +711,9 @@ jobs:
- name: Fix artifact permissions
run: |
find . -type f -name \*-executable.jar -exec chmod 0777 {} \;
- name: Product Tests (all)
if: steps.filter.outputs.product-tests == 'true' || contains(github.event.pull_request.labels.*.name, 'tests:all') || contains(github.event.pull_request.labels.*.name, 'tests:all-product')
run: |
testing/bin/ptl suite run \
--suite ${{ matrix.suite }} \
--config config-${{ matrix.config }} \
--bind=off --logs-dir logs/ --timeout 2h \
--trino-jdk-version zulu_${{ matrix.jdk }}
- name: Product Tests (impacted-features)
- name: Enable impact analysis
if: steps.filter.outputs.product-tests == 'false' && !contains(github.event.pull_request.labels.*.name, 'tests:all') && !contains(github.event.pull_request.labels.*.name, 'tests:all-product')
run: |
testing/bin/ptl suite run \
--suite ${{ matrix.suite }} \
--config config-${{ matrix.config }} \
--impacted-features impacted-features.log \
--bind=off --logs-dir logs/ --timeout 2h \
--trino-jdk-version zulu_${{ matrix.jdk }}
- name: Upload test logs and results
uses: actions/upload-artifact@v2
# Upload all test reports only on failure, because the artifacts are large
if: failure()
with:
name: result pt (${{ matrix.config }}, ${{ matrix.suite }}, ${{ matrix.jdk }})
path: |
testing/trino-product-tests/target/*
logs/*
- name: Upload test report
uses: actions/upload-artifact@v2
# Always upload the test report for the annotate.yml workflow,
# but only the single XML file to keep the artifact small
if: always()
with:
# Name prefix is checked in the `Annotate checks` workflow
name: test report pt (${{ matrix.config }}, ${{ matrix.suite }}, ${{ matrix.jdk }})
path: testing/trino-product-tests/target/reports/**/testng-results.xml
retention-days: ${{ env.TEST_REPORT_RETENTION_DAYS }}

azure-pt:
runs-on: ubuntu-latest
needs: build-pt
if: needs.build-pt.outputs.have_azure_secrets == 'true'
strategy:
fail-fast: false
matrix:
config:
- hdp3
suite:
- suite-azure
jdk:
- 11
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # checkout all commits, as the build result depends on `git describe` equivalent
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- name: Product tests artifact
uses: actions/download-artifact@v2
with:
name: product tests and server tarball
- name: Fix artifact permissions
run: |
find . -type f -name \*-executable.jar -exec chmod 0777 {} \;
run: echo "PTL_OPTS=--impacted-features impacted-features.log" >> $GITHUB_ENV
- name: Product Tests
env:
ABFS_CONTAINER: ${{ secrets.AZURE_ABFS_CONTAINER }}
Expand All @@ -777,6 +723,7 @@ jobs:
testing/bin/ptl suite run \
--suite ${{ matrix.suite }} \
--config config-${{ matrix.config }} \
$PTL_OPTS \
--bind=off --logs-dir logs/ --timeout 2h \
--trino-jdk-version zulu_${{ matrix.jdk }}
- name: Upload test logs and results
Expand Down

0 comments on commit 9b33e05

Please sign in to comment.