Skip to content

[9.0.1xx] The Component Detection tool partially succeeded with InvalidComponentVersionException #5002

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

Open
Winniexu01 opened this issue Apr 3, 2025 · 2 comments
Labels
area-upstream-fix Needs a change in a contributing repo ops-monitor Issues created/handled by the source build monitor role

Comments

@Winniexu01
Copy link
Member

https://dev.azure.com/dnceng/internal/_build/results?buildId=2678135&view=logs&j=609589e2-4f74-5576-cdb7-914bcaea778b&t=fa109728-0199-5dd2-1360-ccbb7bc9b435 (internal Microsoft link)

Microsoft.VisualStudio.Services.Governance.Contracts.InvalidComponentVersionException: The provided version '{MicrosoftVisualStudioCoreUtilityVersion}' was not valid.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpMethod method, IEnumerable`1 additionalHeaders, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable`1 queryParameters, Object userState, CancellationToken cancellationToken)
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.PostSnapshotRequestWithRetryAsync(ComponentGovernanceHttpClient govClient, SubmittedRegistrationRequestsTelemetryRecord record, SnapshotRequest snapshotRequest, Uri url, Nullable`1 requesterUserGuid, String projectString) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 178
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.<>c__DisplayClass15_0.<<PostRegistrationRequests>b__0>d.MoveNext() in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 127
--- End of stack trace from previous location ---
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.<>c__DisplayClass32_0`1.<<TrackedClientOperation>b__0>d.MoveNext() in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 830
--- End of stack trace from previous location ---
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.TrackedClientOperationInternal[TReturnType,TRecord](Uri url, String pat, Func`3 invoker) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 886
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.TrackedClientOperation[TRecord](Uri url, String pat, Func`3 invoker) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 828
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.PostRegistrationRequests(SnapshotRequest snapshotRequest, Uri url, String pat, WarnOnAlertSeverity minimumSeverity, Boolean failOnAlert, String requesterUserId, String overriddenProjectId, Boolean showAlertLink, Nullable`1 timeoutSeconds, CancellationToken token) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 125
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.ComponentDetectionCommandService.ExecuteInternalCommandAsync(CommandContext context, DetectionSettings settings, CancellationToken token) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/ComponentDetectionCommandService.cs:line 221
   at Microsoft.ComponentDetection.Internal.AzureDevOps.InternalAsyncCommand`1.<>c__DisplayClass7_0.<<Dispatch>b__0>d.MoveNext() in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/InternalAsyncCommand.cs:line 161
For more information about configuring the build task please visit: https://aka.ms/cgbuildtaskdocs
##[warning]The Component Detection tool partially succeeded. See the logs for more information.
@Winniexu01 Winniexu01 added untriaged ops-monitor Issues created/handled by the source build monitor role labels Apr 3, 2025
@MichaelSimons MichaelSimons moved this from Backlog to Blocked in .NET Source Build Apr 3, 2025
@MichaelSimons
Copy link
Member

[Triage] We are assuming this is a 1ES related infra issue that will self resolve.

@mthalman
Copy link
Member

This is an issue in the test-templates repo: dotnet/test-templates#550

@MichaelSimons MichaelSimons added the area-upstream-fix Needs a change in a contributing repo label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-upstream-fix Needs a change in a contributing repo ops-monitor Issues created/handled by the source build monitor role
Projects
Status: Blocked
Development

No branches or pull requests

3 participants