Closed pakrym closed 3 years ago
This is by design.
Since some of links only exists in PR not in mater, we scan against the link in commits only. The error message comes from checking against the link with SHA commit.
##[warning][404] broken link https://github.com/Azure/azure-sdk-for-net/tree/0fe00c70af81e60ab232093e8dac3402ce575a8d/sdk/mixedreality/Azure.MixedReality.ObjectAnchors
To change it to master, people will not realize the broken links are from the commit. Instead, they think it is normal there is no master link as the code has not checked in yet.
Can we include both the original and the resolved link in the error message?
@pakrym I will go ahead and have a clear message as you suggested.
Another complaints I recently got is the log message is a little confusing:
People kinda of misread the message to "Found 30 errors" instead of links. Maybe we can remove the successful log to debug level.
Even if we move that to the verbose logging I'd want to turn that on by default as it is good information and shows progress when there is a lot of links being checked. I'd be open to different wording but I don't think we should remove it or demote it to verbose/debug only output.
Sample output:
There are two links in the output, the actual one used in the .MD file (
https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/mixedreality/Azure.MixedReality.ObjectAnchors
) and the processed one (https://github.com/Azure/azure-sdk-for-net/tree/0fe00c70af81e60ab232093e8dac3402ce575a8d/sdk/mixedreality/Azure.MixedReality.ObjectAnchors
). Only the processed one is highlighted in DevOps output and it's confusing to customers because they don't have that exact URL in the MD file.I propose to change the output to
##[warning][404] broken link https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/mixedreality/Azure.MixedReality.ObjectAnchors (resolved to https://github.com/Azure/azure-sdk-for-net/tree/0fe00c70af81e60ab232093e8dac3402ce575a8d/sdk/mixedreality/Azure.MixedReality.ObjectAnchors)