Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add E2E test for Statement #1196

Merged
merged 51 commits into from
Mar 22, 2022
Merged

Conversation

YiniXu9506
Copy link
Contributor

  • add e2e test for statement list page and detail page;
  • find a TiDB bug when testing search function on statement list page.

YiniXu9506 and others added 30 commits January 18, 2022 19:45
# Conflicts:
#	pkg/apiserver/slowquery/queries.go
#	pkg/apiserver/statement/service.go
#	ui/cypress/integration/slow_query/list.compat_spec.js
…geE2E

# Conflicts:
#	ui/cypress/integration/slow_query/list.spec.js
#	ui/cypress/plugins/index.js
#	ui/lib/components/HighlightSQL/index.tsx
…istPage

# Conflicts:
#	ui/package.json
#	ui/yarn.lock
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Mar 14, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • breeswish

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@breezewish
Copy link
Member

We can hold this PR for a moment, wait pingcap/tidb#33052 to be merged and test again. Meanwhile the code review can happen. cc @shhdgit @baurine

ui/cypress/integration/components.js Outdated Show resolved Hide resolved
ui/cypress/integration/components.js Outdated Show resolved Hide resolved
ui/cypress/integration/statement/01-list.spec.js Outdated Show resolved Hide resolved

// Wait TiUP Playground
cy.exec('bash ../scripts/wait_tiup_playground.sh 1 300 &> wait_tiup.log')
restartTiUP()
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can stop all tiup components processes after the test to avoid process leaks. Though these processes will be killed before the next round of tests.

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2022

Codecov Report

Merging #1196 (b3a9ee8) into master (ed6c9e2) will decrease coverage by 7.26%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1196      +/-   ##
==========================================
- Coverage   29.60%   22.34%   -7.27%     
==========================================
  Files         288      164     -124     
  Lines       16968    14139    -2829     
  Branches      651        0     -651     
==========================================
- Hits         5023     3159    -1864     
+ Misses      11714    10749     -965     
  Partials      231      231              
Flag Coverage Δ
be_integration_test_latest 9.33% <ø> (ø)
be_integration_test_v4.0.1 9.32% <ø> (ø)
be_unit_test 24.07% <ø> (ø)
e2e_test ?

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed6c9e2...b3a9ee8. Read the comment docs.

@shhdgit
Copy link
Member

shhdgit commented Mar 22, 2022

Maybe we can update the e2e test script later so that the tiup process can be stopped.

The rest LGTM.

@shhdgit
Copy link
Member

shhdgit commented Mar 22, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: b3a9ee8

@shhdgit shhdgit merged commit e74efa7 into pingcap:master Mar 22, 2022
@YiniXu9506 YiniXu9506 deleted the addE2E_statementListPage branch April 6, 2022 13:55
shhdgit added a commit to shhdgit/tidb-dashboard that referenced this pull request May 16, 2022
* test: add use database filter and search function

* test: add select columns test

* fix: missing fields in slowquery

* fix: lower case field names in tests

* update

* update tiup reboot

* test: slow query available fields

* test: move available fields tests to compatibility test

* chore: remove test log

* update slowquery

* update slow query e2e test

* update export slow query csv

* add missing regex

* update slow query table order

* update apiURL

* fix time-range selector

* update comment

* slow query detail

* update slow query detail page e2e

* update slow query detail page

* add statement e2e test

* update yarn.lock

* update statement list

* update statement list

* update statement

* update statement list

* update statement list

* update statement list

* update statement

* update statement list

* update statement list

* update statement

* test statement

* test statement

* update statement

* update statement

* resolve comments

* fix typo

* update statement config

* update statement default max size value

* remove useless e2e data value

Co-authored-by: Suhaha <[email protected]>
shhdgit added a commit to shhdgit/tidb-dashboard that referenced this pull request May 16, 2022
* test: add use database filter and search function

* test: add select columns test

* fix: missing fields in slowquery

* fix: lower case field names in tests

* update

* update tiup reboot

* test: slow query available fields

* test: move available fields tests to compatibility test

* chore: remove test log

* update slowquery

* update slow query e2e test

* update export slow query csv

* add missing regex

* update slow query table order

* update apiURL

* fix time-range selector

* update comment

* slow query detail

* update slow query detail page e2e

* update slow query detail page

* add statement e2e test

* update yarn.lock

* update statement list

* update statement list

* update statement

* update statement list

* update statement list

* update statement list

* update statement

* update statement list

* update statement list

* update statement

* test statement

* test statement

* update statement

* update statement

* resolve comments

* fix typo

* update statement config

* update statement default max size value

* remove useless e2e data value

Co-authored-by: Suhaha <[email protected]>
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.

5 participants