Skip to content

Pin native hosting validation to Ubuntu 24.04 - #22223

Merged
David Negstad (danegsta) merged 2 commits into
mainfrom
danegsta-native-validation-ubuntu-pin
Nov 12, 2026
Merged

David Negstad (danegsta) merged 2 commits into
mainfrom
danegsta-native-validation-ubuntu-pin

Conversation

@danegsta

Copy link
Copy Markdown
Member

Description

The native Linux hosting validation job fails during browser setup because ubuntu-latest selects Ubuntu 26.04, which the harness's pinned Playwright 1.58.2 does not support. This prevents the browser-backed workload, revision, and CLI Dashboard smoke scenarios from running.

Pin only the native_hosting job to ubuntu-24.04 and add a nearby compatibility comment. All smoke scenarios, cleanup assertions, dependencies, action pins, and the Windows runner remain unchanged. This is an independent fix against main, without the aspire update feature changes from #22207.

Relates to #22216, which tracks returning to ubuntu-latest once Playwright supports the newer OS; this PR does not close that issue.

Validation

  • git diff --check origin/main...HEAD — passed. A local Ruby YAML structural comparison also passed: the only semantic workflow change is the native Linux runner, and the workflow's self-trigger is retained.
  • gh run view 43291371258 --repo microsoft/aspire --json conclusion,headSha,jobs,url — confirmed the original identical pin passed both Linux and Windows validation. Linux logs confirm all three browser Dashboard smoke scenarios and their cleanup assertions passed; both evidence artifacts were uploaded.
  • Test-selection impact: this dedicated lane already triggers on its own workflow file; the existing general workflow rule retains infrastructure validation. No routing or selector behavior changes are needed.
  • No local Linux builds or E2E tests were run. Fresh validation for this independent PR is pending.

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Keep Chromium installation on an Ubuntu release supported by the workflow's pinned Playwright 1.58.2 rather than ubuntu-latest's Ubuntu 26.04 image.

Co-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22223

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22223"

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot November 12, 2026 21:49
@github-actions github-actions Bot added the area-engineering-systems infrastructure helix infra engineering repo stuff label Nov 12, 2026
@danegsta

Copy link
Copy Markdown
Member Author

/backport to release/17.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/17.0 (link to workflow run)

@github-actions

This comment has been minimized.

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 runner-pin workaround comment lacks the tracking link to #22216 and the removal condition tied to Playwright support for the newer runner image.

1 open issue
What changed in this PR

Pins Aspire’s native Linux hosting validation to Ubuntu 24.04 to avoid the Playwright browser-setup failure on Ubuntu 26.04. Returning to ubuntu-latest is tracked in #22216.

Changes:

  • Changes only the native_hosting runner to ubuntu-24.04.
  • Adds a compatibility comment; smoke scenarios, cleanup checks, action pins, and the Windows runner remain unchanged.
File Description
.github/​workflows/​native-hosting-validation.yml Pins the Linux runner and documents the Playwright compatibility constraint.

Review effort: Balanced

Commented on Playwright version compatibility with Ubuntu.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

1 / 101 PR test projects · 0 PR jobs, from 1 changed file.

Selected PR test projects (1 / 101)

Infrastructure.Tests

Selected PR jobs (0)

none


How these were chosen — grouped by what changed

📄 .github/workflows/native-hosting-validation.yml (changed)
→ 1 directly: Infrastructure.Tests

Job reasons

none


Selection computed for commit 29c6325.

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

No active review issues are reported for the Linux runner compatibility workaround.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@danegsta
David Negstad (danegsta) merged commit 5915165 into main Nov 12, 2026
51 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.1 milestone Nov 12, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch: docs_required → proven false positive (build_or_ci_only).

  • Triggered signals: pr_body_has_cli_flag_mention. Evidence: PR body snippet "git diff --check origin/main...HEAD — passed", which is validation text and not a user-facing flag.
  • The only changed file is .github/workflows/native-hosting-validation.yml, which matches .github/**. The advisory only_test_or_build_changes is true. There is no user-facing change, so no docs PR is needed.

Maddy Montaquila (maddymontaquila) pushed a commit that referenced this pull request Nov 13, 2026
Backport of #22223 to release/17.0

/cc @danegsta

## Customer Impact

N/A Test infra issue

## Testing

PR run

## Risk

Low - fixes failing test

## Regression?

N/A Test infra issue

Co-authored-by: David Negstad <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-engineering-systems infrastructure helix infra engineering repo stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants