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

buildinspace / peru / 428
93%
master: 88%

Build:
Build:
LAST BUILD BRANCH: github_ci
DEFAULT BRANCH: master
Ran 27 Nov 2015 04:06PM UTC
Jobs 3
Files 19
Run time 15s
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

pending completion
428

push

travis-ci

oconnor663
rewrite the cache to be asynchronous

We've been seeing "Task X took Y seconds" warnings in our tests for a
long time, especially on Windows. Running git commands synchronously
blocks other tasks from running, like display redrawing. It's bad
practice in an async program.

One of the barriers to async-ifying the cache code earlier was that many
commands relied on having exclusive ownership of the index file while
they were running. For example, 1) read a tree into the index, 2) merge
another tree into some subdirectory, 3) write out the result. If any
other git commands ran in the middle of that, it would screw up the
result. So we needed to rewrite every cache function to use its own
temporary index file, if we want them to run in parallel.

The reason I'm finally getting around to this now, is that I'm trying to
reduce the number of git commands that run in a no-op sync. One of the
optimizations I'm going to want to do, is to reuse the index file from
the last sync, so that we don't need a `read-tree` and an `update-index`
just to set us up for `diff-files`. But the plumbing to do that right is
pretty much the same as what we should be doing to run every git command
with its own index anyway. So let's just bite the bullet and do that
now, and then reusing index files will be easy after that.

1553 of 1663 relevant lines covered (93.39%)

2.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 428.1 27 Nov 2015 04:06PM UTC 0
93.33
Travis Job 428.1
2 428.2 27 Nov 2015 04:06PM UTC 0
93.33
Travis Job 428.2
3 428.3 27 Nov 2015 04:06PM UTC 0
93.33
Travis Job 428.3
Source Files on build 428
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #428
  • e18aa33d on github
  • Prev Build on cacherewrite (#427)
  • Next Build on cacherewrite (#430)
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