Skip to content

Track Components E2E portability across newer Linux images #70767

Description

@richlander

Summary

Track the test assumptions exposed by moving Components E2E coverage from the Ubuntu 22.04 host to the Azure Linux 4 Chrome container in #70689.

We should support ICU and other distribution components moving forward, not introduce a long-term dependency on an ICU version or keep an older distribution solely to preserve test expectations. This issue tracks test portability; it does not propose changing shipping globalization behavior or shipping NativeAOT ABI requirements.

Evidence

The Ubuntu control #70766 originally reversed only the infrastructure change. Its tested source tree matched the main base; no application or test code differed between the compared runs.

The existing targeted Selenium suite reproduced all seven failures locally: 7 failed, 4 passed, no skips. Every TRX case was inspected. Local applications were untrimmed; the runner subsequently crashed during child-process cleanup after writing complete results. Independent live Blazor probes exercised the native event and navigation producers.

Work items

  • Make the three globalization tests tolerate equivalent AM/PM separator spacing across host and WASM globalization data, without pinning ICU. Preserve culture selection, parsed values, round-tripping, and exact invariant input-format assertions. All 12 en-US/fr-FR and Server/WASM rows passed locally and in consumer CI run 1693856.
  • Make DragDrop_CanTrigger independent of implicit window dimensions and font-driven scrolling. The default viewport originally failed 10/10 per mode. Native Selenium pre-drag scrolling now produces dragstart without scrolling after pointerdown, 10/10 per mode; both existing test cases pass.
  • Make QuickGridTest.CanCloseColumnOptionsByBlurring click a known outside target rather than relying on the table's in-view center. The original click landed inside the popup (10/10 failures); the explicit outside-target click preserves the popup-absence assertion and passes.
  • Synchronize ServerRoutingTest.NavigationLock_HistoryNavigationWorks_AfterRefresh with the existing lock-ready signal before Back. Apply the same synchronization at the two newly failing seams, NavigationLock_CanBlockNavigation_ThenContinue and NavigationLock_RemovesLock_WhenDisposed, including both locks and actual DOM removal after disposal. All six Server/WASM routing cases pass locally. This is not an Azure Linux-only defect: earlier history trials also reproduced it with Ubuntu production Chrome against the same server.
  • Validate the completed changes in the consumer CI before treating Run Components E2E tests in Chrome container #70689 as merge-ready.

Globalization failure

The following WebAssemblyGlobalizationTest methods failed for culture: "en-US":

  • CanSetCultureAndParseCultureSensitiveNumbersAndDates
  • CanSetCultureAndParseCultureInvariantNumbersAndDatesWithInputFields
  • CanSetCultureAndParseCultureInvariantNumbersAndDatesWithFormComponents
Expected: 3/4/1985 12:00:00\u202FAM
Actual:   3/4/1985 12:00:00\u0020AM

The test host derives expectations from its CultureInfo, while the application formats with WASM globalization data. An identical-runtime comparison observed ICU 77.1 on Azure Linux using U+202F and ICU 70.1 on Ubuntu using U+0020. Both are legitimate formatting variations. The fr-FR rows passed.

Runtime precedents for evolving ICU/CLDR data

These merged runtime PRs demonstrate updating tests for supported globalization-data changes rather than holding the environment to an older ICU version:

Both descriptions were checked against the merged PRs and their test diffs. The timezone example concerns ICU's Windows-to-IANA mappings, not a tzdata offset or DST-rule change.

Browser environment and limits

Controlled same-version Chrome 158 comparisons isolated a 57px viewport reduction from Chrome-for-Testing's extra UI compared with production Chrome. Liberation versus Noto fonts also changed layout. Browser versions, fonts, and viewport dimensions were not logged by the Ubuntu CI run, so its exact executed environment remains unmeasured.

Repeat counts describe only the exercised conditions, not cross-machine failure probabilities. Do not fix these failures by downgrading packages, adding arbitrary sleeps, quarantining the tests, or globally normalizing all whitespace.

ICU fix and validation

The ICU-only fix was pushed to #70689 in commit a5eab590ab8b4c6857227d14a953121897843f25:
a5eab59

NormalizeAmPmSpacing accepts U+00A0 and U+202F as equivalent to U+0020 only immediately after a digit and before the complete AM or PM designator. Other whitespace, numeric formatting, date/time content, and invariant input values remain exact. No ICU pin, package change, shipping framework change, or test quarantine was introduced.

Before the fix, each of the three en-US WASM rows failed with the expected U+202F/U+0020 mismatch in the complete baseline TRX. After the fix, each method below passed all four Server/WASM and en-US/fr-FR combinations:

Method Passed rows
CanSetCultureAndParseCultureSensitiveNumbersAndDates 4/4
CanSetCultureAndParseCultureInvariantNumbersAndDatesWithInputFields 4/4
CanSetCultureAndParseCultureInvariantNumbersAndDatesWithFormComponents 4/4

All commands below ran from /repo in the immutable Azure Linux CI image above, after source ./activate.sh. The worktree was mounted outside its host ancestor's analyzer configuration. Process-local polling file watchers avoided the shared host's inotify-instance limit; the container used --init. No shared host settings were changed.

Build (passed, exit 0; zero warnings/errors):

dotnet build src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj --no-restore -c Release -p:UseMonoRuntime=false -p:UseIisNativeAssets=false -p:TestTrimmedApps=false -m:2 -v:q

Formatting (passed, exit 0):

dotnet format whitespace --folder /repo/src/Components/test/E2ETest/Tests --include GlobalizationTest.cs --verify-no-changes --verbosity quiet

Tests (passed, exit 0; 12 passed, zero failed/skipped; complete TRX parsed and every expected class/method/culture combination verified):

dotnet test src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj --no-build -c Release -p:UseMonoRuntime=false -p:UseIisNativeAssets=false -p:TestTrimmedApps=false --filter "FullyQualifiedName~CanSetCultureAndParseCultureSensitiveNumbersAndDates|FullyQualifiedName~CanSetCultureAndParseCultureInvariantNumbersAndDatesWithInputFields|FullyQualifiedName~CanSetCultureAndParseCultureInvariantNumbersAndDatesWithFormComponents" --logger "trx;LogFileName=icu-compat-green.trx" --results-directory /evidence/icu-compat-green

The ICU-only local validation used untrimmed test applications and did not claim to resolve the browser failures. Subsequent consumer CI run 1693856 passed all 12 globalization rows but failed five browser cases: DragDrop in both modes, QuickGrid blur, and the two server navigation-lock cases listed above. The previous history-after-refresh case passed in that run.

Browser fixes and validation

The browser repairs were pushed to #70689 in commit b5d5116b0dd0edd719326498079e47d820ad4f98:
b5d5116

Only three test files changed (8 added lines, 1 removed line). Existing assertions, the ICU fix, browser defaults, package versions, and shipping code were preserved.

Requirement Passing existing cases
Native pre-drag scrolling EventTest.DragDrop_CanTrigger, ServerEventTest.DragDrop_CanTrigger
Explicit outside popup click QuickGridTest.CanCloseColumnOptionsByBlurring
Both locks ready before navigation RoutingTest.NavigationLock_CanBlockNavigation_ThenContinue, inherited ServerRoutingTest case
Lock ready before blocking; DOM removed before subsequent navigation RoutingTest.NavigationLock_RemovesLock_WhenDisposed, inherited ServerRoutingTest case
Lock ready before Back after refresh RoutingTest.NavigationLock_HistoryNavigationWorks_AfterRefresh, inherited ServerRoutingTest case
Globalization preservation All 12 cases of the three methods above, on Server/WASM with en-US/fr-FR

Fresh native live-Blazor probes reproduced the new navigation failure seams before edits: two-lock trials failed 7/10 and disposal trials failed 5/10 without synchronization; both gated variants passed 10/10. Native pre-drag scrolling passed 10/10 per platform with real dragstart and no scrolling after pointerdown. These are bounded samples, not cross-host determinism claims.

The same dependency-aware build command above passed again (exit 0, zero warnings/errors). Scoped formatting passed (exit 0):

dotnet format whitespace --folder /repo/src/Components/test/E2ETest/Tests --include EventTest.cs QuickGridTest.cs RoutingTest.cs --verify-no-changes --verbosity quiet

The combined targeted run passed (exit 0, 21 passed, zero failed/skipped). The fresh exported TRX was parsed and all 21 expected case names, definition IDs, and execution IDs were verified unique and successful.

dotnet test src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj --no-build -c Release -p:UseMonoRuntime=false -p:UseIisNativeAssets=false -p:TestTrimmedApps=false --filter 'FullyQualifiedName~DragDrop_CanTrigger|FullyQualifiedName~CanCloseColumnOptionsByBlurring|FullyQualifiedName~NavigationLock_CanBlockNavigation_ThenContinue|FullyQualifiedName~NavigationLock_RemovesLock_WhenDisposed|FullyQualifiedName~NavigationLock_HistoryNavigationWorks_AfterRefresh|FullyQualifiedName~CanSetCultureAndParseCultureSensitiveNumbersAndDates|FullyQualifiedName~CanSetCultureAndParseCultureInvariantNumbersAndDatesWithInputFields|FullyQualifiedName~CanSetCultureAndParseCultureInvariantNumbersAndDatesWithFormComponents' --logger 'trx;LogFileName=targeted-green.trx' --results-directory /evidence/chrome-e2e-repair/targeted-green

Validation used the same immutable AL4 image, default small viewport, SDK, activation, isolated mount, and process-local watcher settings described above. Owned helpers were stopped. This establishes the requested local Release/untrimmed boundary; complete consumer CI for the new head remains pending.

Activity

  1. added
    area-blazor
    on Nov 22, 2026
  2. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    Triage Summary

    Area: area-blazor (Components E2E tests: Selenium, QuickGrid, WASM globalization, Server routing)
    Type: Task (test portability work; shipping behavior is not changed)

    Potential Duplicates

    • None found

    Generated by Issue Triage Agent for dotnet/aspnetcore for #70767 · copilot · auto · 21.9 AIC · ⌖ 1.05 AIC · ⊞ 7.8K · ◷

  3. added this to the Backlog milestone on Nov 23, 2026
  4. richlander commented on Nov 23, 2026

    @richlander
    MemberAuthor

    Remaining virtualization failure: synchronization investigation

    Latest main (5d27468e60d852db6e6fb9f1e5f7bd291e6640f6) is merged into #70689 and pushed as cce1d33230a28ae08dd0f7c0844c491169908864. Existing ICU, drag/drop, popup, and navigation repairs are unchanged. New E2E build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1695925

    The previous failure in build 1693874 is not at the cancellation assertion. Its TRX identifies VirtualizationTest.cs:420, which waits for an already-issued scroll to reach an exact position. The test clicks Finish loading, immediately accepts the unchanged cancellation count of zero, and issues the scroll without waiting for initial data rendering.

    I reproduced the exact unchanged Selenium test in the published AL4 Chrome image: Passed: 0, Failed: 1, Skipped: 0, exit 1, the same line 420 and loaded initial-item DOM as CI.

    DISABLE_CUSTOM_PROMPT=1 source ./activate.sh
    dotnet test src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj --no-build --no-restore -c Release -p:UseMonoRuntime=false -p:UseIisNativeAssets=false -p:TestTrimmedApps=false --filter "FullyQualifiedName=Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerVirtualizationTest.CancelsOutdatedRefreshes_Async" --logger "trx;LogFileName=virtualization-exact-selenium.trx" --results-directory /evidence/virtualization-exact-selenium

    This ran against the already-built, unchanged Components graph at b5d5116b0dd0edd719326498079e47d820ad4f98, isolated at /repo, using image digest sha256:42d8a12504aa39a3c6e336a43937320a7086ad87701dd7b5d1e1c7cc6a8ddd30. Local test assets were untrimmed.

    Real native WebDriver observations establish the missing precondition:

    • In five trials matching CI's eventual loaded DOM, the first scrollTo(1000) ran while scrollHeight == clientHeight == 500, so the browser immediately clamped the scroll to zero. The loaded height then grew to 20,000, but the lost scroll was never reissued; it remained zero for the 20-second wait.
    • The original sequence passed only 1/10 trials overall. Four other failures never reached the loaded-data state, so they are not counted as reproductions of CI's loaded snapshot.
    • Waiting only for loaded height removes the first-scroll failure but does not reliably verify cancellation: rapid scrolls can coalesce into one native observer update and one pending provider request. Three observed height-gated trials reached 5,000 with no cancellation. That probe stopped when another trial could not reach initial data readiness; it is not a completed green control.
    • A separate bounded native control waited for the real initial spacer callback to complete, initial data to render, and a new pending placeholder window after each scroll. 10/10 passed, each with four real provider cancellations, final scrollTop == 5000, and no severe browser errors. No synthetic callbacks, fixed sleeps, product edits, or window-size changes were used.

    The same named test passed in the three latest completed main E2E runs: 1695145, 1695310, and 1695735. These are complete TRX case results, not inferred from aggregate pipeline status.

    Conclusion: a reachable test synchronization race is reproduced; cancellation works when real provider progress is established. An initial-load wait alone is insufficient. The permanent repair should synchronize the existing Selenium scenario on actual provider/window progress while preserving its scroll and cancellation assertions. No permanent test or shipping-code fix has been made in this investigation. Latest-main integration only re-quarantines a different virtualization case; it does not change this cancellation test. Full new-head CI qualification remains pending.

  5. richlander commented on Nov 24, 2026

    @richlander
    MemberAuthor

    New-head CI qualification and remaining infrastructure blockers

    Investigated the completed checks for #70689 head cce1d33230a28ae08dd0f7c0844c491169908864, synthetic merge d610c4c70f5272dce7679e11dde174bde40d26f2.

    Components E2E is now green. Build 1695925, complete unquarantined TRXs:

    Suite Passed Failed Skipped
    Server 1,487 0 1
    Client/WASM 1,135 0 4

    CancelsOutdatedRefreshes_Async passed on both platforms (Server 0.767s; WASM 0.990s). This does not invalidate the earlier exact Selenium reproduction or prove the test is reliable: the test source is unchanged. The two-row drop in each platform's total comes from main re-quarantining InitialIndex_RetainsTargetWhenPreviousItemExpandsThenHomeEndTakeOver, not from dropping cancellation coverage.

    The server quarantined task failed two already-quarantined cases:

    • ServerVirtualizationTest.InitialIndex_RetainsTargetWhenPreviousItemExpandsThenHomeEndTakeOver(useProvider: True), assertion at VirtualizationTest.cs:6939. The same case and source line failed on main build 1695310.
    • RedirectionTest.NavigationException_InAsyncContext_DoesNotBecomeUnobservedTaskException, assertion at RedirectionTest.cs:306. The same case and source line failed on main builds 1695145, 1695310, and 1695735.

    These quarantined results account for Azure's partiallySucceeded state; the GitHub Components E2E check reports success.

    The current red required checks are separate Helix monitor failures:

    Pipeline PR build Exact-main comparison Failure
    aspnetcore-ci 1695923, task log 202 1695870, task log 292 No Helix jobs were submitted by this stage in any attempt. Stage: 'helix_tests'
    aspnetcore-template-tests-pr 1695926, task log 24 1695823, task log 25 Same message, Stage: '__default'

    Both comparison builds use the exact merged main commit 5d27468e60d852db6e6fb9f1e5f7bd291e6640f6. All four failing monitor tasks exited 1.

    The monitor's literal claim that nothing was submitted is contradicted by submission logs and direct Helix records:

    • PR main CI submission logs 168 and 192 report six Sent Helix Job IDs; both tasks succeeded with zero warnings/errors.
    • PR template submission log 15 reports three Sent Helix Job IDs and succeeds with zero warnings/errors.
    • The jobs have matching Source, Properties.BuildId, and stage metadata.
    • Reissuing the monitor's source/build-property query anonymously now returns all six main-CI jobs and all three template jobs. This establishes current discoverability, not the cause of the earlier failure; the monitor's authentication context and query-time service behavior were not reproduced.
    • At inspection, five main-CI jobs had finished with every work item exiting zero; one Windows main-CI job still had six waiting work items. Two template jobs had every work item exiting zero; the Ubuntu template job still had two running work items. Therefore this is not evidence that all Helix tests have passed, and the missing Azure results must not be silently treated as green.

    The monitor package version is unchanged from the previously passing PR run: 12.0.0-beta.26569.107. Main integration changed neither the monitor template/script nor the tool manifest or Helix project. No workaround, source fix, quarantine, retry, or new commit was made during this follow-up.

    Disposition: the AL4 Components consumer run is qualified on this head, with the cancellation-test race retained as known follow-up work. Remaining required-check failures match exact-main infrastructure failures; resolve or recover monitoring/result publication before calling the PR fully green. Review is still required.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    NativeAOTarea-blazortest-failure

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions