Delete more Kokoro tests in favor of GHA.

These have already been migrated, this just deleted dead code

PiperOrigin-RevId: 506798657
diff --git a/kokoro/linux/csharp/common.cfg b/kokoro/linux/csharp/common.cfg
deleted file mode 100644
index ffdf255..0000000
--- a/kokoro/linux/csharp/common.cfg
+++ /dev/null
@@ -1,27 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/linux/bazel.sh"
-timeout_mins: 1440
-
-env_vars {
-  key: "CONTAINER_IMAGE"
-  value: "us-docker.pkg.dev/protobuf-build/containers/test/linux/csharp:3.1.415-6.0.100-65526ea124d1034eac33e7c37cc6d65c5bef054f"
-}
-
-env_vars {
-  key: "BAZEL_TARGETS"
-  value: "//csharp/..."
-}
-
-env_vars {
-  key: "BAZEL_EXTRA_FLAGS"
-  value: "--action_env=DOTNET_CLI_TELEMETRY_OPTOUT=1 "
-         "--test_env=DOTNET_CLI_HOME=/home/bazel"
-}
-
-action {
-  define_artifacts {
-    regex: "**/sponge_log.*"
-  }
-}
diff --git a/kokoro/linux/csharp/continuous.cfg b/kokoro/linux/csharp/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/csharp/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/csharp/presubmit.cfg b/kokoro/linux/csharp/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/csharp/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_aarch64/common.cfg b/kokoro/linux/java_aarch64/common.cfg
deleted file mode 100644
index ba5cf7b..0000000
--- a/kokoro/linux/java_aarch64/common.cfg
+++ /dev/null
@@ -1,21 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/linux/bazel.sh"
-timeout_mins: 120
-
-env_vars {
-  key: "CONTAINER_IMAGE"
-  value: "us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:aarch64-e863f8ec6b1dfe41f7dc573bac9c8072a0a68b1b"
-}
-
-env_vars {
-  key: "BAZEL_TARGETS"
-  value: "//java/... //src/google/protobuf/compiler:protoc_aarch64_test"
-}
-
-action {
-  define_artifacts {
-    regex: "**/sponge_log.*"
-  }
-}
diff --git a/kokoro/linux/java_aarch64/continuous.cfg b/kokoro/linux/java_aarch64/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_aarch64/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_aarch64/presubmit.cfg b/kokoro/linux/java_aarch64/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_aarch64/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_jdk11/common.cfg b/kokoro/linux/java_jdk11/common.cfg
deleted file mode 100644
index 3db5cd0..0000000
--- a/kokoro/linux/java_jdk11/common.cfg
+++ /dev/null
@@ -1,16 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/linux/bazel.sh"
-timeout_mins: 120
-
-env_vars {
-  key: "BAZEL_TARGETS"
-  value: "//java/..."
-}
-
-action {
-  define_artifacts {
-    regex: "**/sponge_log.*"
-  }
-}
diff --git a/kokoro/linux/java_jdk11/continuous.cfg b/kokoro/linux/java_jdk11/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_jdk11/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_jdk11/presubmit.cfg b/kokoro/linux/java_jdk11/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_jdk11/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_jdk17/common.cfg b/kokoro/linux/java_jdk17/common.cfg
deleted file mode 100644
index 3fe9d42..0000000
--- a/kokoro/linux/java_jdk17/common.cfg
+++ /dev/null
@@ -1,21 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/linux/bazel.sh"
-timeout_mins: 120
-
-env_vars {
-  key: "CONTAINER_IMAGE"
-  value: "us-docker.pkg.dev/protobuf-build/containers/test/linux/java:17-65526ea124d1034eac33e7c37cc6d65c5bef054f"
-}
-
-env_vars {
-  key: "BAZEL_TARGETS"
-  value: "//java/..."
-}
-
-action {
-  define_artifacts {
-    regex: "**/sponge_log.*"
-  }
-}
diff --git a/kokoro/linux/java_jdk17/continuous.cfg b/kokoro/linux/java_jdk17/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_jdk17/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_jdk17/presubmit.cfg b/kokoro/linux/java_jdk17/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_jdk17/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_linkage_monitor/build.sh b/kokoro/linux/java_linkage_monitor/build.sh
deleted file mode 100755
index 2b025ec..0000000
--- a/kokoro/linux/java_linkage_monitor/build.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-#
-# This is the top-level script we give to Kokoro as the entry point for
-# running the "pull request" project:
-#
-# This script selects a specific Dockerfile (for building a Docker image) and
-# a script to run inside that image.
-
-set -eux
-
-use_bazel.sh 4.2.2
-
-# Change to repo root
-cd $(dirname $0)/../../..
-
-sudo ./kokoro/common/setup_kokoro_environment.sh
-bazel build //:protoc
-
-# The java build setup expects protoc in the root directory.
-cp bazel-bin/protoc .
-
-cd java
-# Installs the snapshot version locally
-mvn -e -B -Dhttps.protocols=TLSv1.2 install -Dmaven.test.skip=true
-
-# Linkage Monitor uses the snapshot versions installed in $HOME/.m2 to verify compatibility
-JAR=linkage-monitor-latest-all-deps.jar
-curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}"
-# Fails if there's new linkage errors compared with baseline
-java -jar $JAR com.google.cloud:libraries-bom
diff --git a/kokoro/linux/java_linkage_monitor/common.cfg b/kokoro/linux/java_linkage_monitor/common.cfg
deleted file mode 100644
index c02a52f..0000000
--- a/kokoro/linux/java_linkage_monitor/common.cfg
+++ /dev/null
@@ -1,12 +0,0 @@
-# Config file for running Linkage Monitor in Kokoro
-# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/linux/java_linkage_monitor/build.sh"
-timeout_mins: 120
-
-action {
-  define_artifacts {
-    regex: "**/sponge_log.xml"
-  }
-}
diff --git a/kokoro/linux/java_linkage_monitor/continuous.cfg b/kokoro/linux/java_linkage_monitor/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_linkage_monitor/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/linux/java_linkage_monitor/presubmit.cfg b/kokoro/linux/java_linkage_monitor/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/linux/java_linkage_monitor/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/macos-next/README.md b/kokoro/macos-next/README.md
deleted file mode 100644
index 4657855..0000000
--- a/kokoro/macos-next/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# macOS-next
-
-This builder is temporary for developing and testing builds using the "next"
-macOS version without affecting the ordinary builds.
diff --git a/kokoro/macos-next/cpp/build.sh b/kokoro/macos-next/cpp/build.sh
deleted file mode 100755
index 1e2ae40..0000000
--- a/kokoro/macos-next/cpp/build.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash -eux
-#
-# Build file to set up and run tests
-
-set -o pipefail
-
-if [[ -h /tmpfs ]] && [[ ${PWD} == /tmpfs/src ]]; then
-  # Workaround for internal Kokoro bug: b/227401944
-  cd /Volumes/BuildData/tmpfs/src
-fi
-
-# Default environment variables used by cmake build:
-: ${CMAKE_CONFIG_TYPE:=Debug}
-export CMAKE_CONFIG_TYPE
-: ${CTEST_PARALLEL_LEVEL:=4}
-export CTEST_PARALLEL_LEVEL
-
-# Run from the project root directory.
-cd $(dirname $0)/../../..
-
-#
-# Update submodules and regenerate files
-#
-git submodule update --init --recursive
-./regenerate_stale_files.sh
-
-#
-# Run build
-#
-kokoro/common/cmake.sh
diff --git a/kokoro/macos-next/cpp/common.cfg b/kokoro/macos-next/cpp/common.cfg
deleted file mode 100644
index 166caa5..0000000
--- a/kokoro/macos-next/cpp/common.cfg
+++ /dev/null
@@ -1,13 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/macos-next/cpp/build.sh"
-timeout_mins: 1440
-
-# Upload logs
-action: {
-  define_artifacts: {
-    regex: "**/*sponge_log.log"
-    regex: "**/*sponge_log.xml"
-  }
-}
diff --git a/kokoro/macos-next/cpp/continuous.cfg b/kokoro/macos-next/cpp/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/macos-next/cpp/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/macos-next/cpp/presubmit.cfg b/kokoro/macos-next/cpp/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/macos-next/cpp/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/cmake/build.bat b/kokoro/windows/cmake/build.bat
deleted file mode 100644
index d24e635..0000000
--- a/kokoro/windows/cmake/build.bat
+++ /dev/null
@@ -1,33 +0,0 @@
-@rem enter repo root
-cd /d %~dp0\..\..\..
-
-call kokoro\windows\prepare_build_win64.bat || goto :error
-
-@rem TODO(b/241475022) Use docker to guarantee better stability.
-@rem TODO(b/241484899) Run conformance tests in windows.
-
-md build
-md %KOKORO_ARTIFACTS_DIR%\logs
-
-cd build
-
-cmake .. ^
-	-G "Visual Studio 15 2017" -A x64 ^
-  -Dprotobuf_BUILD_EXAMPLES=ON ^
-	-Dprotobuf_BUILD_CONFORMANCE=OFF ^
-	-Dprotobuf_WITH_ZLIB=OFF ^
-	-Dprotobuf_TEST_XML_OUTDIR=%KOKORO_ARTIFACTS_DIR%\logs\ || goto :error
-
-cmake --build . || goto :error
-
-ctest --verbose -C Debug || goto :error
-
-goto :success
-
-:error
-cd /d %~dp0\..\..\..
-echo Failed!
-exit /b 1
-
-:success
-cd ..
diff --git a/kokoro/windows/cmake/common.cfg b/kokoro/windows/cmake/common.cfg
deleted file mode 100644
index 37e89e0..0000000
--- a/kokoro/windows/cmake/common.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/windows/cmake/build.bat"
-timeout_mins: 1440
diff --git a/kokoro/windows/cmake/continuous.cfg b/kokoro/windows/cmake/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/cmake/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/cmake/presubmit.cfg b/kokoro/windows/cmake/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/cmake/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/cmake_install/build.bat b/kokoro/windows/cmake_install/build.bat
deleted file mode 100644
index c5878de..0000000
--- a/kokoro/windows/cmake_install/build.bat
+++ /dev/null
@@ -1,45 +0,0 @@
-@rem enter repo root
-cd /d %~dp0\..\..\..
-
-call kokoro\windows\prepare_build_win64.bat || goto :error
-
-@rem TODO(b/241475022) Use docker to guarantee better stability.
-@rem TODO(b/241484899) Run conformance tests in windows.
-
-md build
-md %KOKORO_ARTIFACTS_DIR%\logs
-
-cd build
-
-@rem First install protobuf from source.
-cmake .. ^
-	-G "Visual Studio 15 2017" -A x64  ^
-	-Dprotobuf_BUILD_CONFORMANCE=OFF ^
-	-Dprotobuf_WITH_ZLIB=OFF || goto :error
-
-cmake --build . --target install || goto :error
-
-@rem Next run tests forcing the use of our installation.
-
-rm -rf *
-
-cmake .. ^
-	-G "Visual Studio 15 2017" -A x64 ^
-	-Dprotobuf_REMOVE_INSTALLED_HEADERS=ON ^
-  	-Dprotobuf_BUILD_PROTOBUF_BINARIES=OFF ^
-	-Dprotobuf_BUILD_CONFORMANCE=OFF ^
-	-Dprotobuf_TEST_XML_OUTDIR=%KOKORO_ARTIFACTS_DIR%\logs\ || goto :error
-
-cmake --build . --target ALL_BUILD || goto :error
-
-ctest --verbose -C Debug || goto :error
-
-goto :success
-
-:error
-cd /d %~dp0\..\..\..
-echo Failed!
-exit /b 1
-
-:success
-cd ..
diff --git a/kokoro/windows/cmake_install/common.cfg b/kokoro/windows/cmake_install/common.cfg
deleted file mode 100644
index 2efc0dc..0000000
--- a/kokoro/windows/cmake_install/common.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/windows/cmake_install/build.bat"
-timeout_mins: 1440
diff --git a/kokoro/windows/cmake_install/continuous.cfg b/kokoro/windows/cmake_install/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/cmake_install/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/cmake_install/presubmit.cfg b/kokoro/windows/cmake_install/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/cmake_install/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/cmake_shared/build.bat b/kokoro/windows/cmake_shared/build.bat
deleted file mode 100644
index d4bb2b1..0000000
--- a/kokoro/windows/cmake_shared/build.bat
+++ /dev/null
@@ -1,33 +0,0 @@
-@rem enter repo root
-cd /d %~dp0\..\..\..
-
-call kokoro\windows\prepare_build_win64.bat || goto :error
-
-@rem TODO(b/241475022) Use docker to guarantee better stability.
-@rem TODO(b/241484899) Run conformance tests in windows.
-
-md build
-md %KOKORO_ARTIFACTS_DIR%\logs
-
-cd build
-
-cmake .. ^
-	-G "Visual Studio 15 2017" -A x64  ^
-	-Dprotobuf_BUILD_SHARED_LIBS=ON ^
-	-Dprotobuf_BUILD_CONFORMANCE=OFF ^
-	-Dprotobuf_WITH_ZLIB=OFF ^
-	-Dprotobuf_TEST_XML_OUTDIR=%KOKORO_ARTIFACTS_DIR%\logs\ || goto :error
-
-cmake --build . || goto :error
-
-ctest --verbose -C Debug || goto :error
-
-goto :success
-
-:error
-cd /d %~dp0\..\..\..
-echo Failed!
-exit /b 1
-
-:success
-cd ..
diff --git a/kokoro/windows/cmake_shared/common.cfg b/kokoro/windows/cmake_shared/common.cfg
deleted file mode 100644
index 0ba52e2..0000000
--- a/kokoro/windows/cmake_shared/common.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/windows/cmake_shared/build.bat"
-timeout_mins: 1440
diff --git a/kokoro/windows/cmake_shared/continuous.cfg b/kokoro/windows/cmake_shared/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/cmake_shared/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/cmake_shared/presubmit.cfg b/kokoro/windows/cmake_shared/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/cmake_shared/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/csharp/build.bat b/kokoro/windows/csharp/build.bat
deleted file mode 100644
index 4f1df37..0000000
--- a/kokoro/windows/csharp/build.bat
+++ /dev/null
@@ -1,17 +0,0 @@
-@rem enter repo root
-cd /d %~dp0\..\..\..
-
-cd csharp
-
-@rem Install dotnet SDK
-powershell -File install_dotnet_sdk.ps1
-set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH%
-
-@rem Disable some unwanted dotnet options
-set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
-set DOTNET_CLI_TELEMETRY_OPTOUT=true
-
-@rem Work around https://github.com/dotnet/core/issues/5881
-dotnet nuget locals all --clear
-
-call buildall.bat
diff --git a/kokoro/windows/csharp/common.cfg b/kokoro/windows/csharp/common.cfg
deleted file mode 100644
index f586585..0000000
--- a/kokoro/windows/csharp/common.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-# Config file for running tests in Kokoro
-
-# Location of the build script in repository
-build_file: "protobuf/kokoro/windows/csharp/build.bat"
-timeout_mins: 1440
diff --git a/kokoro/windows/csharp/continuous.cfg b/kokoro/windows/csharp/continuous.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/csharp/continuous.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.
diff --git a/kokoro/windows/csharp/presubmit.cfg b/kokoro/windows/csharp/presubmit.cfg
deleted file mode 100644
index 8523c22..0000000
--- a/kokoro/windows/csharp/presubmit.cfg
+++ /dev/null
@@ -1 +0,0 @@
-# Keep this file empty! Use common.cfg instead.