Skip to content

[android] Add failing reproduction for #37418 - #37467

Closed
rmarinho wants to merge 1 commit into
mainfrom
copilot/reproduce-37418-android-14986305-1
Closed

rmarinho wants to merge 1 commit into
mainfrom
copilot/reproduce-37418-android-14986305-1

Conversation

@rmarinho

Copy link
Copy Markdown
Member

Important

This is AI-generated reproduction evidence, not a merge-ready product fix. The guarded test intentionally fails only when MAUI_REPRODUCTION_ISSUE=37418 is set. A product fix should remove the guard and make the test pass before this PR is considered for merge.

Reproduced issue

Device evidence

Reproduction preview

Open the full MP4 recording · Evidence manifest

Reproduction steps

  1. Register the existing page, window, layout, and Controls BoxView handlers used by the Controls device-test host.
  2. Create a zero-padding bottom-aligned Grid with SafeAreaEdges set to Container and a fixed height.
  3. Set the Grid TranslationY beyond the bottom of the Android window before attaching it to a handler.
  4. Add the layout to a device-test window, wait for native layout, and apply its real Android window insets while the Grid is off-screen.
  5. Reset TranslationY to zero on the UI thread and await the queued Android native-view update.
  6. Read the Grid's Android native top padding, which directly controls the unexpected content offset.
  7. Assert that the native top padding is zero.

Safety and validation

  • The pipeline reconstructed the scenario from issue text, inline snippets, and allowed raster screenshots.
  • No linked repository, archive, binary, script, package, or arbitrary external file was downloaded.
  • A trusted runner reproduced the behavior on-device and matched the expected targeted test failure.
  • The published patch is add-only and restricted to approved MAUI test locations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 735ac9a2-7bec-4baa-ad19-c298e5bc795a
@rmarinho
rmarinho temporarily deployed to copilot-pat-pool August 16, 2026 10:33 — with GitHub Actions Inactive
@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/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37467

Or

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

@rmarinho
rmarinho temporarily deployed to copilot-pat-pool August 16, 2026 10:34 — with GitHub Actions Inactive
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo

kubaflo commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Independent reproduction run

I ran the exact generated test from this PR against baseline 604d9de36e05a40c36ab05cdcd68f2c6286fa260.

Actual result: FAILED at the intended assertion — reproduction confirmed.

  • Runtime: emulator-5554, API 30
  • Exact test: Microsoft.Maui.DeviceTests.Issue37418.ResettingOffscreenTranslationDoesNotAddTopGap
  • Isolation: 1 selected test executed, 1 failed, 0 unrelated tests
  • Runner exit code: 1 (expected because the selected test failed)

Observed failure:

The bottom sheet must not retain a top gap after TranslationY is reset to zero.

The app/test project built and the failure came from the reproduction assertion, not setup, launch, timeout, or test infrastructure.

Issue-side validation record: #37418 (comment)

@kubaflo

kubaflo commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Superseded by regeneration through the MauiBot fork with action-only shortened video evidence.

@kubaflo kubaflo closed this Aug 16, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 21, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — be07770f Deployed Aug 16, 2026 by rmarinho via conclusion #1321
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants