11 Commits
Author SHA1 Message Date
Parth SarthiandgVisor bot d49715b660 DockerInGvisor: Try to deflake the docker test.
- `WaitExitStatus` - Return on error/timeout.

PiperOrigin-RevId: 961115658
2026-08-07 14:17:57 -07:00
Shailend ChandandgVisor bot b80feec111 Add more systemd integ tests
Add e2e tests for systemd's event-driven activation mechanisms and the
sd_notify watchdog protocol:

- TestSystemdTimer: transient timer units fire repeatedly on both the
  monotonic (OnActiveSec/OnUnitActiveSec) and the realtime (OnCalendar)
  clocks.
- TestSystemdDBusActivation: a bus call to org.freedesktop.hostname1
  starts systemd-hostnamed on demand.
- TestSystemdSocketActivation: with only ssh.socket started, the first
  connection starts ssh.service, which serves it on the inherited
  listening socket.
- TestSystemdWatchdog: a Type=notify service with WatchdogSec= stays up
  while it pings the watchdog, and is killed with Result=watchdog once
  the pings stop.

All TestSystemd* tests now run in parallel, each in its own container.

The systemd entry on the website's compatibility page is also updated.

PiperOrigin-RevId: 958778081
2026-08-03 22:07:45 -07:00
gVisor bot 5b8db7ad7d Internal change
PiperOrigin-RevId: 758837096
2025-05-14 14:39:07 -07:00
gVisor bot d3713e247b Internal change.
PiperOrigin-RevId: 739263572
2025-03-21 12:32:21 -07:00
Etienne PerotandgVisor bot c7d7532881 Docker GPU tests: Use the sniffer on exec'd commands too.
Without this, tests that `exec` commands into existing GPU containers (e.g.
the CUDA samples test) would not actually get ioctl compatibility
enforcement.

Updates issue #10885.

PiperOrigin-RevId: 686686310
2024-10-16 16:48:27 -07:00
Etienne PerotandgVisor bot f13fb88a17 dockerutil: Return exit code in Container.Exec.
This allows tests to consider the exit code of `exec`'d processes.

This is useful for CUDA tests because they exit with a specific error code
(`EXIT_WAIVED`) when they run on GPUs that don't support the features the
test needs.

PiperOrigin-RevId: 626478594
2024-04-19 15:04:08 -07:00
Zach KoopmansandgVisor bot bda81b139c Update docker packages to new moby repo.
PiperOrigin-RevId: 555358714
2023-08-09 20:48:47 -07:00
Andrei VaginandgVisor bot aaf2247a97 test/runtime: add the timeout option for proctor
proctor is running in a sandbox and it executes tests. If it is able to
handle timeouts, we will know that a test sandbox is alive and proctor
will send SIGTERM to test processes and collect all logs.

In addition, these changes contains a few things:
* upload runsc logs with other test artifacts.
* increase log level for java tests.
* call Fatalf instead of Errorf when we want to terminate a test.

PiperOrigin-RevId: 437385756
2022-03-25 19:38:39 -07:00
Zeling FengandgVisor bot c0897a4b49 Do not start a ContainerExec twice
ContainerExecStart and ContainerExecAttach both call the /exec/id/start API
endpoint.

PiperOrigin-RevId: 344946627
2020-11-30 21:22:55 -08:00
Kevin Krakauer 3279ae429e make connect(2) fail when dest is unreachable
Previously, ICMP destination unreachable datagrams were ignored by TCP
endpoints. This caused connect to hang when an intermediate router
couldn't find a route to the host.

This manifested as a Kokoro error when Docker IPv6 was enabled. The Ruby
image test would try to install the sinatra gem and hang indefinitely
attempting to use an IPv6 address.

Fixes #3079.
2020-07-22 16:51:42 -07:00
Zach KoopmansandgVisor bot c5a0007cec Move all tests to new docker API.
Moves following to new dockerutil API:
- //test/e2e:integration_test
- //test/image:image_test
- //test/iptables:iptables_test
- //test/root:root_test
- //test/packetimpact:packetimpact_test

PiperOrigin-RevId: 320253118
2020-07-08 13:26:23 -07:00