Skip to content

CI artifact error: uitest-snapshot-results-android-Job19-1 already exists for build #33026

@rmarinho

Description

@rmarinho

Description

A recurring CI problem is observed where the following error occurs frequently during builds:

ApplicationInsightsTelemetrySender correlated 2 events with X-TFS-Session 75fbd866-b837-439c-aa40-9124468648de
##[error]Artifact uitest-snapshot-results-android-Job19-1 already exists for build 155110.

This seems related to test/artifact uploads and may cause upstream instability or block other CI jobs. The error is reproduced in public builds and impacts developer productivity.

Example build link encountering this error:
https://dev.azure.com/xamarin/public/public%20Team/_build/results?buildId=155110&view=logs&j=1da51a49-4ede-5a09-243d-c03b38642bb4&t=0246a852-7b1b-5ffa-dc3e-7499856e1f02&l=32

This issue needs investigation and may require CI pipeline or artifact logic changes.

Steps to Reproduce

  1. Trigger a build in the CI pipeline for maui repo
  2. Observe that some jobs intermittently fail with the error about already existing artifact for a given build ID.
  3. Look at the provided build link for log details and error location.

Expected:

  • CI should either overwrite or handle duplicate artifact names gracefully so builds do not fail due to this specific error.

Actual:

  • The error blocks further progress in the build and needs manual attention or rerun.

Link to public reproduction project repository

https://dev.azure.com/xamarin/public/public%20Team/_build/results?buildId=155110&view=logs&j=1da51a49-4ede-5a09-243d-c03b38642bb4&t=0246a852-7b1b-5ffa-dc3e-7499856e1f02&l=32

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

Android (CI jobs, all recent builds)

Did you find any workaround?

A temporary workaround is to manually rerun the job when the artifact collision happens. No permanent workaround is currently known.

Relevant log output

ApplicationInsightsTelemetrySender correlated 2 events with X-TFS-Session 75fbd866-b837-439c-aa40-9124468648de
##[error]Artifact uitest-snapshot-results-android-Job19-1 already exists for build 155110.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions