-
Notifications
You must be signed in to change notification settings - Fork 1.5k
160 lines (156 loc) · 6.49 KB
/
Copy pathpinot_integration_tests.yml
File metadata and controls
160 lines (156 loc) · 6.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: Pinot Integration Tests
on:
push:
branches:
- master
paths-ignore:
- "contrib/**"
- "docs/**"
- "docker/**"
- "kubernetes/**"
- "licenses/**"
- "licenses-binary/**"
- "**.md"
pull_request:
branches:
- master
paths-ignore:
- "contrib/**"
- "docs/**"
- "docker/**"
- "kubernetes/**"
- "licenses/**"
- "licenses-binary/**"
- "**.md"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
integration-test:
if: github.repository == 'apache/pinot'
runs-on: ubuntu-latest
strategy:
# Changed to false in order to improve coverage using unsafe buffers
fail-fast: false
matrix:
testset: [ 1, 2 ]
java: [ 25 ]
distribution: [ "temurin" ]
name: Pinot Integration Test Set ${{ matrix.testset }} (${{matrix.distribution}}-${{matrix.java}})
steps:
- uses: actions/checkout@v7
- name: Set up JDK ${{ matrix.java }}-${{ matrix.distribution }}
uses: actions/setup-java@v6
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
cache: 'maven'
# Step that does that actual cache save and restore
- uses: actions/cache@v6
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 10
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build Project
env:
RUN_INTEGRATION_TESTS: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
MAVEN_OPTS: >
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-B -ntp
-XX:+IgnoreUnrecognizedVMOptions
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
timeout-minutes: 120
run: |
.github/workflows/scripts/pr-tests/.pinot_tests_build.sh
- name: Concurrent Integration Test Lanes
env:
RUN_INTEGRATION_TESTS: true
RUN_TEST_SET: ${{ matrix.testset }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
MAVEN_OPTS: >
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-B -ntp
-XX:+IgnoreUnrecognizedVMOptions
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
timeout-minutes: 120
run: |
.github/workflows/scripts/pr-tests/.pinot_tests_two_lane_integration.sh
- name: Upload lane A coverage to Codecov
uses: codecov/codecov-action@v7
continue-on-error: true
timeout-minutes: 5
with:
flags: integration,integration${{ matrix.testset }},lane-a,${{matrix.distribution}},java-${{matrix.java}}
name: codecov-integration-tests-lane-a
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: pinot-integration-tests/target-lane-a/site/jacoco/jacoco.xml
disable_search: true
verbose: true
- name: Upload lane B coverage to Codecov
uses: codecov/codecov-action@v7
continue-on-error: true
timeout-minutes: 5
with:
flags: integration,integration${{ matrix.testset }},lane-b,${{matrix.distribution}},java-${{matrix.java}}
name: codecov-integration-tests-lane-b
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: pinot-integration-tests/target-lane-b/site/jacoco/jacoco.xml
disable_search: true
verbose: true
- name: Generate Surefire Report
if: ${{ !cancelled() && github.ref == 'refs/heads/master' }}
continue-on-error: true
timeout-minutes: 120
run: |
mvn -f pinot-integration-tests/pom.xml surefire-report:report-only \
-Dpinot.integration.test.build.directory="${GITHUB_WORKSPACE}/pinot-integration-tests/target-lane-a" \
-P github-actions,codecoverage
mvn -f pinot-integration-tests/pom.xml surefire-report:report-only \
-Dpinot.integration.test.build.directory="${GITHUB_WORKSPACE}/pinot-integration-tests/target-lane-b" \
-P github-actions,codecoverage
- name: Upload Surefire Reports
if: ${{ !cancelled() && github.ref == 'refs/heads/master' }}
uses: actions/upload-artifact@v7
with:
name: surefire-reports-integration-test-${{ matrix.testset }}-${{matrix.distribution}}-${{matrix.java}}
path: |
**/target-lane-a/surefire-reports/
**/target-lane-b/surefire-reports/
**/target-lane-a/site/surefire-report.html
**/target-lane-b/site/surefire-report.html
**/target-concurrent-logs/
retention-days: 30