Re-running just the tests will fail in CI, even if the tests pass #20411

Closed
opened 2026-01-31 07:12:58 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Aug 24, 2023).

Originally assigned to: @DHowett on GitHub.

Probably regressed in #15808

Case in point:

PR: https://github.com/microsoft/terminal/pull/15867/checks?check_run_id=16176312961.
AZP: https://dev.azure.com/ms/terminal/_build/results?buildId=491204&view=logs&jobId=715ae6b5-7bc1-5485-dd41-2ac3c0010e51&j=715ae6b5-7bc1-5485-dd41-2ac3c0010e51&t=efe7f887-b87a-5492-dbfa-782df7fade32.

Log:

Starting: PublishPipelineArtifact
==============================================================================
Task         : Publish Pipeline Artifacts
Description  : Publish (upload) a file or directory as a named artifact for the current run
Version      : 1.199.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/publish-pipeline-artifact
==============================================================================
Artifact name input: test-logs-x64-Release
Uploading pipeline artifact from D:\a\_work\1\a\Release\x64\test-logs for build #491204
Using default max parallelism.
Max dedup parallelism: 192
ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 20065d8c-75d0-4839-8a6f-1fb162ba1281
Hashtype: Dedup64K
DedupManifestArtifactClient will correlate http requests with X-TFS-Session 20065d8c-75d0-4839-8a6f-1fb162ba1281
1 files processed.
Processed 1 files from D:\a\_work\1\a\Release\x64\test-logs successfully.
Uploaded 1,703,262 out of 1,703,262 bytes
Content upload is done!

Content upload statistics:
Total Content: 3.4 MB
Physical Content Uploaded: 0.1 MB
Logical Content Uploaded: 1.7 MB
Compression Saved: 1.6 MB
Deduplication Saved: 1.7 MB
Number of Chunks Uploaded: 17
Total Number of Chunks: 49

ApplicationInsightsTelemetrySender correlated 2 events with X-TFS-Session 20065d8c-75d0-4839-8a6f-1fb162ba1281
##[error]Artifact test-logs-x64-Release already exists for build 491204.
Finishing: PublishPipelineArtifact

The first run, tests flaked out. On rerun, they passed. But the CI reported it as a failure, because Artifact test-logs-x64-Release already exists for build 491204

Originally created by @zadjii-msft on GitHub (Aug 24, 2023). Originally assigned to: @DHowett on GitHub. Probably regressed in #15808 Case in point: PR: https://github.com/microsoft/terminal/pull/15867/checks?check_run_id=16176312961. AZP: https://dev.azure.com/ms/terminal/_build/results?buildId=491204&view=logs&jobId=715ae6b5-7bc1-5485-dd41-2ac3c0010e51&j=715ae6b5-7bc1-5485-dd41-2ac3c0010e51&t=efe7f887-b87a-5492-dbfa-782df7fade32. Log: ``` Starting: PublishPipelineArtifact ============================================================================== Task : Publish Pipeline Artifacts Description : Publish (upload) a file or directory as a named artifact for the current run Version : 1.199.0 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/publish-pipeline-artifact ============================================================================== Artifact name input: test-logs-x64-Release Uploading pipeline artifact from D:\a\_work\1\a\Release\x64\test-logs for build #491204 Using default max parallelism. Max dedup parallelism: 192 ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 20065d8c-75d0-4839-8a6f-1fb162ba1281 Hashtype: Dedup64K DedupManifestArtifactClient will correlate http requests with X-TFS-Session 20065d8c-75d0-4839-8a6f-1fb162ba1281 1 files processed. Processed 1 files from D:\a\_work\1\a\Release\x64\test-logs successfully. Uploaded 1,703,262 out of 1,703,262 bytes Content upload is done! Content upload statistics: Total Content: 3.4 MB Physical Content Uploaded: 0.1 MB Logical Content Uploaded: 1.7 MB Compression Saved: 1.6 MB Deduplication Saved: 1.7 MB Number of Chunks Uploaded: 17 Total Number of Chunks: 49 ApplicationInsightsTelemetrySender correlated 2 events with X-TFS-Session 20065d8c-75d0-4839-8a6f-1fb162ba1281 ##[error]Artifact test-logs-x64-Release already exists for build 491204. Finishing: PublishPipelineArtifact ``` The first run, tests flaked out. On rerun, they passed. But the CI reported it as a failure, because `Artifact test-logs-x64-Release already exists for build 491204`
claunia added the Issue-BugIn-PRNeeds-Tag-FixProduct-MetaArea-Build labels 2026-01-31 07:12:59 +00:00
Author
Owner

@DHowett commented on GitHub (Aug 24, 2023):

Oh, interesting. This is an unexpected limitation in Azure DevOps! I wonder if there's a way to disambiguate the pipeline artifact...

@DHowett commented on GitHub (Aug 24, 2023): Oh, interesting. This is an unexpected limitation in Azure DevOps! I wonder if there's a way to disambiguate the pipeline artifact...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20411