Skip to content

Skip localization PR creation on file-change CI trigger#40501

Merged
benhillis merged 2 commits into
masterfrom
benhill/skip-localization-pr-on-ci
May 11, 2026
Merged

Skip localization PR creation on file-change CI trigger#40501
benhillis merged 2 commits into
masterfrom
benhill/skip-localization-pr-on-ci

Conversation

@benhillis
Copy link
Copy Markdown
Member

Gate the Create pull request step in the nightly localization pipeline on Build.Reason in (Schedule, Manual) so it does not run when the pipeline is triggered by a push that modified localization/strings/en-US/Resources.resw.

Without this, every change to Resources.resw (e.g., #40499) kicks off the pipeline, which then runs Touchdown and opens a follow-up localization PR even though there are no new strings to localize. Those PRs consume build resources without changing any localized strings.

After this change:

  • Nightly scheduled runs still create localization PRs as before.
  • Manual pipeline runs still create PRs (useful for testing).
  • File-change CI runs still execute Touchdown but skip PR creation.

The nightly localization pipeline runs both on schedule and when
localization/strings/en-US/Resources.resw is updated. The CI-triggered
run produces a no-op Touchdown pass that still creates a PR, consuming
build resources without updating any strings.

Gate the Create-PR step on Build.Reason in (Schedule, Manual) so the PR
is only created for the nightly schedule (and manual runs), not when
the pipeline is triggered by a push to Resources.resw.

Follow-up to #40499

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 11, 2026 20:24
@benhillis benhillis requested a review from a team as a code owner May 11, 2026 20:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the nightly localization Azure DevOps pipeline to avoid creating follow-up GitHub localization PRs when the pipeline is triggered by a path-based CI run (i.e., a push that modifies localization/strings/en-US/Resources.resw), while preserving PR creation for scheduled and manual runs.

Changes:

  • Gates the Create pull request step so it only runs when Build.Reason is Schedule or Manual.

OneBlue
OneBlue previously approved these changes May 11, 2026
Comment thread .pipelines/wsl-build-nightly-localization.yml
The pip auth step only exists to support create-change.py; if we're not
creating a PR there's no reason to authenticate to the pip feed.

Keep TouchdownBuildTask running on file-change CI so new source strings
are still submitted to the translation service.

Addresses review feedback from @OneBlue.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benhillis benhillis enabled auto-merge (squash) May 11, 2026 21:15
Copy link
Copy Markdown
Collaborator

@OneBlue OneBlue left a comment

Choose a reason for hiding this comment

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

The latest iteration is missing the condition on the pip install invocation (which will fail without the pip authenticate part)

Copy link
Copy Markdown
Collaborator

@OneBlue OneBlue left a comment

Choose a reason for hiding this comment

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

My previous review was wrong !

LGTM

@benhillis benhillis merged commit c3afba3 into master May 11, 2026
11 checks passed
@benhillis benhillis deleted the benhill/skip-localization-pr-on-ci branch May 11, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants