Skip to content

Commit

Permalink
ARROW-8167: [CI] Add support for skipping builds with skip pattern in…
Browse files Browse the repository at this point in the history
… pull request title

In certain cases, especially when someone adds a new build configuration it can be handy to disable all but that job.

Sadly the commit message is not available for the pull_request event, so we cannot have conditions on it, but we can use the pull request's title for this purpose.

Hopefully the pull request event payload will contain the head commit in the future.

Closes #6671 from kszucs/skip-ci

Authored-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
  • Loading branch information
kszucs authored and pitrou committed Apr 2, 2020
1 parent 6a583e5 commit 04c467f
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/archery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ on:
jobs:

archery:
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
name: Archery Unittests
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
conda:
name: AMD64 Conda C++
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
steps:
- name: Checkout Arrow
uses: actions/checkout@v2
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
ubuntu-sanitizer:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} C++ ASAN UBSAN
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -106,6 +108,7 @@ jobs:
macos:
name: AMD64 MacOS 10.15 C++
runs-on: macos-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
env:
Expand Down Expand Up @@ -160,6 +163,7 @@ jobs:
windows:
name: AMD64 ${{ matrix.name }} C++
runs-on: ${{ matrix.os }}
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -224,6 +228,7 @@ jobs:
windows-mingw:
name: AMD64 Windows MinGW ${{ matrix.mingw-n-bits }} C++
runs-on: windows-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cpp_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
debian:
name: AMD64 Debian ${{ matrix.debian }} C++
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
fedora:
name: AMD64 Fedora ${{ matrix.fedora }} C++
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -113,6 +115,7 @@ jobs:
ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} C++
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -144,7 +147,7 @@ jobs:
ubuntu-cmake32:
name: AMD64 Ubuntu 18.04 C++ CMake 3.2
runs-on: ubuntu-latest
if: github.event_name == 'push'
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -187,6 +190,7 @@ jobs:
oss-fuzz:
name: OSS-Fuzz build check
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
ubuntu:
name: AMD64 Ubuntu 18.04 C# ${{ matrix.dotnet }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand All @@ -60,6 +61,7 @@ jobs:
windows:
name: AMD64 Windows 2019 18.04 C# ${{ matrix.dotnet }}
runs-on: windows-latest
if: !contains(github.event.pull_request.title, 'WIP')
strategy:
fail-fast: false
matrix:
Expand All @@ -86,7 +88,7 @@ jobs:
macos:
name: AMD64 MacOS 10.15 C# ${{ matrix.dotnet }}
runs-on: macos-latest
if: github.event_name == 'push'
if: !contains(github.event.pull_request.title, 'WIP')
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
lint:
name: Lint C++, Python, R, Rust, Docker, RAT
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
steps:
- name: Checkout Arrow
uses: actions/checkout@v2
Expand Down Expand Up @@ -57,6 +58,7 @@ jobs:
release:
name: Source Release and Merge Script
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
env:
GIT_AUTHOR_NAME: Github Actions
GIT_AUTHOR_EMAIL: github@actions
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
debian:
name: AMD64 Debian 10 Go ${{ matrix.go }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
windows:
name: AMD64 Windows 2019 Go ${{ matrix.go }}
runs-on: windows-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand All @@ -92,7 +94,7 @@ jobs:
macos:
name: AMD64 MacOS 10.15 Go ${{ matrix.go }}
runs-on: macos-latest
if: github.event_name == 'push'
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
conda-integration:
name: AMD64 Conda Integration Test
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
env:
MAVEN: 3.5
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
debian:
name: AMD64 Debian 9 Java JDK ${{ matrix.jdk }} Maven ${{ matrix.maven }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/java_jni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
debian:
name: AMD64 Debian 9 Java JNI and Plasma
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
debian:
name: AMD64 Debian 10 NodeJS ${{ matrix.node }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
ubuntu:
name: AMD64 Ubuntu 16.04 Python 3.5
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
env:
UBUNTU: 16.04
steps:
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
conda-nopandas:
name: AMD64 Conda Python ${{ matrix.python }} Without Pandas
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -110,6 +112,7 @@ jobs:
conda-pandas:
name: AMD64 Conda Python ${{ matrix.python }} Pandas ${{ matrix.pandas }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -154,6 +157,7 @@ jobs:
macos:
name: AMD64 MacOS 10.15 Python 3.7
runs-on: macos-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
env:
ARROW_HOME: /usr/local
ARROW_DATASET: ON
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
debian:
name: AMD64 Debian ${{ matrix.debian }} Python 3
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} Python 3
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -111,6 +113,7 @@ jobs:
fedora:
name: AMD64 Fedora ${{ matrix.fedora }} Python 3
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -150,6 +153,7 @@ jobs:
downstream:
name: AMD64 Conda Python 3.7 ${{ matrix.title }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} R ${{ matrix.r }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -87,6 +88,7 @@ jobs:
rstudio:
name: "rstudio/r-base:${{ matrix.r_version }}-${{ matrix.r_image }}"
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -130,6 +132,7 @@ jobs:
windows:
name: AMD64 Windows RTools ${{ matrix.rtools }}
runs-on: windows-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} GLib & Ruby
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -83,6 +84,7 @@ jobs:
macos:
name: AMD64 MacOS 10.15 GLib & Ruby
runs-on: macos-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
env:
Expand Down Expand Up @@ -134,6 +136,7 @@ jobs:
windows:
name: AMD64 Windows MinGW ${{ matrix.mingw-n-bits }} GLib & Ruby
runs-on: windows-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
debian:
name: AMD64 Debian 10 Rust ${{ matrix.rust }}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
windows:
name: AMD64 Windows 2019 Rust ${{ matrix.rust }}
runs-on: windows-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -102,6 +104,7 @@ jobs:
macos:
name: AMD64 MacOS 10.15 Rust ${{ matrix.rust }}
runs-on: macos-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
strategy:
fail-fast: false
matrix:
Expand Down
5 changes: 2 additions & 3 deletions ci/scripts/util_checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
# specific language governing permissions and limitations
# under the License.

# this script is github actions specific
# this script is github actions specific to check out the submodules and tags

# checkout the submodules, remove it once the "submodules: recursive" feature
# gets released again
# TODO(kszucs): remove it once the "submodules: recursive" feature is released
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
Expand Down

0 comments on commit 04c467f

Please sign in to comment.