Skip to content

[ci-fix-net11] Needs review: scroll to RefreshView footer before tapping (refs #39224) - #39348

Merged
kubaflo merged 1 commit into
net11.0from
ci-fix/issue-39224-871dec2db89cca3c
Oct 13, 2026
Merged

kubaflo merged 1 commit into
net11.0from
ci-fix/issue-39224-871dec2db89cca3c

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Workflow artifact: ci-fix
Artifact kind: help
Refs: #39224
Target branch: net11.0
Attempt: 1/10

Attempt 1 of 10

Actively scroll to the CollectionView footer before each synchronized footer tap.

Previous attempts (prior commits on this PR)

None; this is the first attempt for this tracking issue.

This attempt differs by: locating an off-screen footer through scrolling, rather than only waiting for it to become discoverable. The earlier merged #37578 introduced the existing wait-before-tap helper for a different tracking issue; this change keeps that synchronization and adds the missing navigation operation.

Root cause

The latest completed maui-pr-uitests build, 1630214, reports CollectionViewWithRefreshViewShouldNotReset failing on iOS 18.5 in both its initial execution and retry. Both stacks reach Issue24533.TapFooter at line 38; the caller is line 25, the second footer tap.

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24533.cs waits for Footer before tapping. The host page initially adds 25 items and appends another batch on refresh, so the footer can be outside the visible CollectionView content after an update. A passive element wait cannot bring an off-screen footer into view. The existing separate scroll operation may precede the updated footer becoming discoverable.

This is a candidate test-navigation explanation, not a device-verified root cause. If the footer remains unavailable because of a product layout or accessibility defect, this change may still fail.

Fix

Add App.ScrollTo("Footer") inside TapFooter, immediately before its existing WaitForElement and tap. The existing scroll-to helper searches for the element while scrolling, rather than assuming a passive wait can reveal it.

All original refresh interactions, post-refresh scroll operations, offset measurements and both positive-offset assertions remain unchanged. No assertion is removed or weakened, no timeout is increased, no retry attribute is added, and no test or platform is excluded. Product CollectionView and RefreshView code is untouched.

What is unverified / where I need help

  • Validation: not run (no iOS device rig on this Linux runner).
  • Please confirm the additional pre-tap scroll makes the footer discoverable after each item append on iOS, and that the original scroll-position assertions still exercise the intended regression.
  • If the footer remains absent even after scrolling, investigate the product's layout/accessibility behavior rather than extending the timeout.
  • Full compilation was not performed: the installed SDKs stop at .NET 10.0.401, while this branch requests .NET 11.0.100-rtm.26480.113.

Validation

  • Command: pwsh -NoProfile -File /tmp/gh-aw/agent/validate-candidate.ps1
  • Result: passed static checks that the complete test source differs only by the intended one-line helper addition. Every original assertion, timeout, category and platform guard is preserved. This is not UI execution.
  • Command: git diff --check
  • Result: passed.
  • Command: dotnet format Microsoft.Maui.sln --no-restore --include src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24533.cs --exclude Templates/src --exclude-diagnostics CA1822
  • Result: did not complete within the bounded 120-second wait and was canceled. The one added line follows the surrounding indentation.
  • Command: not run because the failing scenario requires an iOS UI-test device rig
  • Result: not run.

Evidence


Filed by ci-status-fix-net11. This is the single PR for #39224: the workflow watches its own CI and pushes up to 10 attempts on this same PR (it never opens a second PR). It advances only when the fix's own build settles red and that red is caused by the fix. Comments, reviews, and commits do not transfer ownership; the loop remains autonomous until this PR is closed. Eligible CHANGES_REQUESTED reviews are handled through Track C. After 10 attempts it stops and defers to humans. The trusted CI-fix validator automatically queues maui-pr, uitests, and devicetests for every new PR head.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ajhvsblobprodcus363.vsblob.vsassets.io

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ajhvsblobprodcus363.vsblob.vsassets.io"

See Network Configuration for more information.

Generated by CI Failure Fixer (net11.0) · ⊞ 29.2K · ◷

… attempt 1/10)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 marked this pull request as ready for review October 13, 2026 10:25
Copilot AI balanced review requested due to automatic review settings October 13, 2026 10:25
@kubaflo
kubaflo merged commit 646303f into net11.0 Oct 13, 2026
25 of 35 checks passed
@kubaflo
kubaflo deleted the ci-fix/issue-39224-871dec2db89cca3c branch October 13, 2026 10:25
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Oct 13, 2026

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.

🔵 Needs a closer look

The timing-sensitive iOS behavior was not device-tested, so the proposed de-flake cannot be confirmed statically.

0 open findings

What changed in this PR

Adds active footer discovery before each synchronized tap in the RefreshView UI regression test.

Changes:

  • Calls App.ScrollTo("Footer") before waiting for and tapping the footer.
  • Preserves existing assertions and platform guards.
File Description
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue24533.cs Scrolls the CollectionView footer into view before tapping it.

🧠 Review effort: Balanced

kubaflo added a commit that referenced this pull request Nov 3, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Add the first useful Build Insights migration slice to test-review
context: collect supplementary GitHub check reports for the exact
captured PR head, while retaining direct Azure/Helix acquisition and
existing attribution behavior.

- Accept only the exact `build-insights` / `Build Insights`
publisher/name pair, with matching head SHA. No legacy publisher support
or compatibility aliases.
- Reuse the existing deadline-bound `gh` transport. Bound collection to
three pages of 100 check runs, eight reports, and 65,536 combined
title/summary/text characters per report. Surface transport,
response-shape, pagination, missing-body, and truncation errors
explicitly.
- Request `filter=all` explicitly so earlier same-named reports are
considered within the existing caps, rather than silently accepting the
check-runs API's latest-only default.
- Collect supplementary reports only after primary Azure/Helix evidence,
target-branch history, and baseline attribution, using the remaining
gather budget. A stalled report request cannot consume time needed by
those sources. Both no-results shortcuts avoid report acquisition.
- Add `context.buildInsights` through `Get-BuildInsightsCheckReports`,
with report metadata, bounded raw bodies, status, timestamps, and
collection limitations. Normalize timestamps materialized by
`ConvertFrom-Json` as `DateTime` or `DateTimeOffset`.
- Teach the consumer to treat reports as untrusted supplementary leads,
not instructions, proof of coverage across all pipelines, or grounds to
dismiss failures as known issues. Pending or missing content is not
negative evidence.
- Add regression coverage and wire the review-test-failures script
directory into the existing PowerShell CI gate. Update its coupled
suite-discovery assertion to include this third skill-script directory.

This builds on earlier MAUI evidence and known-issue matcher groundwork;
it does not imply that groundwork already migrated to Build Insights.
This PR does not replace the full collector, change verdict gates, alter
raw Azure/Helix acquisition logic, or change attribution and
known-build-error matching.

**Current local verification (commit `5c6ef8dda7`):** Pester 5.9.0
across all three review-script suites plus
`.github/scripts/NotificationCenterScripts.Tests.ps1`: **368 passed, 0
failed, 0 skipped**. This includes 61 Build Insights cases. All three
new regression cases failed against the pre-fix collector at `d02e27d0`:
earlier same-named report retention, primary-before-supplementary
ordering, and a stalled supplementary request exhausting the remaining
budget. The orchestration tests execute the collector entrypoint with
mocked I/O and verify that primary evidence, history, baseline sampling,
and attribution survive. `git diff --check` passed.

**Earlier replay evidence:** Offline replay of retained October 27 check
responses preserved exact head/check/text/build links for historical
[#39242](#39242) and
[#39348](#39348),
retaining exactly one Build Insights report from each and ignoring the
legacy report. That replay is not a fresh independent service check or
deployment acceptance and was not rerun for the follow-up fixes.

**Hosted validation limitations:** No green hosted-CI claim is made for
the new commit. At the preceding head, PowerShell CI failed stale
model-pin assertions in files unchanged by this PR. Skill validation
produced no evaluation results: model probing reported `gpt-6-astra`
unavailable, and its separate harness-hermeticity job failed during
checkout. These failures have not been repaired or bypassed by this
change.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

N/A — incremental CI report-intake integration; no linked issue.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@github-actions github-actions Bot modified the milestones: .NET 11.0-rc2, .NET 11.0 GA Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants