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

gnosis / dex-services / 4865 / 3
31%
master: 31%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2020 04:56PM UTC
Files 95
Run time 6s
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%
OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.3

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

Source Files on job 4865.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.3)
  • Tree
  • List 0
  • Changed 49
  • Source Changed 4
  • Coverage Changed 49
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1308
  • Travis Job 4865.3
  • 755963c2 on github
  • Prev Job for OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.3 on master (#4859.3)
  • Next Job for OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.3 on master (#4868.3)
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