Skip to content

AOT 6: Validate localized authentication resources in Abstractions builds - #4819

Merged
paulmedynski merged 0 commit into
dev/paul/aot/phase-1.4from
dev/paul/aot/phase-1.5
Oct 29, 2026
Merged

paulmedynski merged 0 commit into
dev/paul/aot/phase-1.4from
dev/paul/aot/phase-1.5

Conversation

@paulmedynski

@paulmedynski paulmedynski commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Validate Abstractions' localized authentication resources in the build pipeline.

Why?

Authentication resources need the same localization checks as driver resources, with independent exception lists so an allowance for one assembly cannot hide a problem in another.

How

  • Parameterize the shared validation step with an explicit resource directory and allowlist section.
  • Add an independent AbstractionsAllowedEnglishValueMatches section and run the Abstractions gate before analysis and compilation.
  • Preserve the driver's default allowlist section for direct script callers and retain existing validation gating and strict defaults.
  • Cover independent section selection, missing-section rejection, and isolation of allowlisted exceptions.
  • Document resource ownership and per-assembly allowlists.
  • PR validation: trigger build-pipeline runs covering driver and Abstractions localization gates.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 18:24
@paulmedynski
paulmedynski added this pull request to stack #4822 October 9, 2026 18:25

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.

🟢 Approval recommended

The parameterization is correctly wired, preserves existing behavior, and has focused regression coverage.

0 open findings

What changed in this PR

Adds reusable localization validation for Abstractions while preserving existing SqlClient validation.

Changes:

  • Parameterizes resource paths and allowlist sections.
  • Adds Abstractions validation and an independent allowlist.
  • Adds Pester coverage for selection and pipeline wiring.
File Description
validate-localization-step.yml Accepts explicit validation inputs.
validate-localization.ps1 Selects the requested allowlist section.
validate-localization.Tests.ps1 Tests section selection and rejection.
pipeline-invocation.Tests.ps1 Verifies template contracts and wiring.
build-buildproj-job.yml Enables Abstractions validation.
onebranch-pipeline-design.instructions.md Documents both validation gates.
LocalizationValidationAllowlist.json Adds the Abstractions allowlist section.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@paulmedynski paulmedynski added this to the 8.0.0-preview1 milestone Oct 13, 2026
@paulmedynski paulmedynski changed the title Validate localized authentication resources in Abstractions builds AOT 5: Validate localized authentication resources in Abstractions builds Oct 13, 2026
@paulmedynski paulmedynski added the Area\Azure Connectivity Use this to tag issues that are related to Azure connectivity. label Oct 13, 2026
Copilot AI balanced review requested due to automatic review settings October 13, 2026 17:41

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.

🟢 Approval recommended

The validation wiring is correct, isolated, documented, and covered by the existing tested contracts.

0 open findings

🧠 Review effort: Balanced

@paulmedynski
paulmedynski removed this pull request from stack #4822 October 13, 2026 17:44
@paulmedynski
paulmedynski added this pull request to stack #4839 October 13, 2026 17:45
@paulmedynski paulmedynski changed the title AOT 5: Validate localized authentication resources in Abstractions builds AOT 6: Validate localized authentication resources in Abstractions builds Oct 13, 2026
@paulmedynski
paulmedynski force-pushed the dev/paul/aot/phase-1.5 branch from eece17e to 7928b87 Compare October 14, 2026 11:36
Copilot AI balanced review requested due to automatic review settings October 14, 2026 11:36

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.

🟡 Changes recommended

The PR description must accurately state that non-official report-only validation is opt-in.

1 open finding

🧠 Review effort: Balanced

parameters:
resourcesDirectory: src/Microsoft.Data.SqlClient.Extensions/Abstractions/src/Resources
allowlistSection: AbstractionsAllowedEnglishValueMatches
failOnValidationError: ${{ parameters.failOnValidationError }}
Copilot AI balanced review requested due to automatic review settings October 16, 2026 18:04
@paulmedynski
paulmedynski force-pushed the dev/paul/aot/phase-1.5 branch from d992b08 to d9493ff Compare October 16, 2026 18:04

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.

🔵 Needs a closer look

Pipeline integration and Pester execution remain unverified and require confirmation before approval.

2 open findings

🧠 Review effort: Balanced

Comment on lines +15 to +16
/// static initialization. Authentication configuration is covered by the
/// dedicated AuthenticationTests configuration-process harness.
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.49%. Comparing base (95946f4) to head (d9493ff).

Additional details and impacted files
@@                    Coverage Diff                     @@
##           dev/paul/aot/phase-1.4    #4819      +/-   ##
==========================================================
- Coverage                   65.52%   65.49%   -0.04%     
==========================================================
  Files                         285      285              
  Lines                       68296    68296              
==========================================================
- Hits                        44754    44732      -22     
- Misses                      23542    23564      +22     
Flag Coverage Δ
PR-SqlClient-Project 65.49% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 17:13
@paulmedynski
paulmedynski force-pushed the dev/paul/aot/phase-1.5 branch from d9493ff to 3cfdc0b Compare October 19, 2026 17:13
@paulmedynski paulmedynski changed the title AOT 5: Validate localized authentication resources in Abstractions builds AOT 6: Validate localized authentication resources in Abstractions builds Oct 19, 2026
@paulmedynski
paulmedynski removed this pull request from stack #4853 October 19, 2026 17:16
@paulmedynski
paulmedynski added this pull request to stack #4861 October 19, 2026 17:16

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.

🔵 Needs a closer look

Pipeline validation covering both localization gates remains pending, so automated approval is not yet supported.

3 open issues

Review effort: Balanced

Comment on lines +56 to +57
/// configuration only on .NET Framework; the dedicated AuthenticationTests
/// harness also covers untrimmed .NET configuration loading.
Copilot AI balanced review requested due to automatic review settings October 19, 2026 19:07
@paulmedynski
paulmedynski force-pushed the dev/paul/aot/phase-1.5 branch from 3cfdc0b to 332f2bc Compare October 19, 2026 19:07

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.

🔵 Needs a closer look

Pipeline validation covering both localization gates remains unverified and needs human confirmation before approval.

3 open issues

Review effort: Balanced

@paulmedynski
paulmedynski force-pushed the dev/paul/aot/phase-1.5 branch from 332f2bc to 23c504e Compare October 29, 2026 14:02
@paulmedynski
paulmedynski merged commit 23c504e into main Oct 29, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Done in SqlClient Board Oct 29, 2026
@paulmedynski
paulmedynski deleted the dev/paul/aot/phase-1.5 branch October 29, 2026 14:02
@paulmedynski
paulmedynski restored the dev/paul/aot/phase-1.5 branch October 29, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Azure Connectivity Use this to tag issues that are related to Azure connectivity.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants