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

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

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2020 07:50AM UTC
Files 88
Run time 55s
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

04 Aug 2020 07:35AM UTC coverage: 28.614% (-0.02%) from 28.629%
OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2

push

travis-pro

web-flow
Handle internal server errors (#1240)

Fixes #1141

This PR implements explicit handling of the `InternalError` warp rejection.

### Test Plan

Unfortunately this error is not so easy to trigger, so apply the following patch:
```diff
diff --git a/price-estimator/src/filter.rs b/price-estimator/src/filter.rs
index 1a2f551..3a1445a 100644
--- a/price-estimator/src/filter.rs
+++ b/price-estimator/src/filter.rs
@@ -174,7 +174,8 @@ async fn get_markets(
     orderbook: Arc<Orderbook>,
 ) -> Result<impl Reply, Rejection> {
     if !query.atoms {
-        return Err(warp::reject());
+        //return Err(warp::reject());
+        return Err(error::internal_server_rejection(anyhow::anyhow!("test")));
     }
     let transitive_orderbook = orderbook
         .pricegraph(query.batch_id, PricegraphKind::Raw)
```

Run the price estimator, and trigger the error:
```
$ curl -s 'http://localhost:8080/api/v1/markets/1-7?atoms=false' | jq
{
  "message": "internal server error"
}
```

Also, notice how the error information appears in the logs:
```
$ cargo run -p price-estimator
...
[2020-08-03T13:47:11Z WARN  price_estimator::filter] internal server error: test
...
```

11572 of 46255 branches covered (25.02%)

Branch coverage included in aggregate %.

3072 of 4922 relevant lines covered (62.41%)

12307.99 hits per line

Source Files on job 4513.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2)
  • Tree
  • List 0
  • Changed 31
  • Source Changed 1
  • Coverage Changed 31
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 988
  • Travis Job 4513.3
  • cf5caad6 on github
  • Prev Job for OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2 on master (#4511.3)
  • Next Job for OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2 on master (#4519.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