Skip to content

Commit eb8fd9e

Browse files
ci: Enable all functional GH workflows for pushes and pull requests; Enable workflow-level concurrency groups for efficiency. (#7)
1 parent ce9f132 commit eb8fd9e

18 files changed

+177
-210
lines changed

.github/workflows/arrow-flight-tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
paths-ignore:
66
- 'presto-docs/**'
7+
push:
8+
paths-ignore:
9+
- 'presto-docs/**'
710

811
env:
912
CONTINUOUS_INTEGRATION: true
@@ -13,6 +16,13 @@ env:
1316
MAVEN_TEST: "-B -Dair.check.skip-all -Dmaven.javadoc.skip=true -DLogTestDurationListener.enabled=true --no-transfer-progress --fail-at-end"
1417
RETRY: .github/bin/retry
1518

19+
concurrency:
20+
group: "${{github.workflow}}-${{github.ref}}"
21+
22+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
23+
# checked completely.
24+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
25+
1626
jobs:
1727
arrowflight-java-tests:
1828
runs-on: ubuntu-latest
@@ -24,9 +34,6 @@ jobs:
2434
- ":presto-base-arrow-flight" # Only run tests for the `presto-base-arrow-flight` module
2535

2636
timeout-minutes: 80
27-
concurrency:
28-
group: ${{ github.workflow }}-test-${{ matrix.modules }}-${{ github.event.pull_request.number }}-${{ matrix.java }}
29-
cancel-in-progress: true
3037

3138
steps:
3239
# Checkout the code only if there are changes in the relevant files
@@ -148,9 +155,6 @@ jobs:
148155
- ":presto-base-arrow-flight" # Only run tests for the `presto-base-arrow-flight` module
149156

150157
timeout-minutes: 80
151-
concurrency:
152-
group: ${{ github.workflow }}-test-${{ matrix.modules }}-${{ github.event.pull_request.number }}
153-
cancel-in-progress: true
154158

155159
steps:
156160
- uses: actions/checkout@v4

.github/workflows/codenotify.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
paths:
66
- 'presto-docs/**'
7+
push:
8+
paths:
9+
- 'presto-docs/**'
710

811
env:
912
# An envar that signals to tests we are executing in the CI environment
@@ -14,6 +17,13 @@ env:
1417
MAVEN_TEST: "-B -Dair.check.skip-all -Dmaven.javadoc.skip=true -DLogTestDurationListener.enabled=true --no-transfer-progress --fail-at-end"
1518
RETRY: .github/bin/retry
1619

20+
concurrency:
21+
group: "${{github.workflow}}-${{github.ref}}"
22+
23+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
24+
# checked completely.
25+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
26+
1727
jobs:
1828
test:
1929
runs-on: ubuntu-latest
@@ -23,9 +33,6 @@ jobs:
2333
modules:
2434
- ":presto-docs"
2535
timeout-minutes: 80
26-
concurrency:
27-
group: ${{ github.workflow }}-test-${{ matrix.modules }}-${{ github.event.pull_request.number }}
28-
cancel-in-progress: true
2936
steps:
3037
- uses: actions/checkout@v4
3138
with:

.github/workflows/hive-tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: hive tests
22

33
on:
44
pull_request:
5+
push:
56

67
env:
78
# An envar that signals to tests we are executing in the CI environment
@@ -12,6 +13,13 @@ env:
1213
MAVEN_TEST: "-B -Dair.check.skip-all -Dmaven.javadoc.skip=true -DLogTestDurationListener.enabled=true --no-transfer-progress --fail-at-end"
1314
RETRY: .github/bin/retry
1415

16+
concurrency:
17+
group: "${{github.workflow}}-${{github.ref}}"
18+
19+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
20+
# checked completely.
21+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
22+
1523
jobs:
1624
changes:
1725
runs-on: ubuntu-latest
@@ -22,7 +30,9 @@ jobs:
2230
outputs:
2331
codechange: ${{ steps.filter.outputs.codechange }}
2432
steps:
25-
# For pull requests it's not necessary to checkout the code
33+
- uses: "actions/checkout@v4"
34+
with:
35+
submodules: "recursive"
2636
- uses: dorny/paths-filter@v2
2737
id: filter
2838
with:
@@ -38,9 +48,6 @@ jobs:
3848
runs-on: ubuntu-latest
3949
needs: changes
4050
timeout-minutes: 60
41-
concurrency:
42-
group: ${{ github.workflow }}-hive-tests-${{ github.event.pull_request.number }}-${{ matrix.java }}
43-
cancel-in-progress: true
4451
steps:
4552
- uses: actions/checkout@v4
4653
if: needs.changes.outputs.codechange == 'true'
@@ -92,9 +99,6 @@ jobs:
9299
runs-on: ubuntu-latest
93100
needs: changes
94101
timeout-minutes: 20
95-
concurrency:
96-
group: ${{ github.workflow }}-hive-dockerized-tests-${{ github.event.pull_request.number }}-${{ matrix.java }}
97-
cancel-in-progress: true
98102
steps:
99103
- uses: actions/checkout@v4
100104
if: needs.changes.outputs.codechange == 'true'

.github/workflows/kudu.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: kudu
22

33
on:
44
pull_request:
5+
push:
56

67
env:
78
# An envar that signals to tests we are executing in the CI environment
@@ -11,6 +12,13 @@ env:
1112
MAVEN_FAST_INSTALL: "-B -V --quiet -T 1C -DskipTests -Dair.check.skip-all -Dmaven.javadoc.skip=true"
1213
RETRY: .github/bin/retry
1314

15+
concurrency:
16+
group: "${{github.workflow}}-${{github.ref}}"
17+
18+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
19+
# checked completely.
20+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
21+
1422
jobs:
1523
changes:
1624
runs-on: ubuntu-latest
@@ -21,7 +29,9 @@ jobs:
2129
outputs:
2230
codechange: ${{ steps.filter.outputs.codechange }}
2331
steps:
24-
# For pull requests it's not necessary to checkout the code
32+
- uses: "actions/checkout@v4"
33+
with:
34+
submodules: "recursive"
2535
- uses: dorny/paths-filter@v2
2636
id: filter
2737
with:
@@ -36,9 +46,6 @@ jobs:
3646
runs-on: ubuntu-latest
3747
needs: changes
3848
timeout-minutes: 60
39-
concurrency:
40-
group: ${{ github.workflow }}-kudu-${{ github.event.pull_request.number }}-${{ matrix.java }}
41-
cancel-in-progress: true
4249
steps:
4350
- uses: actions/checkout@v4
4451
if: needs.changes.outputs.codechange == 'true'

.github/workflows/maven-checks.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: maven checks
22

33
on:
44
pull_request:
5+
push:
56

67
env:
78
# An envar that signals to tests we are executing in the CI environment
@@ -10,6 +11,13 @@ env:
1011
MAVEN_INSTALL_OPTS: "-Xmx2G -XX:+ExitOnOutOfMemoryError"
1112
RETRY: .github/bin/retry
1213

14+
concurrency:
15+
group: "${{github.workflow}}-${{github.ref}}"
16+
17+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
18+
# checked completely.
19+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
20+
1321
jobs:
1422
maven-checks:
1523
strategy:
@@ -18,9 +26,6 @@ jobs:
1826
java: [ 8.0.442, 17.0.13 ]
1927
runs-on: ubuntu-latest
2028
timeout-minutes: 45
21-
concurrency:
22-
group: ${{ github.workflow }}-maven-checks-${{ github.event.pull_request.number }}-${{ matrix.java }}
23-
cancel-in-progress: true
2429
steps:
2530
- name: Free Disk Space
2631
run: |

.github/workflows/prestocpp-format-and-header-check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ on:
66
paths:
77
- 'presto-native-execution/**'
88
- '.github/workflows/prestocpp-format-and-header-check.yml'
9+
push:
10+
paths:
11+
- 'presto-native-execution/**'
12+
- '.github/workflows/prestocpp-format-and-header-check.yml'
13+
14+
concurrency:
15+
group: "${{github.workflow}}-${{github.ref}}"
16+
17+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
18+
# checked completely.
19+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
920

1021
jobs:
1122
prestocpp-format-and-header-check:

.github/workflows/prestocpp-linux-build-and-unit-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ on:
88
- 'presto-native-sidecar-plugin/**'
99
- '.github/workflows/prestocpp-linux-build-and-unit-test.yml'
1010
push:
11-
branches:
12-
- master
1311
paths-ignore:
1412
- 'presto-docs/**'
1513

14+
concurrency:
15+
group: "${{github.workflow}}-${{github.ref}}"
16+
17+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
18+
# checked completely.
19+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
20+
1621
jobs:
1722
prestocpp-linux-build-for-test:
1823
runs-on: ubuntu-22.04

.github/workflows/prestocpp-linux-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,38 @@ on:
2727
- 'presto-iceberg/src/main/java/com/facebook/presto/iceberg/**'
2828
# tpch
2929
- 'presto-tpch/src/main/java/com/facebook/presto/tpch/**'
30+
push:
31+
paths:
32+
- 'presto-native-execution/**'
33+
- '.github/workflows/prestocpp-linux-build.yml'
34+
# Build also changes to files that can change the protocol and are referenced in the protocol yaml:
35+
# protocol_core
36+
- 'presto-spi/src/main/java/com/facebook/presto/spi/**'
37+
- 'presto-common/src/main/java/com/facebook/presto/**'
38+
- 'presto-main/src/main/java/com/facebook/presto/**'
39+
- 'presto-client/src/main/java/com/facebook/presto/client/**'
40+
- 'presto-spark-base/src/main/java/com/facebook/presto/spark/execution/**'
41+
- 'presto-native-sidecar-plugin/src/main/java/com/facebook/presto/sidecar/nativechecker/**'
42+
- 'presto-function-namespace-managers-common/src/main/java/com/facebook/presto/functionNamespace/**'
43+
- 'presto-hdfs-core/src/main/java/com/facebook/presto/hive/**'
44+
- 'presto-verifier/src/main/java/com/facebook/presto/verifier/framework/**'
45+
# arrow-flight
46+
- 'presto-base-arrow-flight/src/main/java/com/facebook/plugin/arrow/**'
47+
# hive
48+
- 'presto-hive-metastore/src/main/java/com/facebook/presto/hive/**'
49+
- 'presto-hive-common/src/main/java/com/facebook/presto/hive/**'
50+
- 'presto-hive/src/main/java/com/facebook/presto/hive/**'
51+
# iceberg
52+
- 'presto-iceberg/src/main/java/com/facebook/presto/iceberg/**'
53+
# tpch
54+
- 'presto-tpch/src/main/java/com/facebook/presto/tpch/**'
55+
56+
concurrency:
57+
group: "${{github.workflow}}-${{github.ref}}"
58+
59+
# Cancel in-progress jobs for efficiency. Exclude the `main` branch so that each commit to main is
60+
# checked completely.
61+
cancel-in-progress: "${{github.ref != 'refs/heads/main'}}"
3062

3163
jobs:
3264
prestocpp-linux-build-engine:

.github/workflows/prestocpp-macos-build.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)