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

9998 integration tests exp #10084

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Node.js CI - API
# name: Node.js CI - API

on:
pull_request:
# on:
# pull_request:

jobs:
API:
runs-on: ubuntu-latest
# jobs:
# API:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: API
run: npm run test:api
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18.15.0'
# - name: Collect Workflow Telemetry
# uses: runforesight/workflow-telemetry-action@v1
# with:
# comment_on_pr: false
# - name: Install Node Dependencies
# run: npm ci
# - name: API
# run: npm run test:api
68 changes: 34 additions & 34 deletions .github/workflows/backmerge-PR.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Auto-create PRs to test after staging update
on:
pull_request:
branches: [staging]
types: [closed]
# name: Auto-create PRs to test after staging update
# on:
# pull_request:
# branches: [staging]
# types: [closed]

permissions:
pull-requests: write
contents: write
# permissions:
# pull-requests: write
# contents: write

jobs:
createPullRequest:
if: github.event.pull_request.merged == true
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: test
- name: Reset promotion branch
run: |
git fetch origin staging:staging
git reset --hard staging
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
delete-branch: true
title: 'Auto backmerge staging into test PR'
branch: test-promotion
branch-suffix: timestamp
body: |
Auto backmerge staging into test
- Updated with latest staging branch upon feature branch merge
- Auto-generated by [create-pull-request][1]
# jobs:
# createPullRequest:
# if: github.event.pull_request.merged == true
# timeout-minutes: 2
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# ref: test
# - name: Reset promotion branch
# run: |
# git fetch origin staging:staging
# git reset --hard staging
# - name: Create Pull Request
# id: cpr
# uses: peter-evans/create-pull-request@v4
# with:
# delete-branch: true
# title: 'Auto backmerge staging into test PR'
# branch: test-promotion
# branch-suffix: timestamp
# body: |
# Auto backmerge staging into test
# - Updated with latest staging branch upon feature branch merge
# - Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
# [1]: https://github.com/peter-evans/create-pull-request
42 changes: 21 additions & 21 deletions .github/workflows/build-ts-api.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Build API Typescript
# name: Build API Typescript

on:
pull_request:
# on:
# pull_request:

jobs:
build_ts_api:
runs-on: ubuntu-latest
# jobs:
# build_ts_api:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Build Typescript API
run: |
npm run build:assets
npm run build:lambda:api
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18.15.0'
# - name: Collect Workflow Telemetry
# uses: runforesight/workflow-telemetry-action@v1
# with:
# comment_on_pr: false
# - name: Install Node Dependencies
# run: npm ci
# - name: Build Typescript API
# run: |
# npm run build:assets
# npm run build:lambda:api
106 changes: 53 additions & 53 deletions .github/workflows/client-integration-public.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
name: Node.js Client Integration Tests
# name: Node.js Client Integration Tests

on:
pull_request:
# on:
# pull_request:

jobs:
client_integration_public:
runs-on: ubuntu-latest
# jobs:
# client_integration_public:
# runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ci_node_total: [2]
ci_node_index: [0, 1]
env:
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.10.2
security-enabled: false
- name: Setup DynamoDB Local
uses: rrainn/[email protected]
with:
port: 8000
cors: '*'
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Web Client - Integration Tests Public
run: |
mkdir -p /tmp/web-client
npm run start:api:ci > /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt &
./wait-until-services.sh
export TESTFILES=$(npx ts-node split-tests.ts -public)
npm run test:client:integration:ci
- name: Store Artifacts
uses: actions/upload-artifact@v3
with:
name: server log output
path: /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt
# strategy:
# fail-fast: false
# matrix:
# ci_node_total: [2]
# ci_node_index: [0, 1]
# env:
# CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
# CI_NODE_INDEX: ${{ matrix.ci_node_index }}
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18.15.0'
# - name: Configure sysctl limits
# run: |
# sudo swapoff -a
# sudo sysctl -w vm.swappiness=1
# sudo sysctl -w fs.file-max=262144
# sudo sysctl -w vm.max_map_count=262144
# - name: Runs Elasticsearch
# uses: elastic/elastic-github-actions/elasticsearch@master
# with:
# stack-version: 7.10.2
# security-enabled: false
# - name: Setup DynamoDB Local
# uses: rrainn/[email protected]
# with:
# port: 8000
# cors: '*'
# - name: Collect Workflow Telemetry
# uses: runforesight/workflow-telemetry-action@v1
# with:
# comment_on_pr: false
# - name: Install Node Dependencies
# run: npm ci
# - name: Web Client - Integration Tests Public
# run: |
# mkdir -p /tmp/web-client
# npm run start:api:ci > /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt &
# ./wait-until-services.sh
# export TESTFILES=$(npx ts-node split-tests.ts -public)
# npm run test:client:integration:ci
# - name: Store Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: server log output
# path: /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt
1 change: 1 addition & 0 deletions .github/workflows/client-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
ci_node_total: [12]
ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]

env:
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
Expand Down
106 changes: 53 additions & 53 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
name: Node.js CI - Client Unit Tests
# name: Node.js CI - Client Unit Tests

on:
pull_request:
# on:
# pull_request:

jobs:
Client:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ci_node_total: [4]
ci_node_index: [0, 1, 2, 3]
env:
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
comment_on_pr: false
- name: Install Node Dependencies
run: npm ci
- name: Test Client Unit
run: |
export TESTFILES=$(npx ts-node split-tests-glob.ts -unit)
NODE_INDEX=${{ matrix.ci_node_index }} npm run test:client:unit:ci
- name: Rename coverage to shard coverage
run: |
mkdir -p coverage
cp web-client/coverage/${{ matrix.ci_node_index }}/lcov.info coverage/lcov-${{ matrix.ci_node_index }}.info
cp web-client/coverage/${{ matrix.ci_node_index }}/coverage-final.json coverage/coverage-${{ matrix.ci_node_index }}.json
- uses: actions/upload-artifact@v3
with:
name: coverage-artifacts
path: coverage
check-coverage:
runs-on: ubuntu-latest
needs: [Client]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: coverage-artifacts
path: coverage
- name: Process Coverage
run: npx nyc report --check-coverage --branches 94.56 --functions 98.81 --lines 99.25 --statements 99.23 --reporter lcov --reporter text --reporter clover -t coverage
- uses: geekyeggo/delete-artifact@v1
with:
name: coverage-artifacts
failOnError: false
# jobs:
# Client:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# ci_node_total: [4]
# ci_node_index: [0, 1, 2, 3]
# env:
# CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
# CI_NODE_INDEX: ${{ matrix.ci_node_index }}
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18.15.0'
# - name: Collect Workflow Telemetry
# uses: runforesight/workflow-telemetry-action@v1
# with:
# comment_on_pr: false
# - name: Install Node Dependencies
# run: npm ci
# - name: Test Client Unit
# run: |
# export TESTFILES=$(npx ts-node split-tests-glob.ts -unit)
# NODE_INDEX=${{ matrix.ci_node_index }} npm run test:client:unit:ci
# - name: Rename coverage to shard coverage
# run: |
# mkdir -p coverage
# cp web-client/coverage/${{ matrix.ci_node_index }}/lcov.info coverage/lcov-${{ matrix.ci_node_index }}.info
# cp web-client/coverage/${{ matrix.ci_node_index }}/coverage-final.json coverage/coverage-${{ matrix.ci_node_index }}.json
# - uses: actions/upload-artifact@v3
# with:
# name: coverage-artifacts
# path: coverage
# check-coverage:
# runs-on: ubuntu-latest
# needs: [Client]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/download-artifact@v3
# with:
# name: coverage-artifacts
# path: coverage
# - name: Process Coverage
# run: npx nyc report --check-coverage --branches 94.56 --functions 98.81 --lines 99.25 --statements 99.23 --reporter lcov --reporter text --reporter clover -t coverage
# - uses: geekyeggo/delete-artifact@v1
# with:
# name: coverage-artifacts
# failOnError: false
Loading