1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Daniel Sweet 7546322e99 Ensure all integration daemon logging happens before test exit
As of Go 1.12, the `testing` package panics if a goroutine logs to a
`testing.T` after the relevant test has completed. This was not
documented as a change at all; see the commit
95d06ab6c982f58b127b14a52c3325acf0bd3926 in the Go repository for the
relevant change.

At any point in the integration tests, tests could panic with the
message "Log in goroutine after TEST_FUNCTION has completed". This was
exacerbated by less direct logging I/O, e.g. running `make test` with
its output piped instead of attached to a TTY.

The most common cause of panics was that there was a race condition
between an exit logging goroutine and the `StopWithError` method:
`StopWithError` could return, causing the calling test method to return,
causing the `testing.T` to be marked as finished, before the goroutine
could log that the test daemon had exited. The fix is simple: capture
the result of `cmd.Wait()`, _then_ log, _then_ send the captured
result over the `Wait` channel. This ensures that the message is
logged before `StopWithError` can return, blocking the test method
so that the target `testing.T` is not marked as finished.

Signed-off-by: Daniel Sweet <danieljsweet@icloud.com>
2019-05-09 13:23:43 -04:00
.github
api Remove DiskQouta field. 2019-04-30 15:13:08 +07:00
builder builder-next: fix gcr workaround token cache 2019-05-07 10:33:04 -07:00
cli
client Merge pull request #39032 from thaJeztah/improve_version_negotiation 2019-04-20 13:34:22 +02:00
cmd/dockerd dockerd: fix rootless detection (alternative to #39024) 2019-04-25 16:47:01 +09:00
container Remove DiskQouta field. 2019-04-30 15:13:08 +07:00
contrib rootless: optional support for lxc-user-nic SUID binary 2019-04-25 23:54:30 +09:00
daemon Remove a network during task SHUTDOWN instead of REMOVE to 2019-05-06 20:26:59 -07:00
distribution *: remove interfacer linter from CI 2019-03-13 11:48:39 +11:00
dockerversion
docs Merge pull request #39138 from AkihiroSuda/fix-rootless-issues-alternative-to-39024 2019-04-26 09:15:30 -07:00
errdefs errdefs: remove "ErrAlreadyExists" because it's not an error 2019-03-21 21:25:15 +00:00
hack rootless: optional support for lxc-user-nic SUID binary 2019-04-25 23:54:30 +09:00
image Merge pull request #38888 from quasilyte/fix_copying 2019-03-21 01:48:27 +01:00
integration Remove a network during task SHUTDOWN instead of REMOVE to 2019-05-06 20:26:59 -07:00
integration-cli Remove TestContainerAPICreateWithHostName 2019-04-24 17:52:00 -07:00
internal Ensure all integration daemon logging happens before test exit 2019-05-09 13:23:43 -04:00
layer add ApplyDiff to RWLayer 2019-04-25 11:25:22 -04:00
libcontainerd Remove inmemory container map 2019-04-05 15:48:07 -04:00
oci
opts dockerd: fix rootless detection (alternative to #39024) 2019-04-25 16:47:01 +09:00
pkg Merge pull request #39103 from lsilvs/master 2019-04-24 08:29:39 +02:00
plugin Remove inmemory container map 2019-04-05 15:48:07 -04:00
profiles seccomp: whitelist io_pgetevents() 2019-03-18 20:46:16 +02:00
project Add support for setting GOARM in cross target. 2019-04-17 13:19:14 -07:00
reference
registry *: remove interfacer linter from CI 2019-03-13 11:48:39 +11:00
reports
restartmanager
rootless dockerd: fix rootless detection (alternative to #39024) 2019-04-25 16:47:01 +09:00
runconfig
vendor Merge pull request #39124 from kevpar/etw-arm-fix 2019-04-28 10:43:53 -07:00
volume
.DEREK.yml Update .DEREK.yml 2019-05-06 13:27:04 -07:00
.dockerignore
.gitignore
.mailmap Update AUTHORS and mailmap 2019-04-27 16:50:47 -07:00
AUTHORS Update AUTHORS and mailmap 2019-04-27 16:50:47 -07:00
CHANGELOG.md
codecov.yml
CONTRIBUTING.md
Dockerfile Bump Golang 1.12.5 2019-05-07 11:19:39 +08:00
Dockerfile.e2e Bump Golang 1.12.5 2019-05-07 11:19:39 +08:00
Dockerfile.simple Bump Golang 1.12.5 2019-05-07 11:19:39 +08:00
Dockerfile.windows Bump Golang 1.12.5 2019-05-07 11:19:39 +08:00
Jenkinsfile
LICENSE
MAINTAINERS MAINTAINERS: update Akihiro Suda's email address 2019-04-17 18:26:21 +09:00
Makefile Fix DOCKER_CROSS being overwritten 2019-04-15 18:37:56 +02:00
NOTICE
poule.yml
README.md
ROADMAP.md
TESTING.md
vendor.conf Merge pull request #39124 from kevpar/etw-arm-fix 2019-04-28 10:43:53 -07:00
VENDORING.md

The Moby Project

Moby Project logo

Moby is an open-source project created by Docker to enable and accelerate software containerization.

It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.

Principles

Moby is an open project guided by strong principles, aiming to be modular, flexible and without too strong an opinion on user experience. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Batteries included but swappable: Moby includes enough components to build fully featured container system, but its modular architecture ensures that most of the components can be swapped by different implementations.
  • Usable security: Moby provides secure defaults without compromising usability.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools. They are not necessarily intended as end user tools but as components aimed at developers. Documentation and UX is aimed at developers not end users.

Audience

The Moby Project is intended for engineers, integrators and enthusiasts looking to modify, hack, fix, experiment, invent and build systems based on containers. It is not for people looking for a commercially supported system, but for people who want to work and learn with open source code.

Relationship with Docker

The components and tools in the Moby Project are initially the open source components that Docker and the community have built for the Docker Project. New projects can be added if they fit with the community goals. Docker is committed to using Moby as the upstream for the Docker Product. However, other projects are also encouraged to use Moby as an upstream, and to reuse the components in diverse ways, and all these uses will be treated in the same way. External maintainers and contributors are welcomed.

The Moby project is not intended as a location for support or feature requests for Docker products, but as a place for contributors to work on open source code, fix bugs, and make the code more useful. The releases are supported by the maintainers, community and users, on a best efforts basis only, and are not intended for customers who want enterprise or commercial support; Docker EE is the appropriate product for these use cases.


Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Moby may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

Moby is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.