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

gnosis / dex-services / 4108
31%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2020 11:13AM UTC
Jobs 1
Files 78
Run time 13s
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

13 Jul 2020 10:59AM UTC coverage: 27.949% (+0.05%) from 27.903%
4108

push

travis-pro

web-flow
Fix `panic` because of partially reduced orderbook graph when computing transitive orderbook (#1112)

This PR fixes a panic in the `pricegraph` when calculating the transitive orderbook for separate subgraphs, where the market's base token's subgraph contained negative cycles. This would happen because only one of the subgraphs (the quote token's subgraph) would end up completely reduced after computing the overlapping transitive orderbook, while the code assumed that both were completely reduced.

This issue was discovered by the pricegraph fuzzing.

This PR also moves the `orderbook!` macro to its own module so that it can be reused from the `pricegraph/lib.rs` module for unit tests.

### Test Plan

- `git checkout 2c0dad400` to checkout the commit with the failing test and no fix.
- `cargo test -p pricegraph` and see that it fails
- `git checkout fix-fuzz-crash && cargo test -p pricegraph` and see that it was fixed

### Commit History

* add failing unit test

* fix unit test

* fix use statements for new structure

* document pricegraph macro

10072 of 41169 branches covered (24.47%)

Branch coverage included in aggregate %.

2644 of 4328 relevant lines covered (61.09%)

14017.19 hits per line

Jobs
ID Job ID Ran Files Coverage
3 4108.3 (OPEN_SOLVER_VERSION=v0.0.10 PRIVATE_SOLVER_VERSION=v0.8.0) 13 Jul 2020 11:13AM UTC 0
27.95
Travis Job 4108.3
Source Files on build 4108
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4108
  • b3f1cb6f on github
  • Prev Build on master (#4098)
  • Next Build on master (#4110)
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