Skip to content

Commit

Permalink
Removing OpenDistro integration tests (opensearch-project#271)
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <miki@amazon.com>
  • Loading branch information
VachaShah authored and AMoo-Miki committed Jul 12, 2023
1 parent ad2be2e commit f6e4661
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 70 deletions.
7 changes: 0 additions & 7 deletions .ci/opendistro/Dockerfile.opendistro

This file was deleted.

16 changes: 0 additions & 16 deletions .ci/opendistro/docker-compose.yml

This file was deleted.

42 changes: 6 additions & 36 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: Integration
# trigger on every commit push and PR for all branches
on:
push:
branches: ['**']
paths-ignore:
- '**/*.md'
pull_request:
branches: ['**']
paths-ignore:
- '**/*.md'

on: [push, pull_request]

jobs:
helpers-integration-test:
Expand All @@ -17,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
node-version: [10.x, 12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -34,21 +26,10 @@ jobs:
make cluster.clean cluster.opensearch.build cluster.opensearch.start
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# NPM started understanding yarn.lock file starting from v7
- name: Update NPM
shell: bash
run: |
export NPM_VERSION=$(npm -v)
export IS_NPM_SUITABLE=$(node -p "parseInt(process.env.NPM_ROOT, 10) >= 7")
if [ "$IS_NPM_SUITABLE" == "false" ]; then
echo "NPM needs upgrading!"
npm i npm@7 -g
fi
- name: Install
run: |
npm install
Expand All @@ -63,7 +44,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
node-version: [10.x, 12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -81,21 +62,10 @@ jobs:
make cluster.clean cluster.opensearch.build cluster.opensearch.start
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# NPM started understanding yarn.lock file starting from v7
- name: Update NPM
shell: bash
run: |
export NPM_VERSION=$(npm -v)
export IS_NPM_SUITABLE=$(node -p "parseInt(process.env.NPM_ROOT, 10) >= 7")
if [ "$IS_NPM_SUITABLE" == "false" ]; then
echo "NPM needs upgrading!"
npm i npm@7 -g
fi
- name: Install
run: |
npm install
Expand Down
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
cluster.opendistro.build:
docker-compose --project-directory .ci/opendistro build;

cluster.opendistro.start:
docker-compose --project-directory .ci/opendistro up -d ;
sleep 20;

cluster.opendistro.stop:
docker-compose --project-directory .ci/opendistro down ;

cluster.opensearch.build:
docker-compose --project-directory .ci/opensearch build;

Expand All @@ -24,4 +14,4 @@ cluster.clean: ## Remove unused Docker volumes and networks
docker network prune --force
docker system prune --volumes --force

.PHONY: cluster.opendistro.build cluster.opendistro.start cluster.opendistro.stop cluster.opensearch.build cluster.opensearch.start cluster.opensearch.stop cluster.clean
.PHONY: cluster.opensearch.build cluster.opensearch.start cluster.opensearch.stop cluster.clean

0 comments on commit f6e4661

Please sign in to comment.