Skip to content

e2e-tests: add cypress tests for scale cluster#147665

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
dhartunian:davidh/push-muvvyytrxwuo
Jun 16, 2025
Merged

e2e-tests: add cypress tests for scale cluster#147665
craig[bot] merged 1 commit intocockroachdb:masterfrom
dhartunian:davidh/push-muvvyytrxwuo

Conversation

@dhartunian
Copy link
Copy Markdown
Collaborator

This commit adds files to enable the use of Cypress to smoke test DB Console on a cluster to see if it meets basic performance requirements. This can be used on a scale cluster to make sure we can render all the standard pages in a reasonable amount of time.

The test will print out timing information for key elements in the logs. Additionally, screenshots are taken immediately after the timing snapshot to enable easy analysis of what's on the page at time of timer capture. You can then confirm that the page is "useful".

Resolves: #51018

Release note: None

@dhartunian dhartunian requested a review from a team as a code owner June 2, 2025 22:14
@dhartunian dhartunian requested review from alyshanjahani-crl and removed request for a team June 2, 2025 22:14
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@dhartunian dhartunian requested a review from kyle-a-wong June 3, 2025 03:14
Copy link
Copy Markdown
Contributor

@kyle-a-wong kyle-a-wong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @alyshanjahani-crl)


pkg/ui/workspaces/e2e-tests/cypress/scale/db-console.cy.ts line 134 at r1 (raw file):

  it("loads the Hot Ranges page and displays the correct heading and key elements", () => {
    cy.measureRender(
      "Hot Ranges Table", // Name for this measurement

nit: rm

This commit adds files to enable the use of Cypress to smoke
test DB Console on a cluster to see if it meets basic performance
requirements. This can be used on a scale cluster to make sure we
can render all the standard pages in a reasonable amount of time.

The test will print out timing information for key elements in the
logs. Additionally, screenshots are taken immediately after the timing
snapshot to enable easy analysis of what's on the page at time of
timer capture. You can then confirm that the page is "useful".

Resolves: cockroachdb#51018

Release note: None
@dhartunian dhartunian force-pushed the davidh/push-muvvyytrxwuo branch from 53af3c1 to 63b5fee Compare June 16, 2025 19:59
@dhartunian
Copy link
Copy Markdown
Collaborator Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 16, 2025

@craig craig bot merged commit 651f996 into cockroachdb:master Jun 16, 2025
22 checks passed
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.

opt: unconstrained partial index scans should not add index joins when remaining filters prune columns

3 participants