Skip to content

Stop QAN copy-link and PBM panel checks racing late data - #1202

Open
travagliad wants to merge 4 commits into
mainfrom
claude/jolly-curie-q86e17
Open

Stop QAN copy-link and PBM panel checks racing late data#1202
travagliad wants to merge 4 commits into
mainfrom
claude/jolly-curie-q86e17

Conversation

@travagliad

@travagliad travagliad commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This PR refreshes QAN page with -30m to -5m so we have a bigger window of queries selected and keep having page 2, as on latest nightly run it failed for not having a page 2 by the time the test was executed (-5m to now)

PMM-T1142 copies a link built from the suite's now-5m window, whose last
minutes are still being aggregated. Re-querying that same absolute range 90s
later on a repro VM returned 400 -> 413 groups in a different load order; in
nightly run 32200025112 it went 433 -> 436 and the selected query left page 2
entirely, so .selected-overview-row never appeared. Anchor the scenario on
now-15m..now-5m, a closed window that returns identical rows on every fetch.

PMM-T2036 (PITR) failed on an empty Backup Sizes panel. The run's Playwright
trace shows why: Last Successful Backup was re-queried 16 times by
waitForLastSuccessfulBackupValue (15 empty, then data), while Backup Sizes was
queried exactly once -- empty, before PBM published a status=done sample -- and
never again, because that poll keeps the viewport at the top of the dashboard
and Grafana only re-runs a panel's query while it is on screen. Add
waitForLateMetricPanels to poll the bottom panels with each one in view, so the
empty-panel check reads current state rather than a stale render.

Signed-off-by: travagliad <215686151+travagliad@users.noreply.github.com>
A 10-minute window can be sparse when a suite reaches this scenario shortly
after the clients register. Starting the window earlier can only add rows, so
page 2 stays reachable while the window is still closed.

Signed-off-by: travagliad <215686151+travagliad@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@travagliad, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7711a820-0db6-490e-b5fb-4b49e3d28c42

📥 Commits

Reviewing files that changed from the base of the PR and between f198258 and 513518e.

📒 Files selected for processing (1)
  • codeceptjs-e2e/tests/QAN/timerange_test.js

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5956455a-4e54-4d23-9828-fb54f3bb1656

📥 Commits

Reviewing files that changed from the base of the PR and between 7e8f93d and f198258.

📒 Files selected for processing (1)
  • codeceptjs-e2e/tests/QAN/timerange_test.js
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • percona/pmm-qa (manual)
  • percona/pmm (manual)
💤 Files with no reviewable changes (1)
  • codeceptjs-e2e/tests/QAN/timerange_test.js

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The PMM-T1142 QAN test now loads the closed now-30mnow-5m time range before it validates copied-link preservation.

Changes

E2E test stability

Layer / File(s) Summary
Stable QAN link-test setup
codeceptjs-e2e/tests/QAN/timerange_test.js
The test opens a closed relative time window and waits for it to load before validating the copied page and selected query state.

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the two test checks and the race condition caused by late data.
Description check ✅ Passed The description directly explains the QAN timing change and the pagination race addressed by the changes.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread codeceptjs-e2e/tests/QAN/timerange_test.js Outdated
Comment thread codeceptjs-e2e/tests/pages/dashboards/mongodb/mongodbBackupDetailsDashboard.js Outdated
Comment thread codeceptjs-e2e/tests/pages/dashboards/mongodb/mongodbBackupDetailsDashboard.js Outdated
Comment thread codeceptjs-e2e/tests/dashboards/verifyMongodbPbmDashboard_test.js Outdated
Co-authored-by: travagliad <215686151+travagliad@users.noreply.github.com>
Comment thread codeceptjs-e2e/tests/QAN/timerange_test.js Outdated
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.

1 participant