Skip to content

Emit og:type=website for the home page and splash pages - #1984

Merged
David Pine (IEvangelist) merged 3 commits into
mainfrom
aspireagent/fix-homepage-og-type
Nov 3, 2026
Merged

David Pine (IEvangelist) merged 3 commits into
mainfrom
aspireagent/fix-homepage-og-type

Conversation

@davidfowl

Copy link
Copy Markdown
Contributor

Summary

Fixes #1416. The home page (and other splash landing pages) emitted og:type=article. getOgMetadata() already resolves website for these pages, but route-data-middleware.ts only replaced og:title and og:description in Starlight's route head, so Starlight's hardcoded og:type=article (@astrojs/starlight/utils/head.ts) was always emitted.

This adds the missing og:type upsert in optimizeOpenGraphHead(). upsertMetaEntry replaces the existing entry in place, so the page still has one og:type tag. Documentation pages keep article. The comments that described Starlight's Open Graph output are updated as well.

New tests/unit/route-data-middleware.vitest.test.ts runs the middleware against a Starlight-shaped head for the home page, a localized home page, a splash page (support), and a documentation page. Against the original middleware, the three website cases fail with article and the docs case passes.

This is metadata only, with no visual change.

Third-party links and affiliations

None

Validation

  • New middleware regression: 3 of 4 fail before the fix (article instead of website); 4 of 4 pass after.
  • Related units (route-data-middleware, page-metadata, structured-data, seo-lengths): 78 passed.
  • Full unit suite (Node, vitest.config.ts): 83 files, 1,112 passed, 1 skipped.
  • Lint steps (write-git-env, astro sync, skill digest check, eslint . --max-warnings 0): passed. Prettier check passed for the changed files.
  • Rendered <head> from astro dev, original vs fixed middleware:
    • /, /de/, /support/, /aspireconf/: article → website, with one og:type tag.
    • /get-started/what-is-aspire/ and /community/ (non-splash doc template): article both before and after.
  • Live https://aspire.dev/ and /support/ currently serve og:type=article.
  • Not run locally: production Bun build and browser E2E. CI covers those.

🤖 Posted by AspireAgent (AI Agent)

The route data middleware already computed the correct Open Graph type via
getOgMetadata() but only upserted og:title and og:description, so
Starlight's hardcoded og:type=article was emitted on every page, including
the home page. Upsert og:type in place and add middleware regression tests.

Fixes #1416

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1984. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1984 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copy link
Copy Markdown
Contributor Author

CI on a597a13e failed only in mobile-chromium shard 1/2. Eight Developer Hub layout tests (dev-browse, dev-grain, dev-layout) failed on all three attempts. Each failure screenshot shows the Microsoft WCP cookie-consent banner covering the top of the page. That banner comes from the live wcpstatic.microsoft.com script, which only shows it in regions that require consent, and these specs don't stub it. The other five shards passed with no retries (1,388 passed and 95 skipped across all six shards).

This change only replaces the og:type meta value, so I'm treating the failure as environmental, not caused by this PR. The PR stays in draft until CI is green.

🤖 Posted by AspireAgent (AI Agent)

David Pine (IEvangelist) pushed a commit that referenced this pull request Oct 30, 2026
…er (#1986)

## Summary

The Developer Hub E2E layout tests fail when a CI runner lands in a
region where Microsoft's WCP cookie-consent script shows its banner. The
banner is a fixed strip at the top of the page, and `wcp-consent.css`
pushes `.page` down by its height. The Hub specs don't stub
`wcpstatic.microsoft.com`, so in those regions eight layout assertions
fail on every attempt.

Example: [run 40999614344, mobile-chromium shard
1/2](https://github.com/microsoft/aspire.dev/actions/runs/40999614344/job/123883461177)
on #1984. All 8 failures (24 attempts including retries) show the "We
use optional cookies…" banner in their error context. The other five
shards passed.

This change adds a shared `emulateConsentNotRequiredRegion(page)` helper
to `tests/e2e/helpers.ts` that:

- aborts `wcpstatic.microsoft.com`, as `cookie-consent`,
`ui-regressions` and `live-status` already do, and
- primes `aspireConsentRequired=false`, which is the state WCP reaches
in a no-consent region.

The helper is applied to `dev-browse`, `dev-layout` and `dev-grain`.
`dev-grain` previously set only the localStorage value, which doesn't
stop the live banner. Assertions, timeouts and retries are unchanged.
Banner behavior stays covered by `cookie-consent.spec.ts` and
`cookie-dialog-layout.spec.ts`.

## Third-party links and affiliations

None.

## Validation

I reproduced the CI condition locally by serving a consent-required WCP
stand-in on `wcpstatic.microsoft.com` through Chromium host-resolver
mapping (this sandbox can't reach the real CDN). The stand-in's text,
links and buttons match the banner captured in CI. Results are on
mobile-chromium against `astro dev`:

| Test | main + banner | this PR + banner |
| --- | --- | --- |
| `dev-browse` mobile filters (`:579`) | ❌ `box.y` 418 (≤ 90) — matches
CI | ✅ |
| `dev-browse` filter positions (`:674`) | ❌ positions shift — matches
CI | ✅ |
| `dev-browse` type options (`:699`) | ❌ 908 (≤ 700) — matches CI | ✅ |
| `dev-grain` `/hub/browse/` | ❌ `elementFromPoint` false — matches CI |
✅ |
| `dev-layout` header spacing (`:459`) | ❌ 56 (expected 8) — matches CI
| ✅ |
| `dev-layout` narrow reflow (`:1105`) | ❌ 941.5 (< 900) | ✅ |
| `dev-browse` initial paint ×2 (`:131`) | ❌ 341 px offset (CI: 428) |
⚠️ 4 px |

On main without the banner, the initial-paint cases also drift 4 px
under `astro dev`. That drift is a local dev-server difference: they
pass in CI's production build. With the fix, the stub received 0
requests.

I also ran the full three specs on mobile and desktop with the banner
stand-in: 139 passed, 5 skipped, 14 failed. The failures are
pagination/URL-state drift and unreachable external images. The same
signatures fail on unchanged main without the banner in this sandbox
(`astro dev`, no external network). This PR's CI production-build matrix
is the authoritative check for those.

- `eslint . --max-warnings 0` (with `astro sync` and the skill-digest
check) passes.
- Prettier and `tsc` findings on `helpers.ts`/`dev-grain.spec.ts` are
present on main too.

**🤖 Posted by AspireAgent (AI Agent)**

Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>
Picks up #1986 (Hub E2E WCP banner isolation).

Co-authored-by: Copilot <[email protected]>
@davidfowl
David Fowler (davidfowl) marked this pull request as ready for review October 30, 2026 14:19
Copilot AI balanced review requested due to automatic review settings October 30, 2026 14:19

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 were identified for the page-specific Open Graph metadata change.

No open issues 🎉

What changed in this PR

Addresses #1416 by emitting og:type=website for home and splash pages through the existing metadata middleware, while preserving article for documentation pages.

Changes:

  • Upserts the computed Open Graph type into Starlight’s route head without adding a duplicate tag.
  • Adds regression tests for home, localized home, splash, and documentation pages.
  • Updates comments to clarify how Open Graph metadata is emitted; no visual changes.
File Description
src/​frontend/​tests/​unit/​route-data-middleware.vitest.test.ts Adds four middleware regression cases checking the type and single-tag output.
src/​frontend/​src/​route-data-middleware.ts Emits the computed og:type alongside the optimized title and description.
src/​frontend/​src/​components/​starlight/​Head.astro Clarifies metadata ownership and source references in a comment.

Review effort: Balanced

@IEvangelist

Copy link
Copy Markdown
Member

Docs PR reviewer: not applicable

Reviewed PR #1984 at cc005541ae53ad0d6ce99c722d88dcbd531bb9d2 (base: main). The diff changes Open Graph metadata middleware, its unit tests, and an implementation comment; it adds or edits no documentation prose or runnable examples.

Phase A — claims verification: No documentation claims found (0 claims); no Aspire, Community Toolkit, or Azure SDK source verification applies.

Phase B — doc-tester: Not applicable: no changed documentation routes, instructions, or examples to exercise. No docs server or unrelated page tests were run. Runtime metadata behavior is reserved for the subsequent code review.

Phase C — report: Documentation applicability assessment complete; no documentation-accuracy findings. This is not a formal approval or change-request review.

@IEvangelist

Copy link
Copy Markdown
Member

Code review

Reviewed all three changed files at cc005541ae53ad0d6ce99c722d88dcbd531bb9d2, targeting main. No high-confidence runtime correctness defect found. One test-coverage finding remains.

High — regression coverage

src/frontend/tests/unit/route-data-middleware.vitest.test.ts:74-117 — Add an emitted-HTML regression assertion for the OG type being fixed. Confidence: 10/10 that this coverage is absent; this is a test gap, not an observed runtime failure.

The four new cases correctly assert that the middleware mutates a mocked Starlight head to one website tag for root/localized splash home pages and other splash pages, and preserves one article tag for docs. However, the existing tests/e2e/og-metadata.spec.ts never asserts og:type. Consequently, the key social-crawler-visible result is not guarded through the real Starlight route-data/head rendering integration.

Suggested fix: extend the existing request-based OG metadata E2E spec to parse returned HTML for /, a localized homepage, a non-home splash page such as /support/, and a documentation page; assert exactly one meta[property="og:type"] with website/article as appropriate. These assertions can use the existing desktop/tablet/mobile projects without adding browser interaction.

Correctness and test coverage

  • getOgMetadata() already computes the intended type from normalized entry IDs, locale stripping, and the splash template. The middleware now publishes that existing result rather than introducing a second classification rule.
  • upsertMetaEntry() updates an existing matching property or inserts a missing one; it does not append another tag to the normal single-tag Starlight head. Repeated invocation remains idempotent. It is not a general cleanup of arbitrarily pre-existing duplicates, and this PR does not introduce that limitation. The wrapper's DefaultHead renders the mutated route head and does not separately emit og:type.
  • The three relevant unit suites passed in the inspected-head CI run: new middleware tests 4/4, metadata helper tests 60/60, and existing hreflang middleware tests 11/11. Full CI unit result: 1,123 passed, 1 skipped, 84 files passed.
  • Existing OG E2E coverage exercises other metadata, but not the new emitted type (finding above). No visible markup, layout, interaction, or accessibility behavior changes, so no additional axe scenario is warranted for this metadata-only change.

Validation evidence and limits

CI run 41066218319 is confirmed to target the exact inspected SHA and succeeded, including frontend build/validation and all six desktop/tablet/mobile E2E shards. The earlier author's cookie-banner explanation was not used to dismiss failures; the current-head checks are green.

Local focused command attempted from src/frontend: bun run test:unit tests/unit/route-data-middleware.vitest.test.ts tests/unit/page-metadata.vitest.test.ts tests/unit/route-data-middleware-hreflang.vitest.test.ts. Could not start: Bun is not installed/on PATH; this worktree also has no installed dependencies. No dependency/global tool installation, local site build, or local E2E run was performed. Validation above relies on the exact-head CI logs and source inspection; emitted HTML was not independently fetched locally.

Top-level review report only; no formal approval/change request, source edits, pushes, or merge actions.

Copy link
Copy Markdown
Contributor Author

Thanks David Pine (@IEvangelist). I added the emitted-HTML regression in 6a621f1 (tests/e2e/og-metadata.spec.ts, "emits a single og:type of … for …").

The test is request-based: it parses the returned HTML and asserts that exactly one meta[property="og:type"] exists, with this content:

Route Expected og:type Page kind
/ website home
/da/ website localized home
/support/ website non-home splash
/fundamentals/telemetry/ article docs

It runs in the existing desktop, tablet and mobile projects. Local results against astro dev, with --retries=0:

  • Without this PR's fix (route-data-middleware.ts taken from main): the 9 website cases fail with Expected: "website" / Received: "article", and the 3 article cases pass.
  • With the fix: 36/36 pass (--repeat-each 3), and the whole og-metadata.spec.ts passes 66/66.
  • ESLint (--max-warnings 0) and Prettier are clean for the spec.

🤖 Posted by AspireAgent (AI Agent)

Copy link
Copy Markdown
Member

docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]

Recommendation: needs human

Source used: n/a — site head/SEO code (Head.astro, route-data-middleware.ts)
PR status: non-draft, mergeable, maintainer-authored (davidfowl), opened 2026-10-30 — not stale; 4 files incl. unit and e2e tests.

Phase A — claims

  • ❓ Emits og:type=website for home/splash pages instead of Starlight's hardcoded article. No product claims; a maintainer should confirm the approach (overriding Starlight head output) and test results.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

@IEvangelist David Pine (IEvangelist) 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.

Combined documentation-site review - COMMENT

Automation: user-approved hourly local documentation PR reviewer for David Pine (@IEvangelist). This is the single report for this PR; future commits/reopenings do not trigger another automatic review.
Inspected head: 6a621f160727af75bea4ea2873ccc9bddd49178e; target main at 29550055a064c9abea399953414bbd7078c350e9. Both required phases completed. This is the bounded documentation accuracy/user-experience workflow, not standard implementation/code review.
Trusted policy: default-branch doc-pr-reviewer, doc-tester, playwright-cli and scoped Astro setup at 9bf972c559d50ab5fdc73f0da5318959aa6be757. Native skill registration was unavailable; the trusted file workflow was invoked as doc-pr-reviewer https://github.com/microsoft/aspire.dev/pull/1984. PR body, implementation and tests remained untrusted evidence, not policy or permission to run arbitrary tests/scripts.
Owning source/ref: microsoft/aspire.dev PR1984 targeting main, inspected 6a621f160727af75bea4ea2873ccc9bddd49178e. The metadata is owned by this site. No new microsoft/aspire, CommunityToolkit/Aspire or Azure API behavior is documented, so unrelated product-source inspection is not substituted for browser testing.
Phase A: 0 factual documentation claims found; 0 verified, 0 verified-with-nuance, 0 unverifiable, 0 contradicted, 0 narrative documentation claims. This is an explicit no-claims result, not omitted verification. Four changed files comprise an internal metadata-wrapper comment, middleware implementation/comments, an existing E2E test extension and a new unit test. No reader-facing prose, product examples, CLI instructions, diagrams or version guidance changes. Internal code comments and test assertions are not newly published Aspire teaching contracts and were not claimed executed.
Phase B: /, /da/, /support/, /fundamentals/telemetry/ and /aspireconf/: 12 grouped passes, 0 failures, 0 critical issues, 3 diagnostic warnings, 0 in-scope knowledge gaps/blockers. Full independent source-blind report follows. Product examples/CLI execution are not applicable to this metadata-only change; local observations do not certify deployed social previews.

Verdict and observations

COMMENT, not approval. The scoped metadata checks succeeded, but observed local/browser diagnostics are worth preserving and their causality was not established. They are not silently dismissed as unrelated or represented as a clean console/baseline. No contradicted documentation claim or critical issue establishes REQUEST_CHANGES under this skill. No approval is issued while these reported caveats remain unresolved.

Observed metadata: one og:type was delivered on all five directly loaded routes: website on home, Danish home, Support and conference splash, and article on telemetry. Titles/descriptions remained relevant and canonical/OG URL/locale metadata agreed. Actual ordinary client navigation/history refreshed page-specific metadata without duplicate or stale type. The visible Danish language chooser used a full-document navigation, not a falsely claimed client-only transition. Desktop/mobile readability and bounded menu/anchor actions worked. These are browser observations, not proof copied from PR tests.

W01: scoped standalone server returned live-status API404/WebSocket failures. W02: event-page browser GPU preference advisory. W03: aborted stylesheet/article requests during navigation, with successful subsequent content observations. No persistent page/metadata failure was observed, and no clean baseline established PR causation or conclusively established harmlessness. Full diagnostic details and limits are preserved below rather than promoted into speculative inline code findings.

Phase A - frozen no-claims artifact

Changed-surface evidence and source boundaries

No factual documentation claims were added or changed. Four changed files comprise a metadata wrapper comment, middleware implementation/comments, an existing E2E test extension and a new unit test. No reader-facing prose, product examples, CLI instructions, diagrams or version guidance changes. Internal code comments and test expectations describe implementation intent; they are not published Aspire teaching contracts and were not inflated into product claims or treated as runtime success. The affected metadata and reader experience require independent browser validation despite this explicit zero-claims Phase A.

  • src/frontend/src/components/starlight/Head.astro:73-82: Changed internal comment describes Starlight route metadata; emitted metadata wrapper read in full. No rendered prose change.
  • src/frontend/src/route-data-middleware.ts:45-54,117-140: Changed comments and og:type upsert read with complete middleware. Scope is site metadata rather than a new Aspire product contract.
  • src/frontend/tests/e2e/og-metadata.spec.ts:79-97: Added assertions exercise root/localized/splash/article metadata shape. Full file read, not executed or accepted as browser proof.
  • src/frontend/tests/unit/route-data-middleware.vitest.test.ts:1-117: New mocked route-head unit scenarios read, not executed or counted as user observations.

Version placeholders: No added/edited current Aspire version value, SDK/package guidance or copy/paste product example; placeholder finding not applicable.

All four changed files were read in full at the head pin, along with the owning page-metadata helper. This establishes affected scope, not a source-blind runtime verdict. No implementation-bug list was substituted for doc-pr-reviewer.

Execution boundaries: initial existing Astro7.3.2 rejected this head's configuration. An isolated frozen-lockfile Bun install with --ignore-scripts restored locked Astro7.4.1; no tracked manifests/source were edited. Root bun run dev then followed trusted setup after confirming required data and unchanged skill digests. No fallback data ingestion, lifecycle hook, test suite, product CLI/AppHost, certificate/trust operation, cloud/container provisioning, full site build, push, merge or remote branch change was run. No production crawler, share submission, external AI destination, full locale/browser matrix or accessibility audit was certified. This bounded local review does not certify external caches/previews.

Phase B - independent source-blind doc-tester report (complete report)

Documentation Test Report

Focus Area: Independent, source-blind Phase B for #1984 — “Emit og:type=website for home/splash pages.”
Date: 2026-11-03
Tester: doc-tester agent, isolated from Phase A
Status: Complete for the supplied bounded local-browser acceptance scope; not production or cross-service certification.
Served ref: 6a621f160727af75bea4ea2873ccc9bddd49178e, targeting main; identical git rev-parse HEAD before and after.
Server: http://localhost:4321/, parent-owned PID 43944. Actual Astro 7.4.1 and prior isolated dependency recovery were supplied environment context, not independently established by reading implementation.
Browser: Global playwright-cli, help verified; Edge/msedge, named session pr1984, in-memory profile, existing .playwright\cli.config.json. Desktop 1440 × 900; mobile 375 × 812.

Isolation and method

Read the complete four trusted policy files only at policy commit 9bf972c559d50ab5fdc73f0da5318959aa6be757: doc-pr-reviewer, doc-tester, playwright-cli skills, and Astro instructions. Did not open PR body, diff, implementation, tests, source documentation files, source repositories, or Phase A results. Supplied changed filenames were used only as scope context. Browser-delivered DOM, visible content, accessibility snapshots, screenshots, and browser diagnostics supplied the observations.

Metadata expectations below come from the supplied task title/acceptance scope and visible page role, not reader-facing prose teaching Open Graph. Support is explicitly in the supplied website-metadata acceptance scope; its article-like prose alone is not being used to infer its implementation template.

All browser actions used playwright-cli through PowerShell. run-code inspected public DOM and performed ordinary locator clicks/history/viewport changes; no forced click, handler invocation, private API, response mocking, direct Playwright import, or browser MCP. No product CLI, AppHost, sample, full build, suite test, package installation, clipboard interaction, or share/AI destination was used.

Summary

Counts are grouped checks/findings, not raw assertions, pages, console messages, or requests.

Category Passed Failed Warnings
Metadata/content acceptance (P01–P07) 7 0 0
Reader navigation and links (P08–P09, P12) 3 0 0
Bounded desktop/mobile readability (P10–P11) 2 0 0
Local/browser diagnostics (W01–W03) 0 0 3
Product code examples N/A N/A N/A
Product CLI commands N/A N/A N/A
Total applicable 12 0 3

Critical issues: 0. Documentation knowledge gaps: 0. Unresolved blockers: 0. All three warnings are observed local/browser diagnostics, with no established PR-regression attribution. One automation locator failure was recovered and retained, not counted as a product defect.

Routes and initial-load observations

Each route returned HTTP 200 on direct browser navigation. Each delivered exactly one og:type, one canonical, and one each of the relevant OG title/description/URL/locale and regular description entries captured in initial-metadata.txt.

Route Visible role/heading og:type html lang / og:locale Canonical = og:url
/ Landing: “Compose distributed apps in code.” website en / en https://aspire.dev/
/da/ Danish landing: “Sammensæt distribuerede apps i kode.” website da / da https://aspire.dev/da/
/support/ “Aspire support policy and lifecycle” website en / en https://aspire.dev/support/
/fundamentals/telemetry/ Ordinary documentation: “OpenTelemetry and distributed tracing in Aspire” article en / en https://aspire.dev/fundamentals/telemetry/
/aspireconf/ Event splash: “That's a wrap!” / Aspire Conf website en / en https://aspire.dev/aspireconf/

Representative titles/descriptions:

  • /: document title Aspire: Compose distributed apps in code; og:title is the shorter relevant Aspire. OG and regular descriptions both read: “Model, run, observe, and deploy distributed applications with Aspire's agent-ready, code-first application model.”
  • /da/: document title Aspire — Din stack, forenklet; og:title is Aspire. Both descriptions read: “Tilføj Aspire til din stack og strømlin din udviklingsworkflow med kode-først kontrol, modularitet og observability.” Danish metadata agrees with the visible localized landing and locale URL; a full linguistic translation audit was not performed.
  • /support/: document title Aspire support policy and lifecycle | Aspire; OG title is Aspire support policy and lifecycle. Both descriptions concern the official support policy, release cadence, lifecycle dates, and Modern Lifecycle guidance.
  • /fundamentals/telemetry/: document title ends | Aspire; OG title uses · Aspire. Both descriptions concern correlating application logs, traces, and metrics across local services. Different title punctuation is not a stale-page or duplication failure.
  • /aspireconf/: document title Aspire Conf — Thank you for watching!; OG title Aspire Conf 2026 — celebrating the Aspire 13.3 release. Both descriptions invite watching the Aspire Conf replays celebrating Aspire 13.3. The visible page thanks viewers and offers replay sessions, so these descriptions remain relevant rather than implying an upcoming event.

Critical Issues

None observed within the supplied metadata and bounded reader-navigation scope. This is not a finding that unchanged product examples compile or that production share crawlers have been validated.

Warnings

W01: Local live-status service is unavailable

Location: Browser diagnostics while visiting the scoped local routes.
Type: Environment/runtime observation; regression attribution unestablished.
Evidence:

[ERROR] Failed to load resource: the server responded with a status of 404 (Not Found) @ http://localhost:4321/api/live/:0
[WARNING] WebSocket connection to 'ws://localhost:4321/api/live/ws' failed: WebSocket is closed before the connection is established.
[WARNING] [live-status] Live API not found (404); live updates disabled until reload.

The primary browser context recorded 12 error messages and 26 warning messages: 12 repetitions of the above error/two-warning group plus the two GPU warnings below. The reopened controls-only context recorded one more live-status error/two-warning group. Thus 13 live API errors and 26 associated warnings were observed across the two contexts. These do not represent 13 separate documentation defects. Source filenames appearing in browser stack locations were not opened.

User impact: Live-status updates were unavailable locally. Scoped pages, metadata, ordinary links, history, locale selection, and tested mobile controls still worked.
Suggestion: Recheck the live-status feature in its configured deployment if relevant; do not attribute its local absence to this metadata PR without independent evidence.

W02: Browser GPU preference advisory on the event splash

Location: Browser console associated with the two /aspireconf/ visits.
Evidence: Two occurrences of:

[WARNING] The powerPreference option is currently ignored when calling requestAdapter() on Windows. See https://crbug.com/369219127

User impact: No blocked content or metadata failure observed in the screenshot and DOM inspection.
Suggestion: Treat as a browser/platform advisory unless a user-visible rendering failure is independently reproduced.

W03: Aborted requests appear during the navigation exercise

Location: .playwright-cli\network-2026-11-03T11-35-05-224Z.log.
Evidence: Ten [FAILED] net::ERR_ABORTED request entries: eight __uno.css?... requests and two /fundamentals/telemetry/ requests. The same article also had successful HTTP 200 requests; its initial and subsequent content/metadata observations completed successfully.
User impact: No persistent unstyled page, failed destination, or metadata mismatch was observed. A causal explanation was not established.
Suggestion: Preserve the trace as an environmental/navigation caveat; investigate further only if persistent loading or styling failure is reproduced. Do not silently classify every aborted entry as either a regression or a certified harmless result.

Passed Checks

  1. P01 — Route availability: All five scoped initial browser navigations returned HTTP 200 and displayed meaningful content, not an error page.
  2. P02 — Website classification: /, /da/, /support/, and /aspireconf/ emitted website under the supplied acceptance scope.
  3. P03 — Article preservation: /fundamentals/telemetry/ emitted article and retained it after navigation/history and an in-page anchor.
  4. P04 — Singleton metadata: Initial observations and recorded client-navigation states each contained one og:type, not conflicting website/article duplicates.
  5. P05 — Relevant titles/descriptions: Titles and descriptions remained nonempty and relevant to each visible page; OG descriptions matched regular descriptions in the recorded states. Shorter home OG titles and differing site-title separators are reported explicitly above, not treated as exact-string equivalence.
  6. P06 — Canonical consistency: One canonical and the OG URL used the matching production-origin path, including /da/; browser testing itself stayed on localhost. Anchor navigation retained the canonical article URL without the fragment.
  7. P07 — Locale consistency: Danish initial load and visible-language-choice navigation produced lang=da, og:locale=da, Danish description, and /da/ canonical/OG URL. English routes used en and their own matching canonical paths.
  8. P08 — Client navigation/history: Ordinary links traversed /aspireconf/ → /support/ → / → /fundamentals/telemetry/ → /, followed by back to the article and forward to home. Recorded performance.timeOrigin stayed 1793705601463.4 across that sequence, distinguishing same-document/client navigation from separate direct loads. Each recorded destination had the correct type and refreshed page-specific metadata; no stale article or splash metadata was observed.
  9. P09 — Visible language choice and scoped links: Opened the visible “Select language” combobox and clicked the visible “Dansk” option. This changed timeOrigin to 1793705663691.9, so this particular locale transition was a full document navigation, not claimed as proof of client-only navigation into Danish. The Danish footer's ordinary Support link then navigated client-side to English Support, with English metadata replacing Danish metadata. Subsequent logo/home and OpenTelemetry concepts links also worked on mobile. Clicked internal route links were site-relative with trailing slashes and resolved; this was not a full-site or all-links crawl.
  10. P10 — Desktop readability: Inspected browser screenshots of the home, support, telemetry, and conference pages and snapshots/visible text of the localized home. Headers and primary content rendered; marketing, policy, documentation, and replay-page roles were distinguishable. This was bounded visual observation, not an accessibility or contrast audit.
  11. P11 — Mobile readability: At 375 × 812, Danish home, Support, and telemetry retained readable headings/body text and navigable controls. Recorded document width equaled 375 for all three; no page-level horizontal overflow was observed in those states. Metadata remained appropriate after responsive resizing/navigation.
  12. P12 — Mobile menu and section navigation: After resolving the automation ambiguity documented below, the article's visible Menu button toggled aria-expanded from true to false through ordinary clicks. Clicking “Section titled ‘The three pillars of observability’” reached /fundamentals/telemetry/#the-three-pillars-of-observability, whose DOM target existed; one article type and the unfragmented canonical persisted.

Execution failures and recovery

  • The first five-route evidence loop completed navigation/screenshots but used console.log inside run-code, which did not return the observation array in CLI output. That attempt is retained as initial-routes.txt; the complete direct-navigation loop was repeated using a return value, producing initial-metadata.txt. No failed output was promoted into metadata evidence.
  • The first mobile-menu locator getByRole('button', { name: 'Menu', exact: true }) failed strictness because it matched both the mobile sidebar button and an Astro development-toolbar button. This was an automation selector ambiguity, not a failed user click or evidence of a metadata regression. mobile-controls.txt preserves the full substantive error, with terminal ESC controls escaped as literal \u001B.
  • After the first own context had been closed/deleted, reopened only pr1984, then used the public DOM attributes exposed in that error: button[aria-label="Menu"][aria-controls="starlight__sidebar"]. Ordinary, unforced clicks and the section link succeeded (mobile-controls-retry.txt). The reopened context was also closed/deleted.
  • Parent-supplied startup history included a stale 7.3.2 configuration failure recovered before testing by an isolated frozen-lockfile Bun install with ignored scripts. This tester did not perform or independently reproduce that preparation. No additional startup failure or toolbar exception was observed by this tester; the actual observed diagnostics above are retained without suppressing the preparation caveat.

Knowledge gaps and limitations

Documentation knowledge gaps: 0 in this scope. No missing product command or example prerequisite is manufactured for unchanged articles. Open Graph semantics and the requested route classifications are supplied test acceptance criteria, not something claimed to have been taught by the pages. Product CLI and code-example execution are not applicable to this metadata-only change.

Coverage boundaries:

  • No production build or deployed artifact, remote crawler, search index, Open Graph validator, social/share service, AI site, or actual share submission was tested. Local DOM metadata does not certify external preview behavior or caches.
  • No complete locale matrix, all-routes/all-links audit, entire article workflow, browser matrix, JavaScript-disabled navigation, full accessibility audit, or mobile event-page walkthrough was performed.
  • /aspireconf/ was directly loaded and used as a client-navigation starting point; client navigation into it was not exercised. /da/ was directly loaded and reached through the actual full-document language chooser; no synthetic link or private routing API was created to force a client-only Danish transition.
  • Embedded YouTube content on the conference page initiated its ordinary third-party requests, visible in the network evidence. The tester did not click a share/AI destination, invoke a remote write API, post GitHub content, or submit forms. Such automatic page requests are not evidence of cross-service share validation.

Recommendations

  1. No critical metadata correction was identified by this isolated tester.
  2. Carry W01–W03 as local/browser caveats, not unsupported PR defects. No unrelated doc-writer task is warranted by these observations.
  3. If external preview behavior is a release criterion, validate the deployed page and an explicitly authorized crawler/share service separately. This remains an honest coverage boundary, not a local pass.
  4. Phase C should preserve this report verbatim alongside the independently frozen Phase A result; this report does not select or post a GitHub verdict.

Evidence and cleanup

Evidence is retained exclusively in the assigned pr-1984-test output directory outside the checkout:

  • initial-metadata.txt: complete five-route initial DOM observations and HTTP statuses, including alternate locale links.
  • initial-*.png, home-desktop.yaml, aspireconf-desktop.yaml: initial rendered evidence.
  • client-navigation.txt, client-home.yaml: actual same-document link/history observations.
  • language-options.yaml, locale-mobile.txt, client-da-desktop.png, mobile-da.png, mobile-support.png, mobile-telemetry.png, mobile-telemetry.yaml: visible locale choice and responsive observations.
  • mobile-controls.txt, mobile-controls-retry.txt, mobile-menu-open.png: retained failed selector and successful retry.
  • .playwright-cli\console-2026-11-03T11-35-05-069Z.log, .playwright-cli\console-2026-11-03T11-35-23-495Z.log, .playwright-cli\network-2026-11-03T11-35-05-224Z.log: complete captured warning/error groups and network evidence.
  • browser-close.txt, browser-delete-data.txt, final-browser-close.txt, final-browser-delete-data.txt: own-context cleanup confirmations.

Both pr1984 contexts were closed; delete-data reported no user data for the in-memory session. No auxiliary browser context was created. Parent server PID 43944 was confirmed still present and left untouched. No checkout file, manifest, config, branch, system setting, shared browser database, certificate, or trust state was edited by this tester. No GitHub writes were made. HEAD remained exactly the assigned SHA. Evidence is intentionally retained for Phase C, not deleted.

evidence-manifest.json records SHA256 for retained evidence. freeze-summary.json records the report hash, grouped counts, scope, and cleanup. The report and freeze summary are hashed separately to avoid a self-referential manifest.

@IEvangelist
David Pine (IEvangelist) merged commit 4196e2a into main Nov 3, 2026
19 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the aspireagent/fix-homepage-og-type branch November 3, 2026 13:09
David Pine (IEvangelist) pushed a commit that referenced this pull request Nov 3, 2026
## Summary

The **Get started** sidebar has a Glossary entry (`link:
'/hub/glossary/'` in `config/sidebar/docs.topics.ts`). Starlight adds
the active locale to sidebar links, so every localized docs page links
to `/de/hub/glossary/`, `/ja/hub/glossary/` and so on. The Hub is
English-only and those pages aren't generated, so the link returns a
404. For example, https://aspire.dev/de/get-started/install-cli/
currently renders `href="/de/hub/glossary/"`, and
`https://aspire.dev/de/hub/glossary/` returns **404**.

`route-data-middleware.ts` already removes the locale from sidebar links
to API reference pages. This PR extends that same sidebar pass: when a
localized sidebar href resolves to a default-locale-only route
(`isDefaultLocaleOnlyPath`, covering `/hub/**`, API reference and
individual samples), the locale prefix is stripped. Links to translated
docs pages keep their locale.

`src/utils/default-locale-only-routes.ts` is byte-identical to the copy
in #1987 and #1988, and the import is identical, so the PRs combine
without conflicts. I trial-merged this branch with #1984, #1987 and
#1988 locally: there were no conflicts and all 1143 unit tests passed on
the combined tree.

There is no visual change; only link targets change.

## Third-party links and affiliations

None.

## Validation

- New regression test
`tests/unit/route-data-middleware-sidebar-locale.vitest.test.ts` (3
tests):
- Before the fix: 1 failed (`/de/hub/glossary/`, `/ja/hub/`,
`/zh-cn/reference/samples/aspire-shop/` stayed localized) and 2 passed
(control cases).
  - After the fix: 3 of 3 pass.
- Full unit suite (`vitest run --config vitest.config.ts`): 83 files,
1111 passed, 1 skipped.
- Lint (`astro sync`, `compute-skill-digests --check`, `eslint .
--max-warnings 0`) passes, and Prettier check passes on the changed
files.
- Rendered on `astro dev`:
- `/de/get-started/install-cli/` and `/ja/fundamentals/telemetry/` now
render only `href="/hub/glossary/"`.
  - `/de/get-started/resources/` remains localized.

**🤖 Posted by AspireAgent (AI Agent)**

---------

Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>
Alistair Matthews (alistairmatthews) pushed a commit that referenced this pull request Nov 10, 2026
…er (#1986)

## Summary

The Developer Hub E2E layout tests fail when a CI runner lands in a
region where Microsoft's WCP cookie-consent script shows its banner. The
banner is a fixed strip at the top of the page, and `wcp-consent.css`
pushes `.page` down by its height. The Hub specs don't stub
`wcpstatic.microsoft.com`, so in those regions eight layout assertions
fail on every attempt.

Example: [run 40999614344, mobile-chromium shard
1/2](https://github.com/microsoft/aspire.dev/actions/runs/40999614344/job/123883461177)
on #1984. All 8 failures (24 attempts including retries) show the "We
use optional cookies…" banner in their error context. The other five
shards passed.

This change adds a shared `emulateConsentNotRequiredRegion(page)` helper
to `tests/e2e/helpers.ts` that:

- aborts `wcpstatic.microsoft.com`, as `cookie-consent`,
`ui-regressions` and `live-status` already do, and
- primes `aspireConsentRequired=false`, which is the state WCP reaches
in a no-consent region.

The helper is applied to `dev-browse`, `dev-layout` and `dev-grain`.
`dev-grain` previously set only the localStorage value, which doesn't
stop the live banner. Assertions, timeouts and retries are unchanged.
Banner behavior stays covered by `cookie-consent.spec.ts` and
`cookie-dialog-layout.spec.ts`.

## Third-party links and affiliations

None.

## Validation

I reproduced the CI condition locally by serving a consent-required WCP
stand-in on `wcpstatic.microsoft.com` through Chromium host-resolver
mapping (this sandbox can't reach the real CDN). The stand-in's text,
links and buttons match the banner captured in CI. Results are on
mobile-chromium against `astro dev`:

| Test | main + banner | this PR + banner |
| --- | --- | --- |
| `dev-browse` mobile filters (`:579`) | ❌ `box.y` 418 (≤ 90) — matches
CI | ✅ |
| `dev-browse` filter positions (`:674`) | ❌ positions shift — matches
CI | ✅ |
| `dev-browse` type options (`:699`) | ❌ 908 (≤ 700) — matches CI | ✅ |
| `dev-grain` `/hub/browse/` | ❌ `elementFromPoint` false — matches CI |
✅ |
| `dev-layout` header spacing (`:459`) | ❌ 56 (expected 8) — matches CI
| ✅ |
| `dev-layout` narrow reflow (`:1105`) | ❌ 941.5 (< 900) | ✅ |
| `dev-browse` initial paint ×2 (`:131`) | ❌ 341 px offset (CI: 428) |
⚠️ 4 px |

On main without the banner, the initial-paint cases also drift 4 px
under `astro dev`. That drift is a local dev-server difference: they
pass in CI's production build. With the fix, the stub received 0
requests.

I also ran the full three specs on mobile and desktop with the banner
stand-in: 139 passed, 5 skipped, 14 failed. The failures are
pagination/URL-state drift and unreachable external images. The same
signatures fail on unchanged main without the banner in this sandbox
(`astro dev`, no external network). This PR's CI production-build matrix
is the authoritative check for those.

- `eslint . --max-warnings 0` (with `astro sync` and the skill-digest
check) passes.
- Prettier and `tsc` findings on `helpers.ts`/`dev-grain.spec.ts` are
present on main too.

**🤖 Posted by AspireAgent (AI Agent)**

Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.

Homepage emits og:type=article; should be website

3 participants