Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update cache key to trigger clearing it #2947

Merged

Conversation

mloskot
Copy link
Collaborator

@mloskot mloskot commented Mar 17, 2021

Issue

Visual Studio 2019 has been updated from v16.8.5 to v16.9.0
and MSVC 14.28.29333 cached in CMake configuration is
no longer accessible

There is no way invalidate cache other than updating its cache:
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching#can-i-clear-a-cache

Requirements / Relations

Fixes #2945

@mloskot mloskot force-pushed the ml/azp-invalidate-cache-after-vs-update branch from 17ca106 to 4510fe3 Compare March 17, 2021 18:35
@mloskot mloskot changed the title ci: Update cache key to trigger clearin git ci: Update cache key to trigger clearing it Mar 17, 2021
@mloskot mloskot mentioned this pull request Mar 17, 2021
Visual Studio 2019 has been updated from v16.8.5 to v16.9.0
and MSVC 14.28.29333 cached in CMake configuration is
no longer accessible

There is no way invalidate cache other than updating its cache:
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching#can-i-clear-a-cache

Fixes valhalla#2945
@mloskot mloskot force-pushed the ml/azp-invalidate-cache-after-vs-update branch from 4510fe3 to 3cde169 Compare March 17, 2021 18:41
@mloskot
Copy link
Collaborator Author

mloskot commented Mar 17, 2021

It seems the key: 'build | "$(Build.SourceBranch)" | "msvc-v16.9.0"' is unfortunate as it correlates with existing cache for some reason:

https://dev.azure.com/valhalla1/valhalla/_build/results?buildId=8341&view=logs&j=8c5a3053-cc94-5e24-da52-c43aabf65e0e&t=a1bc7e75-1dfc-5d62-965d-76d879c54f66

Resolving key:
 - build                  [string]
 - "refs/pull/2947/merge" [string]
 - "msvc-v16.9.0"         [string]
Resolved to: build|"refs/pull/2947/merge"|"msvc-v16.9.0"
Resolving restore key:
 - build                  [string]
 - "refs/pull/2947/merge" [string]
Resolved to: build|"refs/pull/2947/merge"|**
Resolving restore key:
 - build [string]
Resolved to: build|**
ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session c0e3c081-b6b6-4ee0-a878-0ecfbefb2767
Getting a pipeline cache artifact with one of the following fingerprints:
Fingerprint: `build|"refs/pull/2947/merge"|"msvc-v16.9.0"`
Fingerprint: `build|"refs/pull/2947/merge"|**`
Fingerprint: `build|**`
There is a cache hit: `build|"refs/heads/master"`
Used scope: 1;fe02f257-eab6-47d1-a6e7-6ddabf0b7678;refs/heads/master;valhalla/valhalla
Entry found at fingerprint: `build|"refs/heads/master"`

@kevinkreiser
Copy link
Member

@mloskot thank you for looking at this! let me know when you are ready for review

@mloskot
Copy link
Collaborator Author

mloskot commented Mar 17, 2021

@kevinkreiser I think it is ready to review.

I introduced little convention to prefix the key with "msvc-vX.Y.Z", so the version can be bumped after next VS update to trigger the cache invalidation.

@kevinkreiser
Copy link
Member

sweet, yep i see it built properly! ship it when ready!

@mloskot
Copy link
Collaborator Author

mloskot commented Mar 17, 2021

How do we handle the failing "Valhalla Changelog Validation / Changelog Validation" job? Ignore?

@kevinkreiser
Copy link
Member

@mloskot yep thats right, that check is just there to remind you to add it if the change is something you think needs a changelog entry. feel free to ignore it for this

@mloskot mloskot merged commit f8f9e8b into valhalla:master Mar 17, 2021
@mloskot mloskot deleted the ml/azp-invalidate-cache-after-vs-update branch March 17, 2021 21:08
abhi2039 pushed a commit to abhi2039/valhalla that referenced this pull request Mar 30, 2021
…halla into pedestrian_crossing

* 'pedestrian_crossing' of https://github.com/abhi2039/valhalla:
  build: Bail with error if non-existant build-type specified (valhalla#2965)
  nit: Enables compiler warnings in part of mjolnir module (valhalla#2922)
  fix missing comma scripts/valhalla_build_config (valhalla#2963)
  Remove duplicate names being used across different gurka tests (valhalla#2962)
  Dont abort bidirectional a* search if only one direction is exhausted (valhalla#2936)
  penalize uturns at pencil points and short internal edges (valhalla#2944)
  Remove unused IsNextEdgeInternal function (valhalla#2958)
  restore compatibility with gcc 6.3.0, libprotobuf 3.0.0, boost v1.62.0 (valhalla#2953)
  Add ability to build Valhalla modules as STATIC libraries (valhalla#2957)
  Allow disabling Werror (valhalla#2937)
  Enhanced logic for IsTurnChannelManeuverCombinable (valhalla#2952)
  Allow config object to be passed-in to path algorithms (valhalla#2949)
  Floating-point precision fix in meili::Project() fixes map-match issue (valhalla#2946)
  Use kServiceRoad edges while reclassifying ferry connections (valhalla#2933)
  ci: Update cache key to trigger clearing it (valhalla#2947)
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.

Windows build failing
2 participants