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

sds / overcommit
90%
master: 91%

Build:
Build:
LAST BUILD BRANCH: solargraph-change-output-format
DEFAULT BRANCH: master
Repo Added 01 Apr 2015 07:22AM UTC
Files 220
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

LAST BUILD ON BRANCH conservative-stash
branch: conservative-stash
CHANGE BRANCH
x
Reset
  • conservative-stash
  • 0.55.0
  • add-ruby-2.7
  • add_solargraph
  • better-instructions-on-commit-msg-fail
  • code-of-conduct
  • config-yml-gemfile-line-comment
  • debugging
  • demo
  • diff
  • disable-literal-pathspecs
  • drop-ruby-2.2
  • fix-jruby-build
  • fix-list_files-windows
  • gemfile-false
  • haml-lint-summary
  • main
  • master
  • parallel
  • pr/185
  • pr/649
  • protips
  • quiet-indextags
  • readme
  • remove-appveyor-crlf-warnings
  • sds/cut-version
  • setup-bundled-gems
  • solargraph-change-output-format
  • svg
  • svgxml
  • update_rubocop
  • v0.24.0
  • v0.25.0
  • v0.26.0
  • v0.27.0
  • v0.28.0
  • v0.29.0
  • v0.29.1
  • v0.30.0
  • v0.31.0
  • v0.32.0
  • v0.32.0.rc1
  • v0.33.0
  • v0.34.0
  • v0.34.1
  • v0.34.2
  • v0.35.0
  • v0.36.0
  • v0.37.0
  • v0.38.0
  • v0.39.0
  • v0.39.1
  • v0.40.0
  • v0.41.0
  • v0.42.0
  • v0.43.0
  • v0.44.0
  • v0.45.0
  • v0.46.0
  • v0.47.0
  • v0.48.0
  • v0.48.1
  • v0.49.0
  • v0.49.1
  • v0.50.0
  • v0.51.0
  • v0.52.0
  • v0.52.1
  • v0.53.0
  • v0.54.0
  • v0.54.1
  • v0.55.0
  • v0.56.0
  • v0.57.0
  • v0.58.0
  • windows
  • worktree
  • yarn-check

pending completion
1821

Pull #674

travis-ci

web-flow
Avoid stashing changes when all changes are staged

It was suggested in #135 that a potential way to avoid unnecessary file
change detection and general stashing woes would be to stash changes
only when there were unstaged changes that needed to be excluded from
the run.

This presents a nice optimization that I wish we had considered long
ago. We can simplify the logic now that we see the purpose of this
feature a little more clearly: stash only when you need to.

Issue #669 raised an interesting point about the difficulty to detect if
a stash entry was created, so we modified the tests to check if a method
call was made. This isn't great as it's peeking deep into the
implementation, so we added some additional tests that ensured the
methods in question actually existed. Not perfect, but gives us some
confidence in the implementation.

While here, we were able to:

* Extract the stashing logic into a separate `stash_changes` helper
  method.

* Simplify the `cleanup_environment` logic to just use whether changes
  were stashed in order to decide whether to restore.

Closes #669.
Pull Request #674: Avoid stashing changes when all changes are staged

15 of 15 new or added lines in 1 file covered. (100.0%)

5990 of 6622 relevant lines covered (90.46%)

375.21 hits per line

Relevant lines Covered
Build:
Build:
6622 RELEVANT LINES 5990 COVERED LINES
375.21 HITS PER LINE
Source Files on conservative-stash
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1821 conservative-stash Avoid stashing changes when all changes are staged It was suggested in #135 that a potential way to avoid unnecessary file change detection and general stashing woes would be to stash changes only when there were unstaged changes that needed to b... Pull #674 29 Sep 2019 05:05AM UTC web-flow travis-ci pending completion  
1820 conservative-stash Avoid stashing changes when all changes are staged It was suggested in #135 that a potential way to avoid unnecessary file change detection and general stashing woes would be to stash changes only when there were unstaged changes that needed to b... push 29 Sep 2019 05:05AM UTC sds travis-ci pending completion  
1819 conservative-stash Avoid stashing changes when all changes are staged It was suggested in #135 that a potential way to avoid unnecessary file change detection and general stashing woes would be to stash changes only when there were unstaged changes that needed to b... Pull #674 29 Sep 2019 04:49AM UTC web-flow travis-ci pending completion  
1818 conservative-stash Avoid stashing changes when all changes are staged It was suggested in #135 that a potential way to avoid unnecessary file change detection and general stashing woes would be to stash changes only when there were unstaged changes that needed to b... push 29 Sep 2019 04:48AM UTC sds travis-ci pending completion  
See All Builds (1397)
  • Repo on GitHub
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

© 2025 Coveralls, Inc