Skip to content

UB Build Failure: validation - SignCheck timeout #5041

@mmitche

Description

@mmitche

Issue:

SignCheck times out. This then causes a downstream failure where the signcheck log is still being held and credscan cannot access the file.

  Determining projects to restore...
  Restored D:\a\_work\1\s\eng\signing-validation.proj (in 157 ms).
  Restored D:\a\_work\1\s\eng\tools\tasks\Microsoft.DotNet.UnifiedBuild.Tasks\Microsoft.DotNet.UnifiedBuild.Tasks.csproj (in 2.07 sec).
  Microsoft.DotNet.UnifiedBuild.Tasks -> D:\a\_work\1\s\artifacts\bin\Microsoft.DotNet.UnifiedBuild.Tasks\Release\Microsoft.DotNet.UnifiedBuild.Tasks.dll
  Preparing files to sign check...
D:\a\_work\1\s\eng\signing-validation.proj(21,7): error : File productVersion.txt already exists in C:\Users\cloudtest\AppData\Local\Temp\10hsnufk.qgk\SignCheckFiles, skipping copy.
D:\a\_work\1\s\eng\signing-validation.proj(21,7): error : File productVersion.txt already exists in C:\Users\cloudtest\AppData\Local\Temp\10hsnufk.qgk\SignCheckFiles, skipping copy.
  Running SignCheck...
D:\a\_work\1\s\eng\signing-validation.proj(21,7): error : Signing validation failed: SignCheck timed out after 7200 seconds.

Then later in credscan:

The process cannot access the file 'D:\a\_work\1\a\SigningValidation\signcheck.log' because it is being used by another process.
[WARNING] Asset D:\a\_work\1\a\SigningValidation\signcheck.error.log failed to get process

The process cannot access the file 'D:\a\_work\1\a\SigningValidation\signcheck.error.log' because it is being used by another process.

[WARNING] Asset D:\a\_work\1\a\SigningValidation\signcheck.xml failed to get process
The process cannot access the file 'D:\a\_work\1\a\SigningValidation\signcheck.xml' because it is being used by another process

Aside from fixing the timeout, it may be better to update SignCheck to try and avoid holding exclusive writes on these files.

Instances:

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions