You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2025/10/02 05:43:43 UTC

(beam) 01/01: Skip SqlTransformExample

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

vterentev pushed a commit to branch fix-playground-ci-nightly
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 0bfd86327a931691ea9e0f8c16321e1d37fe6fa6
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Wed Oct 1 18:09:29 2025 +0400

    Skip SqlTransformExample
---
 examples/java/sql/build.gradle     | 2 +-
 playground/infrastructure/ci_cd.py | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/examples/java/sql/build.gradle b/examples/java/sql/build.gradle
index 05bfaec2a80..af61989f11c 100644
--- a/examples/java/sql/build.gradle
+++ b/examples/java/sql/build.gradle
@@ -119,4 +119,4 @@ tasks.create(name:"execute", type:JavaExec) {
   classpath = sourceSets.main.runtimeClasspath
   systemProperties System.getProperties()
   args project.hasProperty("exec.args") ? project.getProperty("exec.args").split() : []
-}
\ No newline at end of file
+}
diff --git a/playground/infrastructure/ci_cd.py b/playground/infrastructure/ci_cd.py
index eff54fdaa6f..cf50bea2e03 100644
--- a/playground/infrastructure/ci_cd.py
+++ b/playground/infrastructure/ci_cd.py
@@ -20,6 +20,7 @@ import argparse
 import asyncio
 import logging
 import os
+import re
 from typing import List
 
 from constants import BEAM_ROOT_DIR_ENV_VAR_KEY, BEAM_EXAMPLE_CATEGORIES_ENV_VAR_KEY
@@ -98,6 +99,14 @@ def _run_ci_cd(step: str, raw_sdk: str, origin: Origin, project: str, namespace:
     load_supported_categories(categories_file)
     logging.info("Start of searching Playground examples ...")
     examples = find_examples(root_dir, subdirs, sdk)
+
+    # TODO: remove SqlTransformExample skip when vendor-calcite is on runtime CP (expected by Beam ≥ 2.69.0).
+    if sdk == SdkEnum.JAVA:
+      ignored = r"(?:^|/)SqlTransformExample\.java$"
+      examples = [
+        e for e in examples
+        if not (re.search(ignored, e.filepath) or re.search(ignored, str(e.url_vcs)))
+      ]
     validate_examples_for_duplicates_by_name(examples)
     validate_examples_for_conflicting_datasets(examples)
     logging.info("Finish of searching Playground examples")