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

buildinspace / peru / 430
93%
master: 88%

Build:
Build:
LAST BUILD BRANCH: github_ci
DEFAULT BRANCH: master
Ran 28 Nov 2015 01:14AM UTC
Jobs 3
Files 19
Run time 26s
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
430

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 need 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.

1554 of 1665 relevant lines covered (93.33%)

2.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 430.1 28 Nov 2015 01:14AM UTC 0
93.27
Travis Job 430.1
2 430.2 28 Nov 2015 01:14AM UTC 0
93.27
Travis Job 430.2
3 430.3 28 Nov 2015 01:14AM UTC 0
93.27
Travis Job 430.3
Source Files on build 430
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #430
  • 25c02252 on github
  • Prev Build on cacherewrite (#428)
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