Skip to content

fix(projects): remove BYO AKS preflight reports - #10998

Open
Yi Liu (yiliuTo) wants to merge 3 commits into
Azure:mainfrom
yiliuTo:yiliuto-remove-byoaks-preflight-report
Open

Yi Liu (yiliuTo) wants to merge 3 commits into
Azure:mainfrom
yiliuTo:yiliuto-remove-byoaks-preflight-report

Conversation

@yiliuTo

Copy link
Copy Markdown
Member

Summary

  • Stop rendering or publishing BYO AKS preflight reports through progress, provisioning follow-ups, returned errors, or diagnostic logs.
  • Remove report-only listeners, cached text, callbacks, warning fields, and the optional VM SKU capacity lookup, together with obsolete tests and documentation.
  • Preserve prerequisite checks, mandatory blocking errors and underlying causes, authorization, deployment bindings, and normal Foundry deployment/preview behavior. Keep the standard provider, service target, and lifecycle registrations unchanged.
  • Changes are limited to 16 files in cli/azd/extensions/azure.ai.projects; no azd core, synthesis, or module dependency changes.

Validation

From cli/azd/extensions/azure.ai.projects:

  • go test ./internal/onboarding ./internal/provisioning ./internal/cmd -count=1 passes.
  • The Projects extension builds successfully with go build to a temporary output.
  • Regressions cover report-free preflight failures/progress, preserved blocking errors and causes, BYO deployment/preview and supporting-resource combinations, zero recommendation-only VM SKU reads, and non-BYO Foundry outputs without AKS reads.
  • Bicep-dependent cases skip because a supported Bicep compiler is unavailable; the extension subprocess helper skips by design. No Azure deployment was performed.
  • go fix -diff ./... reports existing modernization suggestions in the unchanged model_policy_test.go and project_existing_infra.go; those unrelated changes are not included.

Related work item: Azure DevOps 5871172.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

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

@github-actions github-actions Bot added the ext-projects azure.ai.projects extension label Nov 18, 2026

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

Post-preflight lookup failures can expose credential-bearing URLs in provisioning and terminal output, while blocking errors omit underlying diagnostics and missing-operation details.

2 open issues
What changed in this PR

Removes BYO AKS preflight reporting from the Projects extension’s Foundry provisioning flow while retaining prerequisite validation and standard host integration.

Changes:

  • Remove report rendering, progress messages, follow-ups, cached text, and report-only listeners.
  • Remove non-blocking capacity recommendations and optional VM SKU lookups.
  • Update documentation and regression coverage for report-free provisioning and preview.

Extension user-contract review: blocked (16 files inspected; 0 new contract comments; 0 matched threads; prior review history unavailable).

File Description
cli/​azd/​extensions/​azure.ai.projects/​README.md Document report-free preflight behavior.
cli/​azd/​extensions/​azure.ai.projects/​internal/​provisioning/​supplied_resources_test.go Check report-free output and retained error causes.
cli/​azd/​extensions/​azure.ai.projects/​internal/​provisioning/​foundry_provisioning_provider.go Remove report state and publication callbacks.
cli/​azd/​extensions/​azure.ai.projects/​internal/​provisioning/​foundry_provisioning_provider_test.go Update provider constructor usage.
cli/​azd/​extensions/​azure.ai.projects/​internal/​provisioning/​aks_hosting.go Remove report rendering and error-report wrappers.
cli/​azd/​extensions/​azure.ai.projects/​internal/​provisioning/​aks_hosting_test.go Adapt preparation calls and remove report assertions.
cli/​azd/​extensions/​azure.ai.projects/​internal/​provisioning/​aks_hosting_compatibility_test.go Update preparation calls.
cli/​azd/​extensions/​azure.ai.projects/​internal/​onboarding/​types.go Remove report rendering and warning fields.
cli/​azd/​extensions/​azure.ai.projects/​internal/​onboarding/​types_test.go Focus tests on blocking errors and causes.
cli/​azd/​extensions/​azure.ai.projects/​internal/​onboarding/​resource_test.go Verify no SKU reads and retain redaction checks.
cli/​azd/​extensions/​azure.ai.projects/​internal/​onboarding/​resource_sdk.go Remove recommendation-only VM SKU lookups.
cli/​azd/​extensions/​azure.ai.projects/​internal/​onboarding/​resource_rules.go Remove capacity and Storage redundancy warnings.
cli/​azd/​extensions/​azure.ai.projects/​internal/​cmd/​root.go Use the standard listener without report callbacks.
cli/​azd/​extensions/​azure.ai.projects/​internal/​cmd/​project_ownership_test.go Update provider constructor usage.
cli/​azd/​extensions/​azure.ai.projects/​internal/​cmd/​preflight_report.go Delete the report listener and follow-up transport.
cli/​azd/​extensions/​azure.ai.projects/​internal/​cmd/​preflight_report_test.go Delete obsolete report-listener tests.

Review effort: Max

) (prepareErr error) {
p.preflightReport.Reset()
defer func() { prepareErr = p.preflightFailure(prepareErr) }()
func (p *FoundryProvisioningProvider) prepareBYO(ctx context.Context, source *templateSource) error {
Comment on lines +161 to 163
facts, _, err := pipeline.Preflight(ctx, plan)
if err != nil {
return err
Show preparation stages and current read or validation activity through the existing progress callback. Track active concurrent reads without changing preflight checks or deployment behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI max review requested due to automatic review settings November 23, 2026 07: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.

🟡 Changes recommended

Late lookup failures can expose credential-bearing URLs in provisioning output and logs, while blocking errors omit underlying causes and required remediation details.

3 open issues

Review effort: Max

) (prepareErr error) {
p.preflightReport.Reset()
defer func() { prepareErr = p.preflightFailure(prepareErr) }()
) error {
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

azure.ai.projects PR build

Note

This is an unsigned development build. Install it only if you trust this PR.

Install the extension:

azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10998/azure-ai-projects.zip"
  • Version: 1.1.1-pr.10998.7103093
  • Merge commit: e41d61c

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI max review requested due to automatic review settings November 23, 2026 08:18

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

Removing URL redaction allows late provisioning lookup failures to expose credential-bearing URLs in command output and broker logs.

5 open issues

Review effort: Max

Comment on lines +101 to +102
fmt.Fprintf(&message, "%s does not meet requirements. Review the %s and edit your configuration before proceeding.",
resourceType, prerequisitesLink())
Comment on lines +131 to +133
if os.Getenv("FORCE_COLOR") == "1" && os.Getenv("NO_COLOR") == "" && os.Getenv("CI") == "" &&
term != "dumb" && !strings.HasPrefix(term, "screen") && !strings.HasPrefix(term, "tmux") && knownTerminal {
return termenv.Hyperlink(prerequisitesURL, "requirements")

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-projects azure.ai.projects extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants