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

[Backport 2.x] Unit Test Coverage Threshold (#101) #123

Closed
wants to merge 47 commits into from

Conversation

mingshl
Copy link
Collaborator

@mingshl mingshl commented Jan 9, 2023

backport 052c593 from #101

macohen and others added 30 commits October 31, 2022 19:55
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: Mark Cohen <[email protected]>
…ation-test

Add an initial integration test

Signed-off-by: Mark Cohen <[email protected]>
Merge pull request opensearch-project#30 from mingkunm/feature/integration-test
opensearch-project#36)

* moving PR template to .github folder

Signed-off-by: Mark Cohen <[email protected]>

* moving PR template to .github folder

Signed-off-by: Mark Cohen <[email protected]>

Signed-off-by: Mark Cohen <[email protected]>
(cherry picked from commit 5c2b2ec)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…t#39) (opensearch-project#40)

Trying to set the git config for core.longpaths to "true" to enable
long file paths on Windows, as that was blocking us from checking out
OpenSearch-Dashboards.

Signed-off-by: Michael Froh <[email protected]>

Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit 713c9c8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Michael Froh <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Peter Zhu <[email protected]>

Signed-off-by: Peter Zhu <[email protected]>
(cherry picked from commit c47faf1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…) (opensearch-project#48)

Signed-off-by: Peter Zhu <[email protected]>

Signed-off-by: Peter Zhu <[email protected]>
(cherry picked from commit c7f7e8f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ject#51)

Signed-off-by: Zelin Hao <[email protected]>

Signed-off-by: Zelin Hao <[email protected]>
(cherry picked from commit 8f7457b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Zelin Hao <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… (opensearch-project#56)

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit ede673f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
github-actions bot and others added 17 commits November 3, 2022 13:48
…opensearch-project#54) (opensearch-project#61)

* moving PR template to .github folder

Signed-off-by: Mark Cohen <[email protected]>

* moving PR template to .github folder

Signed-off-by: Mark Cohen <[email protected]>

* changed backport/ to backport- to match the actual branches created by the backport workflow

Signed-off-by: Mark Cohen <[email protected]>

* adding badges for build and link checker

Signed-off-by: Mark Cohen <[email protected]>

* updated test-and-build.yml to use checkout v2.5 to update to node 16 according to deprecation warnings

Signed-off-by: Mark Cohen <[email protected]>

* added .0 on the end of v2.5

Signed-off-by: Mark Cohen <[email protected]>

* changed checkout to v3

Signed-off-by: Mark Cohen <[email protected]>

* fixing links and adding SECURITY,md

Signed-off-by: Mark Cohen <[email protected]>

* adding .codecov.yml

Signed-off-by: Mark Cohen <[email protected]>

* moved .github/workflows/.codecov.yml -> .github/.codecov.yml

Signed-off-by: Mark Cohen <[email protected]>

* cleaning up README

Signed-off-by: Mark Cohen <[email protected]>

* adding workflow for release notes

Signed-off-by: Mark Cohen <[email protected]>

Signed-off-by: Mark Cohen <[email protected]>
(cherry picked from commit 14fb54a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Mark Cohen <[email protected]>

Signed-off-by: Mark Cohen <[email protected]>
(cherry picked from commit 481b2af)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Zelin Hao <[email protected]>

Signed-off-by: Zelin Hao <[email protected]>
(cherry picked from commit d9a4317)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Zelin Hao <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ect#73) (opensearch-project#74)

Signed-off-by: Zelin Hao <[email protected]>

Signed-off-by: Zelin Hao <[email protected]>
(cherry picked from commit 83950e2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Zelin Hao <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix: Style conflict

Signed-off-by: Mingkun Ma <[email protected]>

* Add label to search button

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit 4aac640)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
* fix: Style conflict

Signed-off-by: Mingkun Ma <[email protected]>

* Add label to search button

Signed-off-by: Mingkun Ma <[email protected]>

* fix: Default tab spacing in query box

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit 86ad3ef)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
…oject#82) (opensearch-project#85)

* fix: Style conflict

Signed-off-by: Mingkun Ma <[email protected]>

* Add label to search button

Signed-off-by: Mingkun Ma <[email protected]>

* fix: Default tab spacing in query box

Signed-off-by: Mingkun Ma <[email protected]>

* fix: Query Box on blur issue

Signed-off-by: Mingkun Ma <[email protected]>

* feat: Add default query

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit 047700f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
* feat: Change results number to displayed number

Signed-off-by: Mingkun Ma <[email protected]>

* Add babelrc config

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit 65cb2b1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
* feat: Change results number to displayed number

Signed-off-by: Mingkun Ma <[email protected]>

* Add babelrc config

Signed-off-by: Mingkun Ma <[email protected]>

* Add unit test for search bar

Signed-off-by: Mingkun Ma <[email protected]>

* Add unit test constants

Signed-off-by: Mingkun Ma <[email protected]>

* Add unit test for result component

Signed-off-by: Mingkun Ma <[email protected]>

* Add unit test for result grid

Signed-off-by: Mingkun Ma <[email protected]>

* Add unit test for common components

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit 909eef1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
…opensearch-project#92)

* release notes for 2.4.0

Signed-off-by: Mark Cohen <[email protected]>

* added codecov badge to README

Signed-off-by: Mark Cohen <[email protected]>

* updated README.md to include present tense

Signed-off-by: Mark Cohen <[email protected]>

* revised 2.4 release notes

Signed-off-by: Mark Cohen <[email protected]>

Signed-off-by: Mark Cohen <[email protected]>
(cherry picked from commit 6325c4d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: Change results number to displayed number

Signed-off-by: Mingkun Ma <[email protected]>

* fix: Result text wrap

Signed-off-by: Mingkun Ma <[email protected]>

* fix: Unit test

Signed-off-by: Mingkun Ma <[email protected]>

Signed-off-by: Mingkun Ma <[email protected]>
Co-authored-by: Mingkun Ma <[email protected]>
(cherry picked from commit 8fc68ae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mingkun Ma <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mingkun Ma <[email protected]>
…) (opensearch-project#99)

* renamed files with typos from serach* to search*

Signed-off-by: Mark Cohen <[email protected]>

* testing a PR stats workflow

Signed-off-by: Mark Cohen <[email protected]>

Signed-off-by: Mark Cohen <[email protected]>
(cherry picked from commit e57a9f6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Mark Cohen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…project#64)

* building 2.5.0 in the 2.x branch

Signed-off-by: Mark Cohen <[email protected]>

* updated main to 2.x

Signed-off-by: Mark Cohen <[email protected]>

Signed-off-by: Mark Cohen <[email protected]>
Co-authored-by: Mark Cohen <[email protected]>
opensearch-project#108) (opensearch-project#109)

Signed-off-by: dblock <[email protected]>
(cherry picked from commit 97ad0b5)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pensearch-project#115)

(cherry picked from commit a38a5e3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Previous commit didn't include update to yarn.lock.

Signed-off-by: Michael Froh <[email protected]>

Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit 534983f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Michael Froh <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Setting unit test coverage target to 80% with a 2% threshold. Builds will fail if coverage hits 78%.
* Adding pull request stats action to test.

Signed-off-by: Mark Cohen <[email protected]>
Co-authored-by: Mark Cohen <[email protected]>
Signed-off-by: Mingshi Liu <[email protected]>
@mingshl mingshl requested a review from a team January 9, 2023 22:32
@mingshl mingshl closed this Jan 9, 2023
@mingshl mingshl deleted the backport-pr-101-2.x branch January 9, 2023 22:53
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.

2 participants