Delete more Kokoro tests in favor of GHA.

These have already been migrated, this just deleted dead code

PiperOrigin-RevId: 506798657
pull/11777/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 27f4ecd9e5
commit bb76301d1f
  1. 27
      kokoro/linux/csharp/common.cfg
  2. 1
      kokoro/linux/csharp/continuous.cfg
  3. 1
      kokoro/linux/csharp/presubmit.cfg
  4. 21
      kokoro/linux/java_aarch64/common.cfg
  5. 1
      kokoro/linux/java_aarch64/continuous.cfg
  6. 1
      kokoro/linux/java_aarch64/presubmit.cfg
  7. 16
      kokoro/linux/java_jdk11/common.cfg
  8. 1
      kokoro/linux/java_jdk11/continuous.cfg
  9. 1
      kokoro/linux/java_jdk11/presubmit.cfg
  10. 21
      kokoro/linux/java_jdk17/common.cfg
  11. 1
      kokoro/linux/java_jdk17/continuous.cfg
  12. 1
      kokoro/linux/java_jdk17/presubmit.cfg
  13. 30
      kokoro/linux/java_linkage_monitor/build.sh
  14. 12
      kokoro/linux/java_linkage_monitor/common.cfg
  15. 1
      kokoro/linux/java_linkage_monitor/continuous.cfg
  16. 1
      kokoro/linux/java_linkage_monitor/presubmit.cfg
  17. 4
      kokoro/macos-next/README.md
  18. 30
      kokoro/macos-next/cpp/build.sh
  19. 13
      kokoro/macos-next/cpp/common.cfg
  20. 1
      kokoro/macos-next/cpp/continuous.cfg
  21. 1
      kokoro/macos-next/cpp/presubmit.cfg
  22. 33
      kokoro/windows/cmake/build.bat
  23. 5
      kokoro/windows/cmake/common.cfg
  24. 1
      kokoro/windows/cmake/continuous.cfg
  25. 1
      kokoro/windows/cmake/presubmit.cfg
  26. 45
      kokoro/windows/cmake_install/build.bat
  27. 5
      kokoro/windows/cmake_install/common.cfg
  28. 1
      kokoro/windows/cmake_install/continuous.cfg
  29. 1
      kokoro/windows/cmake_install/presubmit.cfg
  30. 33
      kokoro/windows/cmake_shared/build.bat
  31. 5
      kokoro/windows/cmake_shared/common.cfg
  32. 1
      kokoro/windows/cmake_shared/continuous.cfg
  33. 1
      kokoro/windows/cmake_shared/presubmit.cfg
  34. 17
      kokoro/windows/csharp/build.bat
  35. 5
      kokoro/windows/csharp/common.cfg
  36. 1
      kokoro/windows/csharp/continuous.cfg
  37. 1
      kokoro/windows/csharp/presubmit.cfg

@ -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.*"
}
}

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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.*"
}
}

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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.*"
}
}

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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.*"
}
}

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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

@ -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"
}
}

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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.

@ -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

@ -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"
}
}

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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 ..

@ -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

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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 ..

@ -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

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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 ..

@ -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

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -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

@ -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

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.

@ -1 +0,0 @@
# Keep this file empty! Use common.cfg instead.
Loading…
Cancel
Save