-
Notifications
You must be signed in to change notification settings - Fork 938
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI #2175] Improve CI with cancel & concurrency & paths filter
### _Why are the changes needed?_ Better ASF GHA resource usage, see more https://cwiki.apache.org/confluence/display/BUILDS/GitHub+Actions+status - cancel-in-progress enabled. w/ this, a previous build can be canceled if new commit(s) have arrived - style check w/o install. currently, the style check takes 8~10min to finish because an install step before it. now, it shall return within a minute. note that, this might 'fail' itself when we introduce a new module and others depend on it, but it's ok to verify by the log whether a PR ok to be merged. - dependency check runs only when pom.xml updates. this flow now runs only pom changes as it is the only way that may cause dependency changes. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [x] Add screenshots for manual tests if appropriate **Canceled**: https://github.com/apache/incubator-kyuubi/runs/5604809742?check_suite_focus=true <img width="548" alt="image" src="https://user-images.githubusercontent.com/8326978/159059722-480f4fd6-d87e-4b07-984e-eb5b08a84beb.png"> - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2175 from yaooqinn/gha. Closes #2175 33777bc [Kent Yao] Update .github/workflows/style.yml ec41ddd [Kent Yao] Update .github/workflows/style.yml 79db981 [Kent Yao] fix 4e1fb38 [Kent Yao] fix 733df9c [Kent Yao] Improve CI with cancel & concurrency 494c3a8 [Kent Yao] Revert "Improve CI with cancel & concurrency" 57641ac [Kent Yao] Improve CI with cancel & concurrency 6dafe97 [Kent Yao] Improve CI with cancel & concurrency 40160ab [Kent Yao] Improve CI with cancel & concurrency 377285c [Kent Yao] Improve CI with cancel & concurrency dbe8999 [Kent Yao] Improve CI with cancel & concurrency 78a9726 [Kent Yao] Improve CI with cancel & concurrency 7e984eb [Kent Yao] Improve CI with cancel & concurrency d253821 [Kent Yao] Improve CI with cancel & concurrency 51a7c48 [Kent Yao] Improve CI with cancel & concurrency c5e3177 [Kent Yao] Improve CI with cancel & concurrency Authored-by: Kent Yao <[email protected]> Signed-off-by: Kent Yao <[email protected]>
- Loading branch information
Showing
6 changed files
with
96 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
# 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: Dependency | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- branch-* | ||
paths: | ||
# dependency check happens only pom changes | ||
- '**/pom.xml' | ||
|
||
concurrency: | ||
group: dep-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dep: | ||
name: Dependency check | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: zulu | ||
java-version: 8 | ||
cache: 'maven' | ||
check-latest: false | ||
- name: build | ||
env: | ||
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.defaultLogLevel=error | ||
run: >- | ||
build/mvn clean install | ||
-Pflink-provided,spark-provided | ||
-Dmaven.javadoc.skip=true | ||
-Drat.skip=true | ||
-Dscalastyle.skip=true | ||
-Dspotless.check.skip | ||
-DskipTests | ||
-pl kyuubi-ctl,kyuubi-server,kyuubi-assembly -am | ||
- name: Check dependency list | ||
run: build/dependency.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters