From e4258ea695be4d84dc19a9f673203ed385036930 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Wed, 21 Aug 2024 12:24:00 +0100 Subject: [PATCH] [ci] Use a tag to figure out what we might want to release (#14378) Co-authored-by: Diego Molina --- dotnet/BUILD.bazel | 6 ++++++ java/src/org/openqa/selenium/BUILD.bazel | 6 ++++++ java/src/org/openqa/selenium/chrome/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/chromium/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/devtools/v125/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/devtools/v126/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/devtools/v127/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/devtools/v85/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/edge/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/firefox/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/grid/BUILD.bazel | 6 ++++++ .../org/openqa/selenium/grid/sessionmap/jdbc/BUILD.bazel | 3 +++ .../org/openqa/selenium/grid/sessionmap/redis/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/ie/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/json/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/manager/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/os/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/remote/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/remote/http/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/safari/BUILD.bazel | 3 +++ java/src/org/openqa/selenium/support/BUILD.bazel | 3 +++ javascript/node/selenium-webdriver/BUILD.bazel | 3 +++ py/BUILD.bazel | 3 +++ rb/BUILD.bazel | 6 ++++++ scripts/github-actions/ci-build.sh | 7 +------ 25 files changed, 85 insertions(+), 6 deletions(-) diff --git a/dotnet/BUILD.bazel b/dotnet/BUILD.bazel index 5f49606038559..5315ea13867f8 100644 --- a/dotnet/BUILD.bazel +++ b/dotnet/BUILD.bazel @@ -11,6 +11,9 @@ pkg_zip( "//dotnet/src/support:support-strongnamed-pack", "//dotnet/src/webdriver:webdriver-strongnamed-pack", ], + tags = [ + "release-artifact", + ], ) pkg_zip( @@ -19,4 +22,7 @@ pkg_zip( "//dotnet/src/support:support-pack", "//dotnet/src/webdriver:webdriver-pack", ], + tags = [ + "release-artifact", + ], ) diff --git a/java/src/org/openqa/selenium/BUILD.bazel b/java/src/org/openqa/selenium/BUILD.bazel index 94d243ec83524..a10ac67d52a0f 100644 --- a/java/src/org/openqa/selenium/BUILD.bazel +++ b/java/src/org/openqa/selenium/BUILD.bazel @@ -30,6 +30,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = ":template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], deps = [ ":manifest", @@ -41,6 +44,9 @@ java_export( name = "client-combined", maven_coordinates = "org.seleniumhq.selenium:selenium-java:" + SE_VERSION, pom_template = ":template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/chrome/BUILD.bazel b/java/src/org/openqa/selenium/chrome/BUILD.bazel index 375486012d743..7c536fc96351d 100644 --- a/java/src/org/openqa/selenium/chrome/BUILD.bazel +++ b/java/src/org/openqa/selenium/chrome/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-chrome-driver:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], exports = [ "//java/src/org/openqa/selenium/chromium", diff --git a/java/src/org/openqa/selenium/chromium/BUILD.bazel b/java/src/org/openqa/selenium/chromium/BUILD.bazel index 09d0b0741cfa3..9b14784d4ec23 100644 --- a/java/src/org/openqa/selenium/chromium/BUILD.bazel +++ b/java/src/org/openqa/selenium/chromium/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-chromium-driver:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/devtools/v125/BUILD.bazel b/java/src/org/openqa/selenium/devtools/v125/BUILD.bazel index a83f5fc59c688..c83b2d4ad9e55 100644 --- a/java/src/org/openqa/selenium/devtools/v125/BUILD.bazel +++ b/java/src/org/openqa/selenium/devtools/v125/BUILD.bazel @@ -12,6 +12,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/devtools/v126/BUILD.bazel b/java/src/org/openqa/selenium/devtools/v126/BUILD.bazel index 6bbbe3c969f17..7a5445eafcd73 100644 --- a/java/src/org/openqa/selenium/devtools/v126/BUILD.bazel +++ b/java/src/org/openqa/selenium/devtools/v126/BUILD.bazel @@ -12,6 +12,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/devtools/v127/BUILD.bazel b/java/src/org/openqa/selenium/devtools/v127/BUILD.bazel index 3e6e0df1e61e8..3c97faa8a798a 100644 --- a/java/src/org/openqa/selenium/devtools/v127/BUILD.bazel +++ b/java/src/org/openqa/selenium/devtools/v127/BUILD.bazel @@ -12,6 +12,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/devtools/v85/BUILD.bazel b/java/src/org/openqa/selenium/devtools/v85/BUILD.bazel index 153ba809b0b3c..47c8c4a49e97b 100644 --- a/java/src/org/openqa/selenium/devtools/v85/BUILD.bazel +++ b/java/src/org/openqa/selenium/devtools/v85/BUILD.bazel @@ -10,6 +10,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/edge/BUILD.bazel b/java/src/org/openqa/selenium/edge/BUILD.bazel index bbc4dc32e0b66..7795baf9c1927 100644 --- a/java/src/org/openqa/selenium/edge/BUILD.bazel +++ b/java/src/org/openqa/selenium/edge/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-edge-driver:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/firefox/BUILD.bazel b/java/src/org/openqa/selenium/firefox/BUILD.bazel index ee4706cdfea42..a52aa9066d4d1 100644 --- a/java/src/org/openqa/selenium/firefox/BUILD.bazel +++ b/java/src/org/openqa/selenium/firefox/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-firefox-driver:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], deps = [ "//java:auto-service", diff --git a/java/src/org/openqa/selenium/grid/BUILD.bazel b/java/src/org/openqa/selenium/grid/BUILD.bazel index 87b5451d5e168..496ea262d0973 100644 --- a/java/src/org/openqa/selenium/grid/BUILD.bazel +++ b/java/src/org/openqa/selenium/grid/BUILD.bazel @@ -117,6 +117,9 @@ maven_bom( "//java/src/org/openqa/selenium:core", ] + CDP_DEPS, maven_coordinates = "org.seleniumhq.selenium:selenium-bom:%s" % SE_VERSION, + tags = [ + "release-artifact", + ], ) java_export( @@ -130,6 +133,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], uses = [ "org.openqa.selenium.WebDriverInfo", "org.openqa.selenium.cli.CliCommand", diff --git a/java/src/org/openqa/selenium/grid/sessionmap/jdbc/BUILD.bazel b/java/src/org/openqa/selenium/grid/sessionmap/jdbc/BUILD.bazel index 33df6f02163bc..c87659c3bb941 100644 --- a/java/src/org/openqa/selenium/grid/sessionmap/jdbc/BUILD.bazel +++ b/java/src/org/openqa/selenium/grid/sessionmap/jdbc/BUILD.bazel @@ -7,6 +7,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-session-map-jdbc:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/grid/sessionmap/redis/BUILD.bazel b/java/src/org/openqa/selenium/grid/sessionmap/redis/BUILD.bazel index cb9b73307f9f7..d29484ba06b29 100644 --- a/java/src/org/openqa/selenium/grid/sessionmap/redis/BUILD.bazel +++ b/java/src/org/openqa/selenium/grid/sessionmap/redis/BUILD.bazel @@ -7,6 +7,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-session-map-redis:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/ie/BUILD.bazel b/java/src/org/openqa/selenium/ie/BUILD.bazel index 918d87aa791f2..b6f6e93c3619f 100644 --- a/java/src/org/openqa/selenium/ie/BUILD.bazel +++ b/java/src/org/openqa/selenium/ie/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-ie-driver:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], deps = [ "//java:auto-service", diff --git a/java/src/org/openqa/selenium/json/BUILD.bazel b/java/src/org/openqa/selenium/json/BUILD.bazel index f04ce2e3cfca0..eff66b1b9aa0f 100644 --- a/java/src/org/openqa/selenium/json/BUILD.bazel +++ b/java/src/org/openqa/selenium/json/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-json:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/manager/BUILD.bazel b/java/src/org/openqa/selenium/manager/BUILD.bazel index eb42f214bfe3a..d66cf5aa885ef 100644 --- a/java/src/org/openqa/selenium/manager/BUILD.bazel +++ b/java/src/org/openqa/selenium/manager/BUILD.bazel @@ -15,6 +15,9 @@ java_export( ":manager-macos", ":manager-windows", ], + tags = [ + "release-artifact", + ], visibility = [ "//visibility:public", ], diff --git a/java/src/org/openqa/selenium/os/BUILD.bazel b/java/src/org/openqa/selenium/os/BUILD.bazel index 5b7d49b9b97d2..1c2908b00ceff 100644 --- a/java/src/org/openqa/selenium/os/BUILD.bazel +++ b/java/src/org/openqa/selenium/os/BUILD.bazel @@ -7,6 +7,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-os:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], deps = [ "//java/src/org/openqa/selenium:core", diff --git a/java/src/org/openqa/selenium/remote/BUILD.bazel b/java/src/org/openqa/selenium/remote/BUILD.bazel index ff6969e73fcc4..1f4dee171f251 100644 --- a/java/src/org/openqa/selenium/remote/BUILD.bazel +++ b/java/src/org/openqa/selenium/remote/BUILD.bazel @@ -13,6 +13,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], uses = [ "org.openqa.selenium.devtools.CdpInfo", "org.openqa.selenium.remote.AugmenterProvider", diff --git a/java/src/org/openqa/selenium/remote/http/BUILD.bazel b/java/src/org/openqa/selenium/remote/http/BUILD.bazel index 8719b69bda047..9cb037c5b2e5a 100644 --- a/java/src/org/openqa/selenium/remote/http/BUILD.bazel +++ b/java/src/org/openqa/selenium/remote/http/BUILD.bazel @@ -7,6 +7,9 @@ java_export( srcs = glob(["**/*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-http:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], uses = [ "org.openqa.selenium.remote.http.HttpClient$Factory", ], diff --git a/java/src/org/openqa/selenium/safari/BUILD.bazel b/java/src/org/openqa/selenium/safari/BUILD.bazel index dc775de85206b..d0ede1b60e216 100644 --- a/java/src/org/openqa/selenium/safari/BUILD.bazel +++ b/java/src/org/openqa/selenium/safari/BUILD.bazel @@ -6,6 +6,9 @@ java_export( srcs = glob(["*.java"]), maven_coordinates = "org.seleniumhq.selenium:selenium-safari-driver:%s" % SE_VERSION, pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], deps = [ "//java:auto-service", diff --git a/java/src/org/openqa/selenium/support/BUILD.bazel b/java/src/org/openqa/selenium/support/BUILD.bazel index 071272e394af4..f7fecdc481463 100644 --- a/java/src/org/openqa/selenium/support/BUILD.bazel +++ b/java/src/org/openqa/selenium/support/BUILD.bazel @@ -13,6 +13,9 @@ java_export( "org.seleniumhq.selenium.json", ], pom_template = "//java/src/org/openqa/selenium:template-pom", + tags = [ + "release-artifact", + ], visibility = ["//visibility:public"], exports = [ ":page-factory", diff --git a/javascript/node/selenium-webdriver/BUILD.bazel b/javascript/node/selenium-webdriver/BUILD.bazel index 3559f4ec6b25f..0211914cae1cf 100644 --- a/javascript/node/selenium-webdriver/BUILD.bazel +++ b/javascript/node/selenium-webdriver/BUILD.bazel @@ -63,6 +63,9 @@ npm_package( "//javascript/node/selenium-webdriver/lib/atoms:mutation-listener", ], package = "selenium-webdriver", + tags = [ + "release-artifact", + ], version = VERSION, visibility = ["//visibility:public"], ) diff --git a/py/BUILD.bazel b/py/BUILD.bazel index 0cb2fbe21c10e..4b380989645fc 100644 --- a/py/BUILD.bazel +++ b/py/BUILD.bazel @@ -302,6 +302,9 @@ py_wheel( "py/", ], summary = "Official Python bindings for Selenium WebDriver", + tags = [ + "release-artifact", + ], version = SE_VERSION, visibility = ["//visibility:public"], deps = [ diff --git a/rb/BUILD.bazel b/rb/BUILD.bazel index 13fab229448ab..4bf70b0e77bf9 100644 --- a/rb/BUILD.bazel +++ b/rb/BUILD.bazel @@ -70,6 +70,9 @@ rb_gem_build( ":notice", ], gemspec = "selenium-webdriver.gemspec", + tags = [ + "release-artifact", + ], deps = [ "//rb/lib:selenium-webdriver", "//rb/lib/selenium:server", @@ -105,6 +108,9 @@ rb_gem_build( ":notice", ], gemspec = "selenium-devtools.gemspec", + tags = [ + "release-artifact", + ], deps = ["//rb/lib/selenium:devtools"], ) diff --git a/scripts/github-actions/ci-build.sh b/scripts/github-actions/ci-build.sh index e64cbcf62cde8..7f851438f7537 100755 --- a/scripts/github-actions/ci-build.sh +++ b/scripts/github-actions/ci-build.sh @@ -13,9 +13,4 @@ bazel test --config=remote-ci --build_tests_only \ //... -- $(cat .skipped-tests | tr '\n' ' ') # Build the packages we want to ship to users -bazel build --config=remote-ci \ - //dotnet:all \ - //java/src/... \ - //javascript/node/selenium-webdriver:selenium-webdriver \ - //py:selenium-wheel \ - //rb:selenium-devtools //rb:selenium-webdriver +bazel build --config=remote-ci --build_tag_filters=release-artifact //...