-
Notifications
You must be signed in to change notification settings - Fork 123
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
Adding comment for vcpkg triplet in the unique key for caching #1623
Conversation
Thank you for your contribution sappyh! We will review the pull request and get back to you soon. |
@danieljurek Are you working on switching to vcpkg's cache? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sappyh -- Thanks for your contribution! I've added a couple points of feedback to address before we can sign off and merge your PR. Let me know if you have any questions.
|
||
|
||
# $(VCPKG_DEFAULT_TRIPLET) added to the restore key of the cache to make it more unique and force a cache miss | ||
# TODO: Use RFC: Binarycaching in vcpkg can be used for more flexible and less error-prone approach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the #TODO
comment here. I've filed this issue to track investigating this: Azure/azure-sdk-for-cpp#1765
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# TODO: Use RFC: Binarycaching in vcpkg can be used for more flexible and less error-prone approach |
@@ -23,7 +23,9 @@ steps: | |||
succeeded(), | |||
not(eq(variables['${{ parameters.DependenciesVariableName }}'], '')) | |||
) | |||
|
|||
|
|||
# $(VCPKG_DEFAULT_TRIPLET) added to the restore key of the cache to make it more unique and force a cache miss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true. However, a significant example case we're avoiding is using an x86 build of curl on an x64 build of the SDK libraries. The triplet here lets us capture the target platform architecture, OS (though this is better captured in $(Agent.Os)
), and linking configuration (static/dynamic) in one variable.
Please update the comment with the example. This will make the value of VCPKG_DEFAULT_TRIPLET
immediately more clear to developers who end up here later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the comment with the example.
@danieljurek can you please give a concrete GitHub suggestion with the example you prefer to be added here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but since we are in a code freeze while releasing our next version, please hold off on merging for the next day or so.
Thanks for the fix @sappyh
Looks like some link verification is failing. @sappyh can you pull in Azure:master into your branch since it might be out-dated.
@sima-zhu - was there a recent fix in engsys around link verification? It looks like whenever folks submit a PR branched off of an older commit, we see this link verification error. |
@ahsonkhan Are we waiting on the contributor for this? |
Nope, just waiting for @danieljurek to approve or dismiss the |
Hello @ahsonkhan! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
@msftbot wait until @danieljurek approves |
Hello @ahsonkhan! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Commenting the details about the vcpkg triplet to resolve issue #1534