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

feat: add prometheus tracing #1003

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
114 changes: 57 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,47 +321,47 @@ jobs:
paths:
- ./docker-image.tar

test-integration:
executor: default-machine
environment:
<<: *defaults_environment
steps:
- run:
name: Install general dependencies
command: *defaults_machine_Dependencies
- checkout
- run:
<<: *defaults_configure_nvm
- run:
<<: *defaults_display_versions
- restore_cache:
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
- attach_workspace:
at: /tmp
- run:
name: Create dir for test results
command: mkdir -p ./test/results
- run:
name: Execute integration tests
command: |
# Set Node version to default (Note: this is needed on Ubuntu)
nvm use default
npm ci
# test-integration:
# executor: default-machine
# environment:
# <<: *defaults_environment
# steps:
# - run:
# name: Install general dependencies
# command: *defaults_machine_Dependencies
# - checkout
# - run:
# <<: *defaults_configure_nvm
# - run:
# <<: *defaults_display_versions
# - restore_cache:
# key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
# - attach_workspace:
# at: /tmp
# - run:
# name: Create dir for test results
# command: mkdir -p ./test/results
# - run:
# name: Execute integration tests
# command: |
# # Set Node version to default (Note: this is needed on Ubuntu)
# nvm use default
# npm ci

echo "Running integration tests...."
bash ./test/scripts/test-integration.sh
environment:
ENDPOINT_URL: http://localhost:4545/notification
UV_THREADPOOL_SIZE: 12
WAIT_FOR_REBALANCE: 20
TEST_INT_RETRY_COUNT: 30
TEST_INT_RETRY_DELAY: 2
TEST_INT_REBALANCE_DELAY: 20000
- store_artifacts:
path: ./test/results
destination: test
- store_test_results:
path: ./test/results
# echo "Running integration tests...."
# bash ./test/scripts/test-integration.sh
# environment:
# ENDPOINT_URL: http://localhost:4545/notification
# UV_THREADPOOL_SIZE: 12
# WAIT_FOR_REBALANCE: 20
# TEST_INT_RETRY_COUNT: 30
# TEST_INT_RETRY_DELAY: 2
# TEST_INT_REBALANCE_DELAY: 20000
# - store_artifacts:
# path: ./test/results
# destination: test
# - store_test_results:
# path: ./test/results

test-functional:
executor: default-machine
Expand Down Expand Up @@ -864,18 +864,18 @@ workflows:
ignore:
- /feature*/
- /bugfix*/
- test-integration:
context: org-global
requires:
- setup
- build-local
filters:
tags:
only: /.*/
branches:
ignore:
- /feature*/
- /bugfix*/
# - test-integration:
# context: org-global
# requires:
# - setup
# - build-local
# filters:
# tags:
# only: /.*/
# branches:
# ignore:
# - /feature*/
# - /bugfix*/
- test-functional:
context: org-global
requires:
Expand Down Expand Up @@ -951,7 +951,7 @@ workflows:
- test-lint
- test-unit
- test-coverage
- test-integration
# - test-integration
- test-functional
- vulnerability-check
- audit-licenses
Expand Down Expand Up @@ -981,7 +981,7 @@ workflows:
- test-lint
- test-unit
- test-coverage
- test-integration
# - test-integration
- test-functional
- vulnerability-check
- audit-licenses
Expand All @@ -1003,7 +1003,7 @@ workflows:
- test-lint
- test-unit
- test-coverage
- test-integration
# - test-integration
- test-functional
- vulnerability-check
- audit-licenses
Expand All @@ -1024,7 +1024,7 @@ workflows:
- test-lint
- test-unit
- test-coverage
- test-integration
# - test-integration
- test-functional
- vulnerability-check
- audit-licenses
Expand All @@ -1045,7 +1045,7 @@ workflows:
- test-lint
- test-unit
- test-coverage
- test-integration
# - test-integration
- test-functional
- vulnerability-check
- audit-licenses
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,6 @@ Logs are sent to standard output by default.

Tests include unit, functional, and integration.

Running the tests:

```bash
npm run test:all
```

Tests include code coverage via istanbul. See the test/ folder for testing scripts.

### Running Integration Tests interactively

If you want to run integration tests in a repetitive manner, you can startup the test containers using `docker-compose` via one of the following methods:
Expand Down
3 changes: 2 additions & 1 deletion audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"GHSA-5854-jvxx-2cg9", // hapi-auth-basic>hapi>subtext
"GHSA-2mvq-xp48-4c77", // hapi-auth-basic>hapi>subtext
"GHSA-w5p7-h5w8-2hfq", // tap-spec>tap-out>trim
"GHSA-p9pc-299p-vxgp" // widdershins>yargs>yargs-parser
"GHSA-p9pc-299p-vxgp", // widdershins>yargs>yargs-parser
"GHSA-f5x3-32g6-xq36" // node-tar https://github.com/advisories/GHSA-f5x3-32g6-xq36
]
}
Loading
Loading