Skip to content

Commit

Permalink
Pass impacted connectors to product test launcher in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and electrum committed Apr 12, 2022
1 parent 0590625 commit 4897052
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,9 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # checkout all commits, as the build result depends on `git describe` equivalent
fetch-depth: 0 # checkout all commits to be able to determine merge base for GIB
- name: Fetch base ref to find merge-base for GIB
run: .github/bin/git-fetch-base-ref.sh
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
Expand All @@ -537,12 +539,22 @@ jobs:
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
# GIB needs to be explicitly disabled, because the gib profile enables it, but the trino-server module requires all of its dependencies to be built
$RETRY $MAVEN clean install ${MAVEN_FAST_INSTALL} -Dgib.disable -pl '!:trino-docs,!:trino-server-rpm'
- name: Map impacted plugins to features
run: |
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
$MAVEN validate ${MAVEN_FAST_INSTALL} -pl '!:trino-docs,!:trino-server-rpm'
# GIB doesn't run on master, so make sure the file always exist
touch gib-impacted.log
testing/trino-plugin-reader/target/trino-plugin-reader-*-executable.jar -i gib-impacted.log -p core/trino-server/target/trino-server-*-hardlinks/plugin > impacted-features.log
echo "Impacted plugin features:"
cat impacted-features.log
- name: Product tests artifact
uses: actions/upload-artifact@v2
with:
name: product tests and server tarball
path: |
core/trino-server/target/*.tar.gz
impacted-features.log
testing/trino-product-tests-launcher/target/*-executable.jar
testing/trino-product-tests/target/*-executable.jar
client/trino-cli/target/*-executable.jar
Expand Down Expand Up @@ -656,7 +668,10 @@ jobs:
- name: Product Tests
run: |
testing/bin/ptl suite run \
--suite ${{ matrix.suite }} --config config-${{ matrix.config }} --bind=off --logs-dir logs/ --timeout 2h \
--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
Expand Down

0 comments on commit 4897052

Please sign in to comment.