This is an automated email from the ASF dual-hosted git repository.

zabetak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 1f94e23fa6 [CALCITE-7751] Skipped CI jobs when adding labels
1f94e23fa6 is described below

commit 1f94e23fa6c06268855056a22380575bfa55d262
Author: Stamatis Zampetakis <[email protected]>
AuthorDate: Sat Aug 29 15:12:33 2026 +0200

    [CALCITE-7751] Skipped CI jobs when adding labels
---
 .github/workflows/labelled.yml | 60 ++++++++++++++++++++++++++++++++++++++++++
 .github/workflows/main.yml     | 37 +-------------------------
 2 files changed, 61 insertions(+), 36 deletions(-)

diff --git a/.github/workflows/labelled.yml b/.github/workflows/labelled.yml
new file mode 100644
index 0000000000..9aca1714a0
--- /dev/null
+++ b/.github/workflows/labelled.yml
@@ -0,0 +1,60 @@
+# 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.
+
+# All jobs with label based triggering
+
+name: CI
+
+on:
+  push:
+    paths-ignore:
+      - 'site/**'
+    branches:
+      - 'main'
+  pull_request:
+    types: [labeled]
+    paths-ignore:
+      - 'site/**'
+    branches:
+      - '*'
+
+# Throw OutOfMemoryError in case less than 35% is free after full GC
+# This avoids never-ending GC trashing if memory gets too low in case of a 
memory leak
+env:
+  _JAVA_OPTIONS: '-XX:GCTimeLimit=90 -XX:GCHeapFreeLimit=35'
+  DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+
+jobs:
+  linux-slow:
+    # Run slow tests when the commit is on main or it is requested explicitly 
by adding an
+    # appropriate label in the PR
+    if: github.ref == 'refs/heads/main' || 
contains(github.event.pull_request.labels.*.name, 'slow-tests-needed')
+    name: 'Linux (JDK 8) Slow Tests'
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v5
+        with:
+          fetch-depth: 50
+      - name: 'Set up JDK 8'
+        uses: actions/setup-java@v5
+        with:
+          java-version: 8
+          distribution: 'zulu'
+      - uses: burrunan/gradle-cache-action@v1
+        name: Test
+        with:
+          job-id: jdk8
+          remote-build-cache-proxy-enabled: false
+          arguments: --scan --no-parallel --no-daemon testSlow
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index df77ec38ee..1ed5b52576 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -28,7 +28,7 @@ on:
     branches:
       - '*'
   pull_request:
-    types: [opened, synchronize, reopened, labeled]
+    types: [opened, synchronize, reopened]
     paths-ignore:
       - 'site/**'
     branches:
@@ -52,7 +52,6 @@ env:
 
 jobs:
   windows-jdk8:
-    if: github.event.action != 'labeled'
     name: 'Windows (JDK 8)'
     runs-on: windows-latest
     steps:
@@ -84,7 +83,6 @@ jobs:
         call sqlsh.bat -o headers "select count(*) commits, author from 
(select substring(author, 1, position(' <' in author)-1) author from 
git_commits) group by author order by count(*) desc, author limit 20"
 
   windows-jdk17:
-    if: github.event.action != 'labeled'
     name: 'Windows (JDK 17)'
     runs-on: windows-latest
     steps:
@@ -116,7 +114,6 @@ jobs:
           call sqlsh.bat -o headers "select count(*) commits, author from 
(select substring(author, 1, position(' <' in author)-1) author from 
git_commits) group by author order by count(*) desc, author limit 20"
 
   windows-jdk21:
-    if: github.event.action != 'labeled'
     name: 'Windows (JDK 21)'
     runs-on: windows-latest
     steps:
@@ -148,7 +145,6 @@ jobs:
           call sqlsh.bat -o headers "select count(*) commits, author from 
(select substring(author, 1, position(' <' in author)-1) author from 
git_commits) group by author order by count(*) desc, author limit 20"
 
   linux-jdk8-oldest-guava-tz:
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 8, oldest Guava, America/New_York Timezone)'
     runs-on: ubuntu-latest
     env:
@@ -170,7 +166,6 @@ jobs:
           arguments: --scan --no-parallel --no-daemon -Pguava.version=${{ 
env.GUAVA_MIN }} build
 
   linux-jdk8-latest-guava-tz:
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 8, latest Guava, America/New_York Timezone)'
     runs-on: ubuntu-latest
     env:
@@ -192,7 +187,6 @@ jobs:
           arguments: --scan --no-parallel --no-daemon -Pguava.version=${{ 
env.GUAVA_MAX }} tasks build
 
   linux-jdk11-tz:
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 11, Pacific/Chatham Timezone)'
     runs-on: ubuntu-latest
     env:
@@ -214,7 +208,6 @@ jobs:
           arguments: --scan --no-parallel --no-daemon build
 
   linux-jdk17:  # LTS JDK version, don't remove until EOL
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 17)'
     runs-on: ubuntu-latest
     steps:
@@ -234,7 +227,6 @@ jobs:
           arguments: --scan --no-parallel --no-daemon -Pguava.version=${{ 
env.GUAVA }} build
 
   linux-jdk121:  # LTS JDK version, don't remove until EOL
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 21)'
     runs-on: ubuntu-latest
     steps:
@@ -254,7 +246,6 @@ jobs:
           arguments: --scan --no-parallel --no-daemon -Pguava.version=${{ 
env.GUAVA }} build
 
   linux-jdk24: # latest JDK version supported by ForbiddenAPIs plugin, keep 
this updated (see https://jdk.java.net/)
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 24)'
     runs-on: ubuntu-latest
     steps:
@@ -274,7 +265,6 @@ jobs:
           arguments: --scan --no-parallel --no-daemon -Pguava.version=${{ 
env.GUAVA }} tasks build
 
   linux-avatica:
-    if: github.event.action != 'labeled'
     name: 'Linux (JDK 11, Avatica main)'
     runs-on: ubuntu-latest
     steps:
@@ -311,7 +301,6 @@ jobs:
           enableMavenLocal=
 
   mac:
-    if: github.event.action != 'labeled'
     name: 'macOS (JDK 21)'
     runs-on: macos-15
     steps:
@@ -342,7 +331,6 @@ jobs:
           ./sqlsh -o headers "select count(*) commits, author from (select 
substring(author, 1, position(' <' in author)-1) author from git_commits) group 
by author order by count(*) desc, author limit 20"
 
   errorprone-guava-latest:
-    if: github.event.action != 'labeled'
     name: 'ErrorProne (JDK 11, latest Guava)'
     runs-on: ubuntu-latest
     steps:
@@ -400,30 +388,7 @@ jobs:
           remote-build-cache-proxy-enabled: false
           arguments: --scan --no-parallel --no-daemon -Pguava.version=${{ 
env.GUAVA_MIN }} -PenableCheckerframework :linq4j:classes :core:classes 
:server:classes
 
-  linux-slow:
-    # Run slow tests when the commit is on main or it is requested explicitly 
by adding an
-    # appropriate label in the PR
-    if: github.ref == 'refs/heads/main' || 
contains(github.event.pull_request.labels.*.name, 'slow-tests-needed')
-    name: 'Linux (JDK 8) Slow Tests'
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v5
-        with:
-          fetch-depth: 50
-      - name: 'Set up JDK 8'
-        uses: actions/setup-java@v5
-        with:
-          java-version: 8
-          distribution: 'zulu'
-      - uses: burrunan/gradle-cache-action@v1
-        name: Test
-        with:
-          job-id: jdk8
-          remote-build-cache-proxy-enabled: false
-          arguments: --scan --no-parallel --no-daemon testSlow
-
   linux-druid:
-    if: github.event.action != 'labeled'
     name: 'Druid Tests'
     runs-on: ubuntu-latest
     steps:

Reply via email to