Commit Graph

21 Commits

Author SHA1 Message Date
Andrei Vagin 58e9ba2724 buildkite: don't run docker tests on COS
On COS, buildkite agents are running inside docker containers and so
we can't modify a docker config and restart a docker daemon.

PiperOrigin-RevId: 449063929
2022-05-16 15:11:16 -07:00
Etienne Perot 3c0fe6d08d BuildKite: Remove duplicate `jq` from list of packages to install.
It is already listed earlier in the command line.

Ordinarily I wouldn't make a change for something this small, but I'm
going to use this change as a means to dip my toes with the BuildKite
build pipeline.

PiperOrigin-RevId: 447618014
2022-05-09 19:12:44 -07:00
Lucas Manning bf86207401 Add systemd-cgroup support to runsc.
This change adds systemd-cgroup support to cgroupv2 and modifies existing
cgroup tests for systemd support.

Fixes #193

PiperOrigin-RevId: 435457762
2022-03-17 15:03:44 -07:00
Ayush Ranjan e3f424c5c5 Set DEBIAN_FRONTEND to be noninteractive for containerd installing.
This was causing annoying timeout issues on BuildKite where the cgroupsv2
agents that are on ubuntu-2110 image to get stuck indefinitely.

Also rollback the experimental changes in pre-command hook to simplify scripts
and make things consistent.

PiperOrigin-RevId: 432671125
2022-03-05 11:16:44 -08:00
Adin Scannell c8b0aadfa9 Force apt to not bring up an ncurses menu.
PiperOrigin-RevId: 432347975
2022-03-03 20:24:07 -08:00
Adin Scannell 5cfaa79a1a Fix gcloud secret access.
The secret access command apparently returns JSON (why!??) and the
payload is base64 encoded. Decode per the example provided in the
documentation [1].

[1] https://cloud.google.com/sdk/gcloud/reference/secrets/versions/access

PiperOrigin-RevId: 431862918
2022-03-01 23:34:58 -08:00
Adin Scannell d79504d272 Fix mirror typo in emoji and gcloud error.
PiperOrigin-RevId: 431566908
2022-02-28 17:45:46 -08:00
Adin Scannell 711770642a Add release commands to BuildKite.
PiperOrigin-RevId: 431532954
2022-02-28 14:58:51 -08:00
Andrei Vagin 70ae38ab76
buildkite: CgroupDriver has to be cgroupfs 2021-11-26 10:14:09 +00:00
Andrei Vagin 1f9d74e1bb
Set native.cgroupdriver=cgroupfs for docker 2021-11-26 10:14:09 +00:00
Andrei Vagin 11700f409f
buildkite: set DEBIAN_FRONTEND=noninteractive 2021-11-26 10:14:08 +00:00
Adin Scannell 889190828c Skip header install if not available.
PiperOrigin-RevId: 411164318
2021-11-19 16:04:23 -08:00
Kevin Krakauer 70626b3da2 buildkite: move golang installation to VM boot
Rather than re-downloading and installing Go for each pipeline run, we should
just do it at boot.

PiperOrigin-RevId: 386320005
2021-07-22 14:17:52 -07:00
Kevin Krakauer bc0ab8ea0f buildkite: update Go
#6322 tried to update Go to 1.16, but existing nodes fail to upgrade due to the
presence of old Go [1]. Specifically when trying to add Go to `/usr/bin`:

```
ln: failed to create symbolic link '/usr/bin/go': File exists
```

Also:
- Removing `golang-go` also removes apt installs of `gcc` and `pkg-config`, so
  those are installed explicitly.
- Add `-c` to wget, which will prevent re-downloading Go for each run.
- Disable GO111MODULE when building cri-tools and containerd, since we're using
  pre-module versions of each.

1 - https://buildkite.com/gvisor/pipeline/builds/7285#3593244c-e411-472d-804a-9c7fbbd24762

PiperOrigin-RevId: 386106881
2021-07-21 15:20:19 -07:00
Kevin Krakauer 5ad30cac2e Automated rollback of changelist 385029528
PiperOrigin-RevId: 385200993
2021-07-16 12:33:24 -07:00
Kevin Krakauer 6415efa514 buildkite: bump Go version to 1.16
We're currently on 1.13, which can cause build issues with code targeting later
versions.

PiperOrigin-RevId: 385029528
2021-07-15 16:09:04 -07:00
Adin Scannell aac477733f Add additional required packages.
PiperOrigin-RevId: 351263241
2021-01-11 16:46:38 -08:00
Adin Scannell b06e5bc5b0 Add benchmarks targets to BuildKite.
This includes minor fix-ups:

* Handle SIGTERM in runsc debug, to exit gracefully.
* Fix cmd.debug.go opening all profiles as RDONLY.
* Fix the test name in fio_test.go, and encode the block size in the test.

PiperOrigin-RevId: 350205718
2021-01-05 13:21:54 -08:00
Adin Scannell 899b9ba46a Add BuildKite annotations for failures and profiles.
This change cleans up some minor Makefile issues, and adds support for
BuildKite annotations on failure and on profiles being generated. These
annotations will make failures very clear and link to the artifacts.

This change is a stepping stone for aggregating coverage data from all
individual test jobs, as this will also happen in .buildkite/annotate.sh.

PiperOrigin-RevId: 349606598
2020-12-30 15:09:12 -08:00
Adin Scannell 5bdc167d17 Fix run and sudo targets.
These are not passing arguments properly. This breaks the current
pre-command for BuildKite.

PiperOrigin-RevId: 347062729
2020-12-11 13:25:44 -08:00
Adin Scannell 76c2f21cec Add local hooks for BuildKite.
PiperOrigin-RevId: 347044353
2020-12-11 11:52:43 -08:00