1616 # maven.wagon.rto is in millis, defaults to 30m
1717 MAVEN_OPTS : " -Xmx512M -XX:+ExitOnOutOfMemoryError -Dmaven.wagon.rto=60000"
1818 MAVEN_INSTALL_OPTS : " -Xmx2G -XX:+ExitOnOutOfMemoryError -Dmaven.wagon.rto=60000"
19- MAVEN_FAST_INSTALL : " -B --strict-checksums -V --quiet -T C1 -DskipTests -Dair.check.skip-all"
20- MAVEN_TEST : " -B --strict-checksums -Dair.check.skip-all --fail-at-end"
19+ MAVEN_FAST_INSTALL : " -B --strict-checksums -V --quiet -T C1 -DskipTests -Dmaven.source.skip=true - Dair.check.skip-all -P gib -Dgib.referenceBranch=refs/remotes/origin/${{ github.event.pull_request.base.ref }} "
20+ MAVEN_TEST : " -B --strict-checksums -Dmaven.source.skip=true - Dair.check.skip-all --fail-at-end -P gib -Dgib.referenceBranch=refs/remotes/origin/${{ github.event.pull_request.base.ref }} "
2121 RETRY : .github/bin/retry
2222 # Testcontainers kills image pulls if they don't make progress for > 30s and retries for 2m before failing. This means
2323 # that if an image doesn't download all it's layers within ~2m then any other concurrent pull will be killed because
7474 timeout-minutes : 45
7575 steps :
7676 - uses : actions/checkout@v2
77+ with :
78+ fetch-depth : 0 # checkout all commits to be able to determine merge base for GIB
79+ - name : Fetch base ref to find merge-base for GIB
80+ run : .github/bin/git-fetch-base-ref.sh
7781 - uses : actions/setup-java@v2
7882 with :
7983 distribution : ' zulu'
9094 run : |
9195 export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
9296 # Run Error Prone on one module with a retry to ensure all runtime dependencies are fetched
93- $RETRY $MAVEN ${MAVEN_TEST} -T C1 clean test-compile -P errorprone-compiler -pl ':trino-spi'
97+ $RETRY $MAVEN ${MAVEN_TEST} -T C1 clean test-compile -P gib, errorprone-compiler -pl ':trino-spi'
9498 # The main Error Prone run
95- $MAVEN ${MAVEN_TEST} -T C1 clean test-compile -P errorprone-compiler \
99+ $MAVEN ${MAVEN_TEST} -T C1 clean test-compile -P gib, errorprone-compiler \
96100 -pl '!:trino-docs,!:trino-server,!:trino-server-rpm'
97101
98102 web-ui-checks :
@@ -110,6 +114,8 @@ jobs:
110114 - uses : actions/checkout@v2
111115 with :
112116 fetch-depth : 0 # checkout tags so version in Manifest is set properly
117+ - name : Fetch base ref to find merge-base for GIB
118+ run : .github/bin/git-fetch-base-ref.sh
113119 - uses : actions/setup-java@v2
114120 with :
115121 distribution : ' zulu'
@@ -161,6 +167,10 @@ jobs:
161167 timeout-minutes : 60
162168 steps :
163169 - uses : actions/checkout@v2
170+ with :
171+ fetch-depth : 0 # checkout all commits to be able to determine merge base for GIB
172+ - name : Fetch base ref to find merge-base for GIB
173+ run : .github/bin/git-fetch-base-ref.sh
164174 - uses : actions/setup-java@v2
165175 with :
166176 distribution : ' zulu'
@@ -274,6 +284,10 @@ jobs:
274284 timeout-minutes : 60
275285 steps :
276286 - uses : actions/checkout@v2
287+ with :
288+ fetch-depth : 0 # checkout all commits to be able to determine merge base for GIB
289+ - name : Fetch base ref to find merge-base for GIB
290+ run : .github/bin/git-fetch-base-ref.sh
277291 - uses : actions/setup-java@v2
278292 with :
279293 distribution : ' zulu'
@@ -369,6 +383,10 @@ jobs:
369383 timeout-minutes : 60
370384 steps :
371385 - uses : actions/checkout@v2
386+ with :
387+ fetch-depth : 0 # checkout all commits to be able to determine merge base for GIB
388+ - name : Fetch base ref to find merge-base for GIB
389+ run : .github/bin/git-fetch-base-ref.sh
372390 - uses : actions/setup-java@v2
373391 with :
374392 distribution : ' zulu'
@@ -417,6 +435,10 @@ jobs:
417435 timeout-minutes : 30
418436 steps :
419437 - uses : actions/checkout@v2
438+ with :
439+ fetch-depth : 0 # checkout all commits to be able to determine merge base for GIB
440+ - name : Fetch base ref to find merge-base for GIB
441+ run : .github/bin/git-fetch-base-ref.sh
420442 - uses : actions/setup-java@v2
421443 with :
422444 distribution : ' zulu'
@@ -465,6 +487,10 @@ jobs:
465487 timeout-minutes : 30
466488 steps :
467489 - uses : actions/checkout@v2
490+ with :
491+ fetch-depth : 0 # checkout all commits to be able to determine merge base for GIB
492+ - name : Fetch base ref to find merge-base for GIB
493+ run : .github/bin/git-fetch-base-ref.sh
468494 - uses : actions/setup-java@v2
469495 with :
470496 distribution : ' zulu'
@@ -613,7 +639,8 @@ jobs:
613639 - name : Maven Install
614640 run : |
615641 export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
616- $RETRY $MAVEN install ${MAVEN_FAST_INSTALL} -pl '!:trino-docs,!:trino-server-rpm'
642+ # 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
643+ $RETRY $MAVEN install ${MAVEN_FAST_INSTALL} -Dgib.disable -pl '!:trino-docs,!:trino-server-rpm'
617644 - name : Free Disk Space
618645 run : |
619646 docker image prune -af
0 commit comments