Repository navigation
Description
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.
- Azure Linux failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1693059 (attempt 2).
- Ubuntu control: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1693765.
- Migration tested head:
85d2d1a95c208c958482dae77d5b7b44489e271f. - Ubuntu control tested merge:
390fe2568a8a60f777f5972bdb40afb30a5979db. - Azure Linux image digest:
sha256:42d8a12504aa39a3c6e336a43937320a7086ad87701dd7b5d1e1c7cc6a8ddd30.
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_CanTriggerindependent of implicit window dimensions and font-driven scrolling. The default viewport originally failed 10/10 per mode. Native Selenium pre-drag scrolling now producesdragstartwithout scrolling after pointerdown, 10/10 per mode; both existing test cases pass. - Make
QuickGridTest.CanCloseColumnOptionsByBlurringclick 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_AfterRefreshwith the existing lock-ready signal before Back. Apply the same synchronization at the two newly failing seams,NavigationLock_CanBlockNavigation_ThenContinueandNavigationLock_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":
CanSetCultureAndParseCultureSensitiveNumbersAndDatesCanSetCultureAndParseCultureInvariantNumbersAndDatesWithInputFieldsCanSetCultureAndParseCultureInvariantNumbersAndDatesWithFormComponents
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:
- Accept both ICU mappings for Pacific Standard Time in Canada runtime#136942, Accept both ICU mappings for Pacific Standard Time in Canada (merged November 4, 2026):
IdsConversionsWithRegionTestaccepts eitherAmerica/VancouverorAmerica/Los_AngelesforPacific Standard Timewith regionCA, depending on installed ICU mapping data. Other cases retain a single expected value; no product behavior changed. This is a close precedent for narrowly accepting legitimate data-dependent alternatives.
Accept both ICU mappings for Pacific Standard Time in Canada runtime#136942 - Fix System.Globalization.Extensions.Tests for icu 74/unicode 15.1 runtime#105282, Fix System.Globalization.Extensions.Tests for ICU 74/Unicode 15.1 (merged July 23, 2024): the IDNA conformance tests use the Unicode 15.1 dataset and parser when ICU is at least version 74, retaining the earlier datasets for older ICU versions. This illustrates advancing version-sensitive test data while continuing to cover supported older environments, not pinning the installed ICU package.
Fix System.Globalization.Extensions.Tests for icu 74/unicode 15.1 runtime#105282
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:qFormatting (passed, exit 0):
dotnet format whitespace --folder /repo/src/Components/test/E2ETest/Tests --include GlobalizationTest.cs --verify-no-changes --verbosity quietTests (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-greenThe 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 quietThe 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-greenValidation 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
Handle ICU AM/PM spacing differences in Components E2E tests
github-actions commentedon Nov 22, 2026
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
Stabilize Components E2E browser interactions on newer Linux images
richlander commentedon Nov 23, 2026
Remaining virtualization failure: synchronization investigation
Latest main (
5d27468e60d852db6e6fb9f1e5f7bd291e6640f6) is merged into #70689 and pushed ascce1d33230a28ae08dd0f7c0844c491169908864. Existing ICU, drag/drop, popup, and navigation repairs are unchanged. New E2E build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1695925The 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.
This ran against the already-built, unchanged Components graph at
b5d5116b0dd0edd719326498079e47d820ad4f98, isolated at/repo, using image digestsha256:42d8a12504aa39a3c6e336a43937320a7086ad87701dd7b5d1e1c7cc6a8ddd30. Local test assets were untrimmed.Real native WebDriver observations establish the missing precondition:
scrollTo(1000)ran whilescrollHeight == 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.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.
richlander commentedon Nov 24, 2026
New-head CI qualification and remaining infrastructure blockers
Investigated the completed checks for #70689 head
cce1d33230a28ae08dd0f7c0844c491169908864, synthetic merged610c4c70f5272dce7679e11dde174bde40d26f2.Components E2E is now green. Build 1695925, complete unquarantined TRXs:
CancelsOutdatedRefreshes_Asyncpassed 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-quarantiningInitialIndex_RetainsTargetWhenPreviousItemExpandsThenHomeEndTakeOver, not from dropping cancellation coverage.The server quarantined task failed two already-quarantined cases:
ServerVirtualizationTest.InitialIndex_RetainsTargetWhenPreviousItemExpandsThenHomeEndTakeOver(useProvider: True), assertion atVirtualizationTest.cs:6939. The same case and source line failed on main build 1695310.RedirectionTest.NavigationException_InAsyncContext_DoesNotBecomeUnobservedTaskException, assertion atRedirectionTest.cs:306. The same case and source line failed on main builds 1695145, 1695310, and 1695735.These quarantined results account for Azure's
partiallySucceededstate; the GitHub Components E2E check reports success.The current red required checks are separate Helix monitor failures:
No Helix jobs were submitted by this stage in any attempt. Stage: 'helix_tests'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:
Sent Helix JobIDs; both tasks succeeded with zero warnings/errors.Sent Helix JobIDs and succeeds with zero warnings/errors.Source,Properties.BuildId, and stage metadata.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.
Run Components E2E tests in Chrome container (#70689)