Skip to content

Feature/task disk cache - #737

Merged
JakeGinnivan merged 37 commits into
GitTools:masterfrom
JakeGinnivan:feature/task-disk-cache
Jan 17, 2016
Merged

JakeGinnivan merged 37 commits into
GitTools:masterfrom
JakeGinnivan:feature/task-disk-cache

Conversation

@JakeGinnivan

Copy link
Copy Markdown
Contributor

No description provided.

Cache entries are placed in .git\gitversion_cache\ directory.
… it's easier and more consistent to exclude properties that aren't version variables.
…e` property and make use of it in `VersionAndBranchFinderLoadVersionVariablesFromDiskCache()`.
…ernal and internals visible to GitVersionTask.Tests so we can reset the in-memory cache for testing. Not very elegant, but that's `static` for you. :-/
…m work, since AppVeyor don't seem to agree with local test running in that everything is green. Not trying to fake it may be a better solution anyhow.

Ref https://ci.appveyor.com/project/GitTools/gitversion/build/3.3.1-PullRequest.711+28%20(Build%20458)
asbjornu and others added 3 commits January 17, 2016 09:02
…teCore` and replaced all usage of the former with the latter. Also made `ExecuteCore` non-static.
@JakeGinnivan
JakeGinnivan force-pushed the feature/task-disk-cache branch from a2e3ddf to d7a6402 Compare January 17, 2016 01:21
 - No more in memory cache
 - Pulled all caching code out to it's own class
 - Only open repo once
 - Moved open repo into execute core
@JakeGinnivan

Copy link
Copy Markdown
Contributor Author

@asbjornu I have rebased, made some further refactorings/cleanups and got the build green :)

Nice change, I ended up removing the in memory cache. Would love a follow up review just to make sure I have not messed something up.

@JakeGinnivan

Copy link
Copy Markdown
Contributor Author

Superseeds #711

@JakeGinnivan

Copy link
Copy Markdown
Contributor Author

Gonna merge this now @asbjornu, if you see issues, lets fix them in another PR

JakeGinnivan added a commit that referenced this pull request Jan 17, 2016
@JakeGinnivan
JakeGinnivan merged commit 5d1c303 into GitTools:master Jan 17, 2016
@JakeGinnivan
JakeGinnivan deleted the feature/task-disk-cache branch January 17, 2016 02:32
@asbjornu

Copy link
Copy Markdown
Member

@JakeGinnivan Thanks! I don't notice anything, but if I do, I'll make another PR. Glad to finally see this merged. It will speed up our builds considerably. :)

@JakeGinnivan

Copy link
Copy Markdown
Contributor Author

I haven't got the release together yet, will do soon

@asbjornu

Copy link
Copy Markdown
Member

@JakeGinnivan No rush. Looking forward to trying it out. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants