Skip to content

Port corclr 27875#42

Merged
jashook merged 4 commits into
dotnet:masterfrom
jashook:port_corclr_27875
Nov 14, 2019
Merged

Port corclr 27875#42
jashook merged 4 commits into
dotnet:masterfrom
jashook:port_corclr_27875

Conversation

@jashook

@jashook jashook commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@ViktorHofer

Copy link
Copy Markdown
Member

@jashook the formatting jobs are still failing here, is this expected?

@jashook

jashook commented Nov 14, 2019

Copy link
Copy Markdown
Contributor Author

The job is actually working correctly in the change. A last minute coreclr change broke our formatting rules. I am applying the patch here and will merge through this change.

@ViktorHofer

Copy link
Copy Markdown
Member

Not sure I follow. You are saying that you will submit another commit on-top of the existing one or that the failing legs aren't actually failing?

@jashook

jashook commented Nov 14, 2019

Copy link
Copy Markdown
Contributor Author

The failure is expected because the jit sources are not formatted correctly.

@jashook

jashook commented Nov 14, 2019

Copy link
Copy Markdown
Contributor Author

I will submit another commit which applies the patch, fixing the format.

@ViktorHofer

Copy link
Copy Markdown
Member

thanks!

@jashook

jashook commented Nov 14, 2019

Copy link
Copy Markdown
Contributor Author

Formatting passed, merging to save resources.

@jashook jashook merged commit e30a1c4 into dotnet:master Nov 14, 2019
@jashook jashook deleted the port_corclr_27875 branch November 14, 2019 18:56
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
PureWeen pushed a commit to dotnet/maui that referenced this pull request Jun 11, 2026
…R-side tristate

Addresses adversarial review findings from Opus / GPT-5.5 / Gemini-3.1-Pro:

1. CRITICAL — Get-TagsForMilestone derives major from $Milestone arg, not from
   $script:validationMajor. Pre-fix, validating a net11.0 PR with an issue
   currently milestoned '.NET 10 SR6' filtered out every 10.x tag (because
   validationMajor=11), making Test-PrShippedInMilestone return false, which
   silently clobbered SR6 — the exact data-loss case the KEEP guard exists to
   prevent. (Opus)

2. CRITICAL — Restricted Get-LinkedIssues and Test-MilestoneValidForIssue
   cross-repo prefix from [A-Za-z0-9_\-./]+ to '(?:dotnet/maui)?'. The old regex
   silently matched 'Fixes dotnet/runtime#42' and would have closed unrelated
   MAUI #42. Mirrors GitHub's own auto-close scope. (GPT-5.5 + Gemini-3.1-Pro)

3. Replaced two-query foreach in Test-MilestoneValidForIssue with a single OR
   query ('#N in:title,body OR issues/N in:body'). Halves Search API consumption
   (30 req/min limit was hit after 16 issues) and eliminates the 'discard
   positive evidence on partial failure' trap. Also removed $null caching so a
   transient failure no longer permanently disables KEEP for that pair.
   (Gemini-3.1-Pro + Opus)

4. PR-side tristate: Get-PrsInTag returns $null on git failure (was @());
   Test-PrShippedInMilestone propagates that through to Test-MilestoneValidForPr.
   Test-AndRecordCorrection already had defensive $null handling for issues; now
   it applies equally to PRs (cherry-pick KEEP path). One transient git failure
   no longer silently clobbers a valid earlier milestone. (Opus)

Also added unary-comma fix to Get-PrsInTag's HashSet return so PowerShell doesn't
unwrap single-element collections (caller relies on .Contains()).

Tests: 134 → 149 (+15). New coverage:
  - Get-TagsForMilestone cross-major behavior (the missing test that hid the bug)
  - Three NEGATIVE cases for cross-repo regex (dotnet/runtime, xamarin, mixed)
  - Single OR query string assertion + caching test updated to 1 call
  - Test-PrShippedInMilestone tristate ($true / $false / $null cases)
  - Test-AndRecordCorrection PR-side $null → skip correction

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants