From 14672f355a4447e9dba958bd621188fcf57e583e Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 02:38:47 +0600 Subject: [PATCH 1/8] don't run coverage tests on doc changes Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/coverage.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6d1221c17..a66a0ee63 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,7 +1,15 @@ name: Coverage -on: [push, pull_request] - +# trigger on every commit push and PR for all branches except pushes for backport branches +on: + push: + branches: ['**', '!backport/**'] + paths-ignore: + - '**/*.md' + pull_request: + branches: ['**'] + paths-ignore: + - '**/*.md' jobs: code-coverage: name: Code coverage From 89d92ec8c96887e817bf4ebd69103f72c48c56b8 Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 02:39:28 +0600 Subject: [PATCH 2/8] don't run compatability tests on doc changes Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/compatibility.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 4bd99fef8..10b66978c 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -1,6 +1,15 @@ name: Integration for Compatibility -on: [push, pull_request] +# trigger on every commit push and PR for all branches except pushes for backport branches +on: + push: + branches: ['**', '!backport/**'] + paths-ignore: + - '**/*.md' + pull_request: + branches: ['**'] + paths-ignore: + - '**/*.md' jobs: integration-test-compatibility: From c6260bc97de3e42e2782d0e9af6f84b0e29fa7de Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 02:49:42 +0600 Subject: [PATCH 3/8] don't run integrations with unreleased OS test on doc change Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/integration-unreleased.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/integration-unreleased.yml b/.github/workflows/integration-unreleased.yml index 0d3c76d57..6511b21fa 100644 --- a/.github/workflows/integration-unreleased.yml +++ b/.github/workflows/integration-unreleased.yml @@ -4,9 +4,13 @@ on: push: branches: - 'main' + paths-ignore: + - '**/*.md' pull_request: branches: - 'main' + paths-ignore: + - '**/*.md' jobs: test: From 1938433117294aa1f9489bb2e2d472489351c471 Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 02:50:43 +0600 Subject: [PATCH 4/8] don't run integration checks on doc change Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/integration.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5638a30bd..2ebd31930 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,6 +1,14 @@ name: Integration - -on: [push, pull_request] +# trigger on every commit push and PR for all branches except pushes for backport branches +on: + push: + branches: ['**', '!backport/**'] + paths-ignore: + - '**/*.md' + pull_request: + branches: ['**'] + paths-ignore: + - '**/*.md' jobs: helpers-integration-test: From ca60b37ca04e1ce6b7f8dfd5ce7fa8a00a5a40d1 Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 02:51:52 +0600 Subject: [PATCH 5/8] don't run node ci tests on doc changes Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/nodejs.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index f9e61408f..31b0ab8b7 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,6 +1,15 @@ name: Node CI -on: [push, pull_request] +# trigger on every commit push and PR for all branches except pushes for backport branches +on: + push: + branches: ['**', '!backport/**'] + paths-ignore: + - '**/*.md' + pull_request: + branches: ['**'] + paths-ignore: + - '**/*.md' jobs: test: @@ -27,8 +36,8 @@ jobs: - name: Setup Yarn run: | npm uninstall -g yarn - npm i -g yarn@1.22.10 - + npm i -g yarn@1.22.10 + - name: Lint if: matrix.node-version == '16.x' run: | From 70906f8e949c8f851f3be04095d84ea3ffd1ad80 Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 03:10:29 +0600 Subject: [PATCH 6/8] don't run bundler tests on doc changes Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/bundler.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bundler.yml b/.github/workflows/bundler.yml index 55cb70876..91a088219 100644 --- a/.github/workflows/bundler.yml +++ b/.github/workflows/bundler.yml @@ -1,6 +1,15 @@ name: Bundler -on: [push, pull_request] +# trigger on every commit push and PR for all branches except pushes for backport branches +on: + push: + branches: ['**', '!backport/**'] + paths-ignore: + - '**/*.md' + pull_request: + branches: ['**'] + paths-ignore: + - '**/*.md' jobs: bundler-support: From fce9acc90474b843bf11c1fa71438ae01979a48e Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Sat, 18 Mar 2023 03:34:04 +0600 Subject: [PATCH 7/8] Update changelog Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a47e5795c..da673f76d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Changed - Remove test artifacts from gh_pages workflow ([#335](https://github.com/opensearch-project/opensearch-js/issues/335)) - Make fields in `BulkOperation` optional to match OpenSearch Bulk API requirements ([#378](https://github.com/opensearch-project/opensearch-js/pull/378)) +- Change coverage, compatability, integration, integration with unreleased Open Search, node ci, bundler tests not to run on documentation change ([441](https://github.com/opensearch-project/opensearch-js/pull/441)) ### Deprecated ### Removed - Remove waitCluster in Integration Tests ([#422](https://github.com/opensearch-project/opensearch-js/issues/422)) @@ -86,4 +87,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) [2.1]: https://github.com/opensearch-project/opensearch-js/releases/tag/2.1.0 [2.2]: https://github.com/opensearch-project/opensearch-js/releases/tag/2.2.0 -[Unreleased]: https://github.com/opensearch-project/opensearch-js/compare/2.2...HEAD \ No newline at end of file +[Unreleased]: https://github.com/opensearch-project/opensearch-js/compare/2.2...HEAD From c827778c469a1e475d3dfcabd28aeeb9dfece583 Mon Sep 17 00:00:00 2001 From: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> Date: Wed, 22 Mar 2023 04:37:15 +0600 Subject: [PATCH 8/8] run tests on backport pushes Signed-off-by: Didar Tursunov <89772209+Wielmany@users.noreply.github.com> --- .github/workflows/bundler.yml | 5 ++--- .github/workflows/compatibility.yml | 4 ++-- .github/workflows/coverage.yml | 4 ++-- .github/workflows/integration.yml | 4 ++-- .github/workflows/nodejs.yml | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/bundler.yml b/.github/workflows/bundler.yml index 91a088219..eeb16474a 100644 --- a/.github/workflows/bundler.yml +++ b/.github/workflows/bundler.yml @@ -1,9 +1,8 @@ name: Bundler -# trigger on every commit push and PR for all branches except pushes for backport branches -on: +# trigger on every commit push and PR for all branches push: - branches: ['**', '!backport/**'] + branches: ['**'] paths-ignore: - '**/*.md' pull_request: diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 10b66978c..132545b61 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -1,9 +1,9 @@ name: Integration for Compatibility -# trigger on every commit push and PR for all branches except pushes for backport branches +# trigger on every commit push and PR for all branches on: push: - branches: ['**', '!backport/**'] + branches: ['**'] paths-ignore: - '**/*.md' pull_request: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a66a0ee63..88a610c74 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,9 +1,9 @@ name: Coverage -# trigger on every commit push and PR for all branches except pushes for backport branches +# trigger on every commit push and PR for all branches on: push: - branches: ['**', '!backport/**'] + branches: ['**'] paths-ignore: - '**/*.md' pull_request: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 2ebd31930..14de9f6db 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,8 +1,8 @@ name: Integration -# trigger on every commit push and PR for all branches except pushes for backport branches +# trigger on every commit push and PR for all branches on: push: - branches: ['**', '!backport/**'] + branches: ['**'] paths-ignore: - '**/*.md' pull_request: diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 31b0ab8b7..0576534f0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,9 +1,9 @@ name: Node CI -# trigger on every commit push and PR for all branches except pushes for backport branches +# trigger on every commit push and PR for all branches on: push: - branches: ['**', '!backport/**'] + branches: ['**'] paths-ignore: - '**/*.md' pull_request: