Skip to content

ci: Make ADO PR scripts available for use by GitHub workflows#17188

Merged
christopherco merged 2 commits into
microsoft:tomls/base/mainfrom
dmcilvaney:damcilva/scoped-gates/move-helpers
May 15, 2026
Merged

ci: Make ADO PR scripts available for use by GitHub workflows#17188
christopherco merged 2 commits into
microsoft:tomls/base/mainfrom
dmcilvaney:damcilva/scoped-gates/move-helpers

Conversation

@dmcilvaney
Copy link
Copy Markdown
Contributor

No description provided.

Pure file move -- 'compute_changed.sh' and 'compute_render_set.py' are
about to be reused by the GH Actions Check Rendered Specs gate.

A follow-up commit trims CT-specific behavior from compute_changed.sh
(--publish-dir flag, ADO log markers, step-env AZLDEV_ALLOW_ROOT) and
restructures the CT pipeline call site to absorb that behavior at the
caller. No script content changes here -- two line touches in
sources-upload-stages.yml and render_and_verify.sh to point at the new
paths.
Copilot AI review requested due to automatic review settings May 13, 2026 17:57
The 'compute_changed.sh' helper just moved to scripts/components/ so it
can be reused by the GH Actions Check Rendered Specs gate. Trim the
CT-specific behavior that does not generalize:

- Drop --publish-dir + trap (callers handle artifact publication).
- Drop ADO ##[group] log markers (callers add their own per-pipeline).
- Drop baked-in AZLDEV_ALLOW_ROOT step-env (callers handle azldev's
  no-root policy themselves; the helpers add inline AZLDEV_ALLOW_ROOT=1
  prefixes in a follow-up commit when they grow more azldev calls).
- Drop the 'Upload set' jq report (CT-flow specific; moved inline to
  the CT pipeline YAML alongside the artifact-publish wrapper).

The CT pipeline call site is restructured to absorb the dropped
behavior: a publish_artifact() trap wraps the call, log groups frame
each section, and AZLDEV_ALLOW_ROOT=1 is set on the step's env: block.
This keeps the existing CT-side artifact and log output identical
while letting the helper itself stay pipeline-agnostic.
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 refactors ADO PR-check helper scripts so they can be reused by GitHub Actions workflows. The component-set computation logic is moved out of control-tower/ (which is ADO-specific) into a neutral components/ directory. The ADO-specific concerns (artifact publish trap, log grouping, AZLDEV_ALLOW_ROOT env) are hoisted up into the calling pipeline step.

Changes:

  • Move compute_changed.sh and compute_render_set.py from scripts/control-tower/ to scripts/components/, stripping ADO-only concerns from the shell helper.
  • Update sources-upload-stages.yml to inline the artifact-publish trap and log grouping previously embedded in the script, and set AZLDEV_ALLOW_ROOT=1 via the step env: block.
  • Update render_and_verify.sh to reference the relocated compute_render_set.py.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/scripts/components/compute_changed.sh New location of the changed-components computation; trimmed of ADO publish/grouping logic and AZLDEV_ALLOW_ROOT (now caller's responsibility).
.github/workflows/scripts/components/compute_render_set.py Relocated render-set computation script (logic unchanged).
.github/workflows/scripts/control-tower/compute_changed.sh Old script removed after move.
.github/workflows/scripts/control-tower/render_and_verify.sh Updated path to components/compute_render_set.py.
.github/workflows/ado/templates/sources-upload-stages.yml Inlines the artifact-publish trap, log groups, and AZLDEV_ALLOW_ROOT=1 env around the relocated compute_changed.sh invocation.

@dmcilvaney dmcilvaney force-pushed the damcilva/scoped-gates/move-helpers branch from 8072b4e to e7adc27 Compare May 13, 2026 18:04
@christopherco christopherco merged commit edfe412 into microsoft:tomls/base/main May 15, 2026
10 checks passed
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