Skip to content

Fix RAR framework list discovery for relative paths - #15089

Merged
AR-May merged 3 commits into
dotnet:mainfrom
AR-May:ar-may-rar-framework-directory-discovery
Oct 6, 2026
Merged

AR-May merged 3 commits into
dotnet:mainfrom
AR-May:ar-may-rar-framework-directory-discovery

Conversation

@AR-May

@AR-May AR-May commented Sep 21, 2026

Copy link
Copy Markdown
Member

Follow-up fix for the RAR migration in #13319, which missed the redist and subset list discovery call sites.

Use resolved TargetFrameworkDirectories when discovering these lists, so relative paths are interpreted against the project directory instead of the process working directory.

Gate the fix behind Wave18_12, preserving existing discovery behavior when opted out.

@AR-May AR-May self-assigned this Sep 21, 2026
Follow up on the RAR migration by using resolved framework directories for the missed redist and subset list discovery call sites. Gate the fix behind Wave18_12 and preserve the previous arguments when opted out.

Co-authored-by: Copilot App <[email protected]>
@AR-May
AR-May force-pushed the ar-may-rar-framework-directory-discovery branch from cb07c0e to 18a2064 Compare September 21, 2026 13:42
@AR-May
AR-May marked this pull request as ready for review September 21, 2026 13:43
Copilot AI lite review requested due to automatic review settings September 21, 2026 13:43
@AR-May
AR-May temporarily deployed to copilot-pat-pool September 21, 2026 13:44 — with GitHub Actions Inactive
@AR-May
AR-May requested a review from JanProvaznik September 21, 2026 13:44
@AR-May
AR-May temporarily deployed to copilot-pat-pool September 21, 2026 13:45 — with GitHub Actions Inactive
@AR-May
AR-May temporarily deployed to copilot-pat-pool September 21, 2026 13:46 — with GitHub Actions Inactive

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.

Copilot review overview

🟡 Changes recommended

Add regression coverage for relative-path discovery and the legacy opt-out behavior.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Fixes RAR framework list discovery for relative paths by using resolved framework directories, gated behind Wave18_12.

Changes:

  • Updates redist and subset list discovery.
  • Preserves legacy behavior when opted out.
  • Documents the Wave18_12 change.
File Description
src/​Tasks/​AssemblyDependency/​ResolveAssemblyReference.cs Uses resolved directories for list discovery with wave gating.
documentation/​wiki/​ChangeWaves.md Documents the Wave18_12 behavior.

@github-actions github-actions Bot 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.

# Dimension Verdict
2 ChangeWave Discipline 🔴 1 BLOCKING

✅ 23/24 dimensions clean.

  • ChangeWave Discipline — wave-gated redist/subset path discovery lacks enabled and opt-out regression coverage

Warning

Firewall blocked 3 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • github.com
  • raw.githubusercontent.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "github.com"
    - "raw.githubusercontent.com"

See Network Configuration for more information.

Generated by Expert Code Review (on open) for #15089 · copilot · gpt56 · 673.8 AIC · ⌖ 6.13 AIC · ⊞ 17.8K

@AR-May
AR-May temporarily deployed to copilot-pat-pool September 21, 2026 14:11 — with GitHub Actions Inactive
@JanProvaznik

Copy link
Copy Markdown
Member

@AR-May is this a bugfix? do you need this for GA? pls retarget to 18.12 if so

@JanProvaznik JanProvaznik left a comment

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 understand why this is changewaved if it just aligns behavior in mt to spec. and would appreciate a red/green regression test to see the mechanism why is this problematic.

@AR-May

AR-May commented Sep 22, 2026 •

Copy link
Copy Markdown
Member Author

@JanProvaznik It is a bug fix, but a low-priority one. The issue was found by AI during review and is very unlikely to happen in real builds. Still, the behavior is technically incorrect. Because of that, I do not think we need to retarget this to 18.12.

As for the change wave, while the fix addresses an MT issue, it also changes non-MT behavior because it adds one more path absolutization step where there was none. I usually placed changes like this behind a change wave during migrations, since failures in RAR and builds can be hard to predict and may not be obvious right away.

@AR-May

AR-May commented Sep 22, 2026 •

Copy link
Copy Markdown
Member Author

I would prefer not to add a regression test here. The issue was found during review, and the failure mode is mostly theoretical. This change is mainly a safety net, and I do not expect it to affect real builds. Given that, I do not think a red/green RAR test would provide much value.

@AR-May

AR-May commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@AR-May

AR-May commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@AR-May
AR-May dismissed github-actions[bot]’s stale review October 6, 2026 12:46

Discussed the raised issue with person.

@AR-May
AR-May enabled auto-merge (squash) October 6, 2026 12:46
@AR-May
AR-May merged commit 5e8f507 into dotnet:main Oct 6, 2026
14 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