Commit Graph
16 Commits
Author SHA1 Message Date
Eugen a8a18ba222 add 'tty: true' to the docker-compose file (#490) (#491)
Motivation:

swift-nio example projects (http, echo) don't print anything to the console when running inside docker container because of buffering issue.

Modifications:

Added tty: true to the docker-compose.yaml for http & echo.

Result:

Buffering issue is resolved. http & echo prints logs to the console.
2018-06-25 21:11:58 +01:00
Johannes Weiss 5b8b28a986 raise Ubuntu 16.04 allocation limit by 1 allocation (#441)
Motivation:

We knew since before that on Ubuntu 16.04 we have one more allocation
per connection that on 14.04 (presumably due to resolver differences or
something in the system). When I last updated the allocation limits
however I forgot that...

Modifications:

- raise 16.04 allocation limit by 1 allocation

Result:

- integration tests should pass on 16.04
2018-05-24 21:03:13 +02:00
Johannes Weiß 80363d9d8c fix EventLoops that Bootstrap channel initialiser's call out on (#424)
Motivation:

Previously we were not running the (child/server)channelInitializers on the
event loop associated to the `Channel` we're initialising. Almost all
operations in there are pipeline modifications which are thread safe so
it presumably wasn't a massive correctness issue. However it's very
expensive to hop threads that often and it is also very unexpected. This
addresses this issue.

Modifications:

made all (child/server)channelInitializers run on the event loop that is
associated to their `Channel`

Result:

- more correctness
- less unexpected behaviour
2018-05-22 15:58:43 +01:00
Johannes Weiss ec880b0853 don't just drop Channels on the floor if registration fails
Motivation:

If registration of a Channel fails we need to close that Channel.
Previously we'd just drop it on the floor which triggers an assertion
that an open channel got leaked.

Modifications:

In cases where the Channel registration fails, we need to close that
channel.

Result:

- No crashes if registration fails.
- fixes #417
2018-05-22 11:29:20 +01:00
Johannes Weiß 325bbdd242 lower allocation limits (#390)
Motivation:

We reduced allocations again, let's reset the limits.

Modifications:

lowed a bunch of limits to

      - MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=47000
      - MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=776100
      - MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4600
      - MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=3100
      - MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=99100

Result:

tighter limits should find regressions more easily
2018-05-04 18:45:11 +01:00
Cory Benfield 1013cddd8f Track Future allocations in CI. (#376)
Motivation:

We don't want to regress the number of heap allocations we perform.

Modifications:

Added appropriate environment variables to Docker files.

Result:

Things go bang if we regress Future allocation counts.
2018-05-01 15:10:36 +01:00
tomer doron 093328e1b3 expose sanity script through docker compose (#375)
Motivation:

be able to run the sanity check via docker compose

Modifications:

add sanity task to docker compose file

Result:

you can now run sanity check via docker
2018-05-01 03:12:05 -07:00
tomer doron 8914a5536e extend docker setup to multiple version of ubuntu and swift (#357)
Motivation: easier testing across different permutations of os and language versions

Modifications:

* update dockerfile to take both swift_version adn ubuntu_version
* update default linux version to 16.04
* create multiple docker-compose files that use arguments to define os and swift versions
* make docker-compose file DRYer with yaml anchors

Result: users/ci can easily run tests across various versions of ubuntu and swift
2018-05-01 08:56:39 +01:00
Tiago Martinho 8e98d84076 Set Swift version to 4.0.3 in Docker configuration (#89)
Motivation:
In order to target the latest version of Swift and address this issue https://github.com/apple/swift-nio/issues/83

Modifications:
Set the Swift version to the latest (4.0.3)

Result:
Uniform version of Swift across the Ubuntu Docker image and a passing
test suite on all target platforms
2018-03-12 18:47:46 +09:00
Norman Maurer c8d1980207 Cleanup DockerFile to eliminate warnings (#121)
Motivation:

When building our docker image a lot of warnings showed up.

Modification:

- Ensure we not try to start services on installation
- Redirect STDERR
- Remove some commented lines

Result:

Less warnings during building the docker image.
2018-03-11 22:53:08 +09:00
Stuart Hinson c583298096 Download curl from https endpoint (#116) 2018-03-09 02:03:00 +09:00
tomer doron 142ee43906 docker cleanup (#90)
Motivation:

repository currently contains two seperate docker definitions that are confusing to users

Modifications:

* remove Dockerfile.xenial so we have a canonical docker file for CI and developer testing
* point docker compose to canonical docker file
* define docker compose services for unit and integration tests. and make "test" service run both
* update readme

Result:

users are less confused about docker setup
2018-03-05 19:37:29 +09:00
tomer doron 9652984b60 prepare ci scripts (#32)
Motivation:

set up continuous integration

Modifications:

* update docker file to include all dependencies required for build, unit tests, integration tests and doc generation
* remove dependency steps from doc generation script
* add integration tests driver script

Result:

able to set up docker based continuous integration
2018-02-26 11:27:53 +00:00
Norman Maurer 776a0698ba Mount ~/.ssh into docker image (#23)
Motivation:

We need to mount the ~/.ssh directory into the docker image as we use git@ to checkout our dependencies.

Modifications:

Use ~/.ssh as volume as well.

Result:

Be able to use docker images again.
2018-02-23 09:34:22 +00:00
Cory Benfield dfe3fe212a Better readme for release 2018-02-09 12:25:50 +00:00
Max (Swift) Moiseev 8d4eb477ed Xenial and compose
* Docker work

- New image based on xenial.
- Simplified workflow with docker-compose
- Update the readme with docker-compose section
- Move docker related stuff to a dedicated folder

* Add a gen-cert.sh to the container image

* Document certificate generation and how to test all sample servers
2017-11-09 21:34:51 -08:00