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

gnosis / dex-services / 4513
31%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2020 07:50AM UTC
Jobs 1
Files 88
Run time 1min
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%
4513

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

Jobs
ID Job ID Ran Files Coverage
3 4513.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2) 04 Aug 2020 07:50AM UTC 0
28.61
Travis Job 4513.3
Source Files on build 4513
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4513
  • cf5caad6 on github
  • Prev Build on master (#4511)
  • Next Build on master (#4519)
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