• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gnosis / dex-services / 4865
31%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2020 04:56PM UTC
Jobs 1
Files 95
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Aug 2020 04:43PM UTC coverage: 27.84% (-0.1%) from 27.986%
4865

push

travis-pro

web-flow
introduce HTTP health reporting endpoint that runs in a backgroun thread (#1305)

This PR adds a new `HttpHealthEndpoint` component for that handles `/health/readiness` requests in the bacground HTTP server. It is currently only used in the price estimator (the driver always responds with "service unavailable").

This is in the spirit of providing a simple readiness endpoint so that we can do rolling updates in order to stay with 100% uptime even across restarts because of new deployments.

### Test Plan

Added unit tests. Start the price estimator:
```
$ cargo run -p price-estimator
```

While it is starting up, check that the `health` responds with a `503: Service Unavailable`:
```
$ curl -i http://localhost:9586/health/readiness
HTTP/1.1 503 Service Unavailable
Server: tiny-http (Rust)
Date: Tue, 18 Aug 2020 08:45:41 GMT
Content-Type: text/plain; charset=utf8
Content-Length: 19

service unavailable
```

Wait for the `price-estimator` to be ready:
```
2020-08-18T08:45:42.414Z INFO [price_estimator] Server ready.
```

Then check that the `health` endpoint responds correctly:
```
$ curl -i http://localhost:9586/health/readiness
HTTP/1.1 204 No Content
Server: tiny-http (Rust)
Date: Tue, 18 Aug 2020 08:45:43 GMT
Content-Length: 0
```

11854 of 49034 branches covered (24.18%)

Branch coverage included in aggregate %.

3199 of 5035 relevant lines covered (63.54%)

29077.45 hits per line

Jobs
ID Job ID Ran Files Coverage
3 4865.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.3) 18 Aug 2020 04:56PM UTC 0
27.84
Travis Job 4865.3
Source Files on build 4865
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4865
  • 755963c2 on github
  • Prev Build on master (#4859)
  • Next Build on master (#4868)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc