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

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

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2020 04:11PM UTC
Files 89
Run time 39s
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

06 Aug 2020 03:55PM UTC coverage: 28.573% (-0.02%) from 28.589%
OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2

push

travis-pro

web-flow
Fix unnecessary rebuilds (#1258)

This PR addresses an issue in the new `contracts` crate when it was being rebuilt when it wasn't necessary. Since this is use by almost all other crates in this project, it would lead to unnecessarily long build times.

### Test Plan

Observe it would rebuild `contracts` and dependent crates unnecessarily on the base branch:
```
$ git checkout npm-contracts
$ cargo build --workspace --all-features
...
$ touch e2e/src/lib.rs && cargo build --workspace --all-features # BOO!
   Compiling contracts v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/contracts)
   Compiling core v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/core)
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/gnosis/dex-services/e2e)
   Compiling driver v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/driver)
   Compiling price-estimator v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/price-estimator)
    Finished dev [unoptimized + debuginfo] target(s) in 42.31s
```

Now check the fix:
```
$ git checkout fix-cargo-rebuild-contracts
$ cargo build --workspace --all-features
...
$ touch e2e/src/lib.rs && cargo build --workspace --all-features # YAY!
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/gnosis/dex-services/e2e)
    Finished dev [unoptimized + debuginfo] target(s) in 8.67s
```

And verify that deployments and modifying the `target/deploy/*.addr` files still correctly trigger rebuilds:
```
$ (cd contracts; cargo run --bin deploy --all-features) && cargo build --workspace --all-features
   Compiling contracts v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/contracts)
   Compiling core v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/core)
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/gnosis/dex-services/e2e)
   Compiling driver v0.1.0 (/var/home/nlordell/Developer/gnosis/dex-services/driver)
   Compiling price-estimator v0.1.0 (/var/home/nlordell/... (continued)

11754 of 47087 branches covered (24.96%)

Branch coverage included in aggregate %.

3130 of 5004 relevant lines covered (62.55%)

11997.19 hits per line

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