Commit Graph

75 Commits

Author SHA1 Message Date
Jan Tattermusch ed39634fe8
Move docker images from dockerhub to artifact registry. (#31591)
* push_testing_images.sh overhaul

* simplify dockerize scripts

* update run_in_docker.sh script

* add generated .current_version files for docker images

* improvements to push_testing_images.sh

* add local-only check for push_testing_images.sh to sanity tests

* fix sanity check

* add expiration for TRANSFER_FROM_DOCKERHUB

* add a readme file
2022-11-17 10:12:39 +01:00
Jan Tattermusch e26c812aeb
Cleanup & improve bazel-based test jobs running under docker. (#29402)
* use EXTRA_DOCKER_ARGS in grpc_bazel_privileged_docker.sh

* docker_propagate_env.list: propagate all variables needed by workspace_status_kokoro.sh

* simplify bazel invocations in docker

* use respawn script for grpc_bazel.sh

* cleanup grpc_flaky_network test

* cleanup grpc_binder_transport_apk job

* cleanup grpc_feature_example_tests

* additional cleanup & improvements
2022-04-22 19:02:58 +02:00
Jan Tattermusch 1bf8414630
build_and_run_docker.sh cleanup and simplification (#29468)
* unify DOCKER_TTY_ARGS in docker scripts

* improvements and cleanup in build_and_run_docker.sh

* fix shellcheck

* make sure python sdist artifact is readable
2022-04-22 06:02:18 +02:00
Jan Tattermusch f8a909e76f
Run bloat_diff.py in a separate kokoro job (#28892)
* move bloat_diff to a separate kokoro job

* add grpc_bloat_diff PR job
2022-03-06 19:33:17 +01:00
Jan Tattermusch dd84445074
More cleanup of docker run machinery. (#28734)
* update copyrights as per review comments

* docker run.sh cleanup: unnecessary to set CONFIG

Originally added in as
https://github.com/grpc/grpc/pull/2225/files#diff-156ef223959550cc6280d4747c600c187f275e5bb1a8f73c297e282898bf5a60R34
and no longer needed.

* XML_REPORT env variable is not used anywhere, run_tests_cmd carries the args

* remove unnecessary POST_GIT_STEP setting

It was originally added in gcc4.4 compatibility test and gcc4.4 is no
longer supported
https://github.com/grpc/grpc/pull/5384

* more docker_run.sh cleanup
2022-02-10 19:12:52 +01:00
Jan Tattermusch c8c1774ec4
Revert "Revert "Cleanup run docker machinery in run_tests.py, task_runner.py and elsewhere (#28704)" (#28741)" (#28748)
* Revert "Revert "Cleanup run docker machinery in run_tests.py, task_runner.py and elsewhere (#28704)" (#28741)"

This reverts commit 9a79d44e9b.

* fix python distribtest failure on fedora34
2022-02-01 11:33:56 +01:00
Yash Tibrewal 9a79d44e9b
Revert "Cleanup run docker machinery in run_tests.py, task_runner.py and elsewhere (#28704)" (#28741)
This reverts commit be723121fc.
2022-01-28 11:42:12 -08:00
Jan Tattermusch be723121fc
Cleanup run docker machinery in run_tests.py, task_runner.py and elsewhere (#28704)
* attempt

* slim down build_docker_and_run_tests.sh

* HOST_GIT_ROOT is unused

* config and arch variable no need to propagate to run_tests.py

* unify unused LOCAL_GIT_ROOT to EXTERNAL_GIT_ROOT

* mounting gcloud config seems useless

* reorder docker args

* cleanup

* allow passing args to build_docker_and_run_tests.sh

* converge build_docker_and_run_tests.sh and build_and_run_docker.sh

* more convergence

* convergence of docker runners

* finalize convergence of run_docker scripts

* GRPC_TEST_REPORT_BASE_DIR might not exist

* adjust report copying

* make report_dir and output_dir readable

* alpine linux does not support cp -t
2022-01-28 11:46:36 +01:00
Jan Tattermusch f23f1bb51f
Use ccache for selected C++ and python builds (with redis server as cache) (#28661)
* add cmake support for ccache

* cleanup: use --env-file for docker run invocations

* make python build compatible with using ccache

* enable building using ccache in selected kokoro jobs

* print ccache stats and the end of run_tests.py
2022-01-25 19:18:58 +01:00
Jan Tattermusch 240557a55c
run_tests family scripts: autodetect TTY when running docker (#28124)
* autodetect terminal when running docker, add helptext for --travis run_tests arg

* address a TODO

* remove --travis from task_runner.py
2021-12-10 06:52:50 +01:00
Jan Tattermusch 3a024ea40c
Avoid extremely slow kokoro job finalization by moving workspace to a non-synced directory on kokoro workers. (#28259)
* support "move and respawn" for kokoro jobs

* delete_nonartifacts.sh no longer needed

* bazel distribtest dont publish any artifacts

* try the altsrc respawn for selected jobs

* use altsrc for all windows CI jobs

* use altsrc for all macos CI jobs

* only move files under src/github

* fix uploading artifacts on windows
2021-12-03 19:41:14 +01:00
Lidi Zheng 6f23b3fb02
Revert "Provide custom sponge configs to exclude manual runs from testgrid (#26283)" (#26325)
This reverts commit 113cd9546d.
2021-05-20 15:28:22 -07:00
Lidi Zheng 113cd9546d
Provide custom sponge configs to exclude manual runs from testgrid (#26283)
* Provide custom sponge configs

* Correct the script

* Allow test scripts to produce artifacts through Docker

* Overcome the direcotry clone in our docker script

* Expose TESTGRID_EXCLUDE and GIT_ORIGIN_URL through docker run

* Make sanity tests happy
2021-05-19 12:23:52 -07:00
Jan Tattermusch 0088dae36a
Use crosscompilation to build python armv7 wheels (#25704)
* removed unused DOCKER_BASE_IMAGE functionality

* remove legacy docker images for arm build

* build python armv7 wheel via crosscompilation

* add pyconfig.h hack

* improve the dockerfile

* yapf format code
2021-03-17 18:49:32 +01:00
Eric Anderson 61f66e81b6 tools: Put sha1 in container tag instead of name
Ideally instead of having names like ruby_jessie_x64_ruby_2_5 and
ruby_jessie_x64_ruby_2_6 they would have the name "ruby" with tags
containing jessie_x64_ruby_2_5/6. But fixing that would be much more
invasive. The sha1 in the tag is producing the worst effects, so this is
a case of the perfect being the enemy of the good.

Fixes #20546
2020-04-23 12:53:46 -07:00
Esun Kim e019f18707 Fix C2196: egrep is non-standard and deprecated. 2020-03-03 10:46:55 -08:00
Jan Tattermusch cfc2156665 add AspNetCore interop server 2019-02-14 18:25:28 +01:00
Jan Tattermusch b4818682be fix #17625 2019-01-09 19:41:22 +01:00
Lidi Zheng dbbb382158 Set CONFIG default value 'opt' 2018-12-12 10:24:47 -08:00
Lidi Zheng ca728e2269 Revert "Strict check for $config && Enable SC2154"
This reverts commit bdfb5691ad.
2018-12-12 10:11:43 -08:00
Lidi Zheng bdfb5691ad Strict check for $config && Enable SC2154 2018-12-11 16:30:07 -08:00
Lidi Zheng 8cb2d0546d Upgrade sanity Docker image to debian:stretch
* Use latest pylint in Python 3.7 (they dropped support for PY2)
* Make latest pylint happy
* Forced to upgrade to shellcheck 0.4.4
* Make shellcheck 0.4.4 happy
* Adopt reviewers' advice to reduce global disabled rules
2018-12-10 16:21:49 -08:00
Jan Tattermusch edea79c014
Merge pull request #17245 from jtattermusch/coverage_split_up
Split up test coverage runs by language
2018-11-20 17:34:58 +01:00
Jan Tattermusch 3ce9b4fc43 remove remnants of ccache with --use_docker
using ccache when building under a docker image isn't useful when
building on kokoro as each build runs on a fresh VM.
Originally ccache builds were used to speed up jenkins builds,
now removing to guarantee build isolation and simplify stuff.
2018-11-20 13:41:39 +01:00
Jan Tattermusch 3543b1b151 remove broken toplevel index.html file 2018-11-20 09:49:41 +01:00
Jan Tattermusch c8c71657b0 fix mkdir race in build_packages task 2018-08-10 17:14:47 +02:00
Matt Kwong 67d7cdc45a Support building sanitizers with Clang5+ 2018-05-23 10:38:21 -07:00
Jan Tattermusch 5f3a452440 make package builds work on kokoro 2018-03-13 18:06:44 +01:00
Jakob Roland Andersen c7dd4b4309 WIP: Add Dart support in interop 2018-03-06 15:26:26 +01:00
Mehrdad Afshari 5b0685b6c2 Fix submodule handling in dockerized tests 2018-02-22 23:11:31 -08:00
Mehrdad Afshari 2fc4ad1ed9 Fix Linux artifact builds
Change `git submodule` copying mechanism from the host
to the docker container to use `git clone` instead of
`git submodule update --init --reference`, which reaches
out to the network and fails on older docker containers
with deprecated openssl versions that do not support
modern TLS versions required by GitHub, e.g. manylinux1.

This fixes artifact builds for protoc and Python on Linux.
2018-02-22 21:45:03 -08:00
Jan Tattermusch fb1ad35984 Using python's xdg-caching can cause flakes
Currently when running python test on linux, we are mounting
/tmp/xdg-cache-home to the docker container that runs the tests
in the attempt to prevent unnecessary downloads of pip packages
(with the theory that more downloads leads to increased flakiness)
- the idea is that while there is a new docker container for each
test suite, the xdg cache remains per-VM.

This approach no longer seems to be useful:
* It turns out that XDG cache doesn't work reliably when multiple
docker containers are using it concurrently (the concurrent run can
see corrupt files). We are using concurrent docker containers in our
multilang test suite to speed up the execution and we are currently
getting flakes seeing flakes caused by this.
* support for caching makes our docker_run scripts more complicated
and we really don't want that.
* since we migrated to kokoro, the caching is limited anyway -
as each run gets a fresh VM, we need to download packages anyway
for every build (and that actually seems to causing way less
flakiness the problem with concurrent XDG caching).
2018-02-05 17:44:15 +01:00
Mehrdad Afshari 8d2ee3849f Make docker_run_tests.sh pass shellcheck (with suppressions) 2018-01-25 09:08:37 -08:00
Mehrdad Afshari ce91d326a3 Make build_interop_image.sh pass shellcheck (with suppressions) 2018-01-25 09:08:37 -08:00
Mehrdad Afshari 827c799304 Make docker_run.sh pass shellcheck (with suppressions) 2018-01-25 09:08:37 -08:00
Mehrdad Afshari 448cf1e3bb Make build_docker_and_run_tests.sh pass shellcheck (with suppressions) 2018-01-25 09:08:37 -08:00
Mehrdad Afshari b7f88cfd7f Make build_and_run_docker.sh pass shellcheck (with suppressions) 2018-01-18 10:46:59 -08:00
Matt Kwong 827c6e90e2 Pass KOKORO_BUILD_ID to Docker 2017-12-20 16:05:35 -08:00
Jan Tattermusch 69bd8f2d5d print timing for docker pull 2017-10-26 16:48:09 +02:00
murgatroid99 fbc182e125 Switch Node interop tests to use grpc-node repo 2017-10-17 11:42:12 -07:00
Jan Tattermusch 824a2b3b9f remove unused stress test script 2017-08-01 13:02:36 +02:00
Adele Zhou 457b02e6b2 Fix image path when pulled from dockerhub. 2017-07-17 13:48:17 -07:00
Adele Zhou 44360ab64f Modify image names to match the one in dockerhub. 2017-07-13 11:40:57 -07:00
Adele Zhou e2810d2f53 Pull from dockerhub. 2017-07-12 22:32:47 -07:00
Matt Kwong ea1fa277f0 Add Kokoro metadata to BQ upload 2017-06-09 14:17:35 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Yong Ni b2e4bfa1ef Merge matrix feature branch into master.
Features included in this merge:
- Added script to build and upload docker image for matrix test.
- Added script to create test cases and created go__master testcases based on it.
- Created dictionary for runtimes and gRPC releases for supported languages.
- Added go 1.7 and 1.8 Dockerfile/templates.

See tools/interop_matrix/README.md for details.
2017-05-19 09:01:24 -07:00
Stanley Cheung ebeda85eb8 Upmerge from v1.3.x branch to master 2017-05-17 19:34:47 -07:00
Ken Payson 7ff21a6719 Add Raspberry Pi Python binaries 2017-05-15 20:11:21 -07:00
Matt Kwong 598fb57336 Enable IPv6 in Docker for internal CI 2017-05-11 14:43:01 +02:00