Skip to content

Condition Artifact Upload to running lavapipe - #8724

Open
joaosaffran wants to merge 8 commits into
microsoft:mainfrom
joaosaffran:bugfix/upload-only-when-lavapipe
Open

Condition Artifact Upload to running lavapipe#8724
joaosaffran wants to merge 8 commits into
microsoft:mainfrom
joaosaffran:bugfix/upload-only-when-lavapipe

Conversation

@joaosaffran

Copy link
Copy Markdown
Collaborator

Currently we upload a new DXC artifact every time we run a test; this leads us to consume a lot more artifact storage than intended. This patch changes that so we only upload artifacts when lavapipe needs to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Conditions DXC artifact uploads on whether lavapipe offload tests will run, reducing artifact storage usage.

Changes:

  • Moves the offload gate before the build stage.
  • Passes the gate result to the Windows artifact publishing step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread azure-pipelines.yml Outdated
Comment thread azure-pipelines.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

azure-pipelines.yml:131

  • Azure Pipelines condition expressions do not resolve a bare uploadArtifact identifier, so this condition fails to parse/evaluate instead of gating publication. Reference the mapped job variable through the variables context, as the surrounding conditions do.
      condition: and(succeeded(), ne(variables['artifactName'], ''), eq(variables['uploadArtifact'], 'true'))

@joaosaffran
joaosaffran force-pushed the bugfix/upload-only-when-lavapipe branch from dc79142 to 81455ac Compare July 31, 2026 01:20
@joaosaffran
joaosaffran requested a review from Copilot July 31, 2026 01:21
@joaosaffran
joaosaffran marked this pull request as ready for review July 31, 2026 01:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread azure-pipelines.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 31, 2026 01:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@joaosaffran
joaosaffran requested a review from damyanp July 31, 2026 01:42
Copilot AI review requested due to automatic review settings July 31, 2026 18:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 31, 2026 22:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

azure-pipelines.yml:115

  • A transient GitHub API error or unauthenticated rate limit makes Invoke-RestMethod throw, so this auxiliary label check now fails the VS2022_Release build after its tests have passed. Catch the request failure and retain the existing false default for PRs; this skips artifact/offload work without turning core CI red.
          $labels = Invoke-RestMethod "https://api.github.com/repos/$(Build.Repository.Name)/issues/$(System.PullRequest.PullRequestNumber)/labels"

Copilot AI review requested due to automatic review settings July 31, 2026 22:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comment thread azure-pipelines.yml Outdated

stages:
- stage: Build
condition: succeededOrFailed()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need a condition on the first stage, do we?

Comment thread azure-pipelines.yml
Comment thread azure-pipelines.yml Outdated
Comment thread azure-pipelines.yml Outdated
Copilot AI review requested due to automatic review settings July 31, 2026 23:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comment thread azure-pipelines.yml
condition: and(succeeded(), eq(variables['decide.runOffloadTests'], 'true'))
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)\dxc'
artifact: '$(artifactName)'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does artifactName get set any more? It'd be good to see a run that runs the tests.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damyanp damyanp added the run-offload-tests trigger offload-tests on a given pr label Aug 1, 2026
@damyanp
damyanp marked this pull request as draft August 1, 2026 00:49
@damyanp
damyanp marked this pull request as ready for review August 1, 2026 00:49
@joaosaffran
joaosaffran requested a review from damyanp August 1, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-offload-tests trigger offload-tests on a given pr

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

4 participants