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

Adding comment for vcpkg triplet in the unique key for caching #1623

Merged
5 commits merged into from
Apr 27, 2021

Conversation

sappyh
Copy link
Contributor

@sappyh sappyh commented Feb 27, 2021

Commenting the details about the vcpkg triplet to resolve issue #1534

@sappyh sappyh requested review from danieljurek and a team as code owners February 27, 2021 01:00
@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Feb 27, 2021
@ghost
Copy link

ghost commented Feb 27, 2021

Thank you for your contribution sappyh! We will review the pull request and get back to you soon.

@RickWinter
Copy link
Member

@danieljurek Are you working on switching to vcpkg's cache?

Copy link
Member

@danieljurek danieljurek left a 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
Copy link
Member

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# 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
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Contributor

@ahsonkhan ahsonkhan left a 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

@ahsonkhan
Copy link
Contributor

Looks like some link verification is failing. @sappyh can you pull in Azure:master into your branch since it might be out-dated.

https://dev.azure.com/azure-sdk/public/_build/results?buildId=773945&view=logs&j=a129effc-2dd1-54d1-fb5a-ad7bdc0e851d&t=ccad100f-2904-5913-2083-c525ad929a03

##[warning][404] broken link ***/blob/481cd97206ec6884fcb88ffec3db44e6fdc98337/sdk/samples/iot/docs/how_to_iot_hub_esp32.md
Found 3 links on page file:///D:/a/_work/1/s/sdk/docs/platform/README.md
Found 1 links on page file:///D:/a/_work/1/s/sdk/samples/core/README.md
Found 27 links on page file:///D:/a/_work/1/s/sdk/samples/iot/docs/how_to_iot_hub_esp32.md
##[warning][404] broken link ***/blob/481cd97206ec6884fcb88ffec3db44e6fdc98337/sdk/samples/iot/aziot_esp32

@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 ahsonkhan requested a review from danieljurek March 10, 2021 18:21
@ahsonkhan ahsonkhan added the EngSys This issue is impacting the engineering system. label Apr 26, 2021
@RickWinter
Copy link
Member

@ahsonkhan Are we waiting on the contributor for this?

@ahsonkhan
Copy link
Contributor

Nope, just waiting for @danieljurek to approve or dismiss the changes requested and we can merge it :)

@ghost
Copy link

ghost commented Apr 26, 2021

Hello @ahsonkhan!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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) and give me an instruction to get started! Learn more here.

@ahsonkhan
Copy link
Contributor

@msftbot wait until @danieljurek approves

@ghost
Copy link

ghost commented Apr 26, 2021

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:

  • I'll only merge this pull request if it's approved by @danieljurek

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".

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants