You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we enable <UseSourceLink>true</UseSourceLink> in our coverlet.runsettings file, Azure spits out errors like so:
For Generate Code Coverage: 2024-07-05T04:50:37: Error during reading file '[https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/Services/BackgroundTasks/Workers/SendConfirmationEmailWorker.cs'](https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/Services/BackgroundTasks/Workers/SendConfirmationEmailWorker.cs%27): Response status code does not indicate success: 500 (Internal Server Error).
For Publish Code Coverage: 2024-07-05T04:50:41: Error during reading file '[https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/TransferObjects/Request/SendConfirmationEmailRequest.cs'](https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/TransferObjects/Request/SendConfirmationEmailRequest.cs%27): Response status code does not indicate success: 500 (Internal Server Error).
To Reproduce
Turn on UseSourceLink in coverlet.settings, and use the following Pipeline build script:
Expected behavior
We're expecting source-links in the published report. As in, a direct link to the source file (in Azure's Git repository) that's being reported on.
Actual behavior
We're getting "source-links" that don't actually contain any links - as in, there's text saying https://dev.azure.com/.....SendConfirmationEmailRequest.cs but it's not actually a link.
Note that if we turn off UseSourceLink then the report contains a local file-path from the build agenet, e.g. D:\a\1\s\Experience\APIs\Controllers\VehiclesController.cs and we don't get any errors.
Configuration (please complete the following information):
Please provide more information on your .NET configuration:
* Coverlet version: 6.0.2
* .NET version: 8
* OS: WindowsLatest as specified by Azure build process.
* Architecture: x64
Additional context
There's what looks like a possible fix here, but I'd like to confirm that it's either a bug or that maybe we're doing something wrong. I've gone through the docs, but didn't see anything special related to Azure.
Cheers,
Matt.
The text was updated successfully, but these errors were encountered:
Describe the bug
When we enable
<UseSourceLink>true</UseSourceLink>
in ourcoverlet.runsettings
file, Azure spits out errors like so:For Generate Code Coverage:
2024-07-05T04:50:37: Error during reading file '[https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/Services/BackgroundTasks/Workers/SendConfirmationEmailWorker.cs'](https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/Services/BackgroundTasks/Workers/SendConfirmationEmailWorker.cs%27): Response status code does not indicate success: 500 (Internal Server Error).
For Publish Code Coverage:
2024-07-05T04:50:41: Error during reading file '[https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/TransferObjects/Request/SendConfirmationEmailRequest.cs'](https://dev.azure.com/nztasd/SharedDelivery/_apis/git/repositories/Utilities/items?api-version=1.0&versionType=commit&version=8d856b2f1bd65c27e344fc86533a519f3a2f54fc&path=/Process/APIs/TransferObjects/Request/SendConfirmationEmailRequest.cs%27): Response status code does not indicate success: 500 (Internal Server Error).
To Reproduce
Turn on
UseSourceLink
incoverlet.settings
, and use the following Pipeline build script:Expected behavior
We're expecting source-links in the published report. As in, a direct link to the source file (in Azure's Git repository) that's being reported on.
Actual behavior
We're getting "source-links" that don't actually contain any links - as in, there's text saying
https://dev.azure.com/.....SendConfirmationEmailRequest.cs
but it's not actually a link.Note that if we turn off
UseSourceLink
then the report contains a local file-path from the build agenet, e.g.D:\a\1\s\Experience\APIs\Controllers\VehiclesController.cs
and we don't get any errors.Configuration (please complete the following information):
Please provide more information on your .NET configuration:
* Coverlet version: 6.0.2
* .NET version: 8
* OS: WindowsLatest as specified by Azure build process.
* Architecture: x64
Additional context
There's what looks like a possible fix here, but I'd like to confirm that it's either a bug or that maybe we're doing something wrong. I've gone through the docs, but didn't see anything special related to Azure.
Cheers,
Matt.
The text was updated successfully, but these errors were encountered: