Skip to content

Commit

Permalink
[FLINK-16330][AZP] Enable tests requiring S3 credentials
Browse files Browse the repository at this point in the history
This closes apache#11332
  • Loading branch information
rmetzger committed Mar 12, 2020
1 parent 0523ef6 commit 222dc57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 0 additions & 2 deletions flink-end-to-end-tests/run-nightly-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ fi
ARTIFACTS_DIR="${HERE}/artifacts"
mkdir -p $ARTIFACTS_DIR || { echo "FAILURE: cannot create log directory '${ARTIFACTS_DIR}'." ; exit 1; }

env > $ARTIFACTS_DIR/environment

LOG4J_PROPERTIES=${HERE}/../tools/log4j-travis.properties

MVN_LOGGING_OPTIONS="-Dlog.dir=${ARTIFACTS_DIR} -Dlog4j.configurationFile=file:https://$LOG4J_PROPERTIES -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
Expand Down
2 changes: 1 addition & 1 deletion tools/azure-pipelines/build-apache-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#
# This file defines the Flink build for the "apache/flink" repository, including
# the following:
# - PR builds
# - PR builds (triggered through ci-bot)
# - custom triggered e2e tests
# - nightly builds

Expand Down
9 changes: 9 additions & 0 deletions tools/azure-pipelines/jobs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ jobs:
# Test
- script: STAGE=test ${{parameters.environment}} ./tools/azure_controller.sh $(module)
displayName: Test - $(module)
env:
IT_CASE_S3_BUCKET: $(IT_CASE_S3_BUCKET)
IT_CASE_S3_ACCESS_KEY: $(IT_CASE_S3_ACCESS_KEY)
IT_CASE_S3_SECRET_KEY: $(IT_CASE_S3_SECRET_KEY)

- task: PublishTestResults@2
inputs:
Expand Down Expand Up @@ -162,13 +166,18 @@ jobs:
displayName: Setup Docker
- script: ./tools/azure-pipelines/free_disk_space.sh
displayName: Free up disk space
- script: sudo apt-get install -y bc
- script: M2_HOME=/home/vsts/maven_cache/apache-maven-3.2.5/ PATH=/home/vsts/maven_cache/apache-maven-3.2.5/bin:$PATH ${{parameters.environment}} STAGE=compile ./tools/azure_controller.sh compile
displayName: Build Flink
# TODO remove pre-commit tests script by adding the tests to the nightly script
# - script: FLINK_DIR=build-target ./flink-end-to-end-tests/run-pre-commit-tests.sh
# displayName: Test - precommit
- script: ${{parameters.environment}} FLINK_DIR=`pwd`/build-target flink-end-to-end-tests/run-nightly-tests.sh
displayName: Run e2e tests
env:
IT_CASE_S3_BUCKET: $(IT_CASE_S3_BUCKET)
IT_CASE_S3_ACCESS_KEY: $(IT_CASE_S3_ACCESS_KEY)
IT_CASE_S3_SECRET_KEY: $(IT_CASE_S3_SECRET_KEY)
# upload debug artifacts
- task: PublishPipelineArtifact@1
condition: and(succeededOrFailed(), not(eq('$(ARTIFACT_DIR)', '')))
Expand Down

0 comments on commit 222dc57

Please sign in to comment.