Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Cache Coherence locally in ci-test. #418

Merged
merged 1 commit into from
Mar 16, 2016
Merged

Conversation

cesarblum
Copy link
Contributor

Part of #304.

Still needs a bit more testing.

cc @victorhurdugaci @pranavkm


if (!string.IsNullOrWhiteSpace(dropsShare))
{
var coherenceShare = Path.Combine(dropsShare, "Coherence", BUILD_BRANCH);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this can fail if you get a partially pushed coherence... Maybe coherence should drop a file as the final step and we should look only at the folders that have that file

@victorhurdugaci
Copy link
Contributor

I think it's okay. :shipit:

@cesarblum
Copy link
Contributor Author

Went with a slightly different approach: I'm keeping the Coherence build number in the cached directory. If I see there's already a cache for that build number, I don't try to copy it over again.

@cesarblum cesarblum changed the title Cache Coherence locally before ci-test. Cache Coherence locally in ci-test. Mar 16, 2016
@cesarblum cesarblum merged commit b269e3f into dev Mar 16, 2016
@cesarblum cesarblum deleted the cesarbs/cache-coherence branch March 16, 2016 01:35
Log.Info("Coherence build " + latestBuild + " already cached at " + targetDir + ".");
}

Environment.SetEnvironmentVariable("NUGET_VOLATILE_FEED_ASPNETVNEXT", Path.Combine(targetDir, "build"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caching the nupkgs as-is is not super nice for perf especially given the directory has close to 600 nupkgs. You should probably expand it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants