Commit Graph

4 Commits

Author SHA1 Message Date
Raúl Kripalani f631fb2ee4 skip tests that don't work in CircleCI due to unwritable cgroup. 2021-01-18 22:15:47 +00:00
Raúl Kripalani cf7bf56a2b adjust TestCgroupsDriven_Docker_Isolated. 2021-01-18 21:40:17 +00:00
Raúl Kripalani ac4c29506c tests: skip TestCgroupsDriven_Create_Isolated. 2021-01-18 21:36:54 +00:00
Raúl Kripalani 8676adea5c introduce cgroup-driven watchdog; refactor.
This commit introduces the cgroup-driven watchdog. It can be
initialized by calling watchdog.CgroupDriven().

This watchdog infers the limit from the process' cgroup, which
is either derived from /proc/self/cgroup, or from the root
cgroup if the PID == 1 (running in a container).

Tests have been added/refactored to accommodate running locally
and in a Docker container.

Certain test cases now must be isolated from one another, to
prevent side-effects from dirty go runtimes. A Makefile has been
introduced to run all tests.
2021-01-18 21:24:31 +00:00