Skip to content

Parallelize AOT size analysis artifact downloads - #55967

Merged
baronfel merged 4 commits into
mainfrom
baronfel-parallel-aot-downloads
Aug 27, 2026
Merged

baronfel merged 4 commits into
mainfrom
baronfel-parallel-aot-downloads

Conversation

@baronfel

@baronfel baronfel commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Move the AOT size analysis Bash logic into focused scripts under .github/workflows/aot-size-analysis/scripts.
  • Download matching PR and baseline artifact ZIPs in parallel with bounded curl concurrency, aggregate progress, and per-transfer statistics.

Validation

  • Bash syntax and ShellCheck
  • Workflow YAML parsing and zizmor
  • Parallel download smoke test with public AOT artifacts

Copilot AI lite review requested due to automatic review settings August 27, 2026 14:53
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@baronfel
baronfel force-pushed the baronfel-parallel-aot-downloads branch from cf1ed7a to 62c4ba1 Compare August 27, 2026 15:00
@baronfel
baronfel requested a review from a team August 27, 2026 15:01

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

This PR refactors the NativeAOT size analysis GitHub Actions workflow to move inline shell logic into dedicated scripts and to download PR/baseline artifact pairs concurrently, improving overall analysis throughput and diagnostics.

Changes:

  • Extract build selection, artifact download/extraction, and report generation into argument-driven Bash scripts.
  • Parallelize artifact downloads using curl --parallel with bounded concurrency.
  • Tighten workflow execution by checking out scripts from the trusted workflow revision (github.workflow_sha) via sparse checkout.

Reviewed changes

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

File Description
.github/workflows/aot-size-analysis/scripts/find-builds.sh New script to locate PR and baseline AzDO build IDs.
.github/workflows/aot-size-analysis/scripts/download-artifacts.sh New script to fetch matching _AotSizeAnalysis artifacts (PR + baseline), download in parallel, and extract .mstat pairs.
.github/workflows/aot-size-analysis/scripts/generate-report.sh New script to run sizoscope-cli per platform and emit a markdown report + step outputs.
.github/workflows/aot-size-analysis.yml Workflow updated to check out and invoke the new scripts instead of inline shell blocks.

Comment thread .github/workflows/aot-size-analysis.yml Resolved
baronfel and others added 3 commits August 27, 2026 13:05
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 232d7b2b-28c1-46f8-899b-a9b05bcb8f65
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 232d7b2b-28c1-46f8-899b-a9b05bcb8f65
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@baronfel
baronfel force-pushed the baronfel-parallel-aot-downloads branch from 378da3b to d629b00 Compare August 27, 2026 18:05
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 232d7b2b-28c1-46f8-899b-a9b05bcb8f65
@baronfel
baronfel merged commit b706b8c into main Aug 27, 2026
17 checks passed
@baronfel
baronfel deleted the baronfel-parallel-aot-downloads branch August 27, 2026 20:12
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 28, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — a145a561 Deployed Aug 27, 2026 by baronfel via pre_activation #1332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants