Add option to run standard & revised ITs manually on PRs (#13814)

Create the docker image in case of maven dependencies cache restore failure too as env.sh file is removed on maven rebuild.
Increase java heap size for security IT failing with error
This commit is contained in:
Tejaswini Bandlamudi 2023-02-20 16:15:15 +05:30 committed by GitHub
parent 882ae9f002
commit e788f1ae6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 7 deletions

View File

@ -90,7 +90,7 @@ jobs:
./it.sh ci ./it.sh ci
- name: Create docker image - name: Create docker image
if: steps.docker-restore.outputs.cache-hit != 'true' if: steps.docker-restore.outputs.cache-hit != 'true' || steps.maven-restore.outputs.cache-hit != 'true'
env: env:
docker-restore: ${{ toJson(steps.docker-restore.outputs) }} docker-restore: ${{ toJson(steps.docker-restore.outputs) }}
run: | run: |

View File

@ -86,5 +86,5 @@ jobs:
run: | run: |
# Debug echo # Debug echo
echo "Mysql driver: ${MYSQL_DRIVER_CLASSNAME}" echo "Mysql driver: ${MYSQL_DRIVER_CLASSNAME}"
echo "MAVEN_OPTS='-Xmx2048m' ${MVN} verify -pl integration-tests -P integration-tests ${{ inputs.testing_groups }} -Djvm.runtime=${{ inputs.runtime_jdk }} -Dit.indexer=${{ inputs.use_indexer }} ${MAVEN_SKIP} -Doverride.config.path=${{ inputs.override_config_path }}" echo "${MVN} verify -pl integration-tests -P integration-tests ${{ inputs.testing_groups }} -Djvm.runtime=${{ inputs.runtime_jdk }} -Dit.indexer=${{ inputs.use_indexer }} ${MAVEN_SKIP} -Doverride.config.path=${{ inputs.override_config_path }}"
MAVEN_OPTS='-Xmx2048m' ${MVN} verify -pl integration-tests -P integration-tests ${{ inputs.testing_groups }} -Djvm.runtime=${{ inputs.runtime_jdk }} -Dit.indexer=${{ inputs.use_indexer }} ${MAVEN_SKIP} -Doverride.config.path=${{ inputs.override_config_path }} ${MVN} verify -pl integration-tests -P integration-tests ${{ inputs.testing_groups }} -Djvm.runtime=${{ inputs.runtime_jdk }} -Dit.indexer=${{ inputs.use_indexer }} ${MAVEN_SKIP} -Doverride.config.path=${{ inputs.override_config_path }}

View File

@ -15,7 +15,8 @@
# Github workflow that runs revised/new ITs # Github workflow that runs revised/new ITs
on: on:
workflow_call workflow_call:
workflow_dispatch:
jobs: jobs:
it: it:

View File

@ -15,7 +15,8 @@
# Github workflow that runs standard/old ITs # Github workflow that runs standard/old ITs
on: on:
workflow_call workflow_call:
workflow_dispatch:
jobs: jobs:
integration-index-tests-middleManager: integration-index-tests-middleManager:

View File

@ -649,7 +649,7 @@
</property> </property>
</properties> </properties>
<argLine> <argLine>
-Xmx64m -Xmx128m
-Duser.timezone=UTC -Duser.timezone=UTC
-Dfile.encoding=UTF-8 -Dfile.encoding=UTF-8
-Ddruid.test.config.dockerIp=${env.DOCKER_IP} -Ddruid.test.config.dockerIp=${env.DOCKER_IP}

3
it.sh
View File

@ -185,6 +185,7 @@ function verify_env_vars {
CMD=$1 CMD=$1
shift shift
MAVEN_IGNORE="-P skip-static-checks,skip-tests -Dmaven.javadoc.skip=true"
case $CMD in case $CMD in
"help" ) "help" )
@ -194,7 +195,7 @@ case $CMD in
mvn -q clean package dependency:go-offline -P dist $MAVEN_IGNORE mvn -q clean package dependency:go-offline -P dist $MAVEN_IGNORE
;; ;;
"build" ) "build" )
mvn clean package -P dist,skip-static-checks,skip-tests -Dmaven.javadoc.skip=true -T1.0C $* mvn clean package -P dist $MAVEN_IGNORE -T1.0C $*
;; ;;
"dist" ) "dist" )
mvn package -P dist $MAVEN_IGNORE -pl :distribution mvn package -P dist $MAVEN_IGNORE -pl :distribution