Skip to content
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
102 changes: 0 additions & 102 deletions .github/scripts/map-affected-files-to-modules.sh

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ concurrency:

env:
# for run-test variables and environment
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ inputs.evm-ref || github.sha }}
CHAINLINK_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/${{ inputs.ecr_name || 'chainlink-integration-tests' }}
CHAINLINK_REF: ${{ inputs.cl_ref || github.sha }}
TEST_SUITE: smoke
Expand Down
50 changes: 0 additions & 50 deletions integration-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ lint:
build:
@go build ./... go test -run=^# ./...

# Builds the test image
# tag: the tag for the test image being built, example: tag=tate
# base_tag: the tag for the base-test-image to use, example: base_tag=latest
# suite: the test suites to build into the image, example: suite="chaos soak smoke reorg migration"
# push: set to true if you want the image pushed or leave blank if not, example: push=true
.PHONY: build_test_image
build_test_image:
./scripts/buildTestImage $(tag) $(base_tag) "$(suite)" $(push)

#Build a chainlink docker image for local testing and push to k3d registry
.PHONY: build_push_docker_image
build_push_docker_image: build_docker_image
Expand All @@ -83,38 +74,9 @@ run_tracing:
cd ../.github/tracing
docker compose -f ../.github/tracing/local-smoke-docker-compose.yaml up

## Test Runner
.PHONY: run
run:
go run .

## All commands will use 16 threads to run tests in parallel. To change this, use -test.parallel n
## Remember to set selected_networks and CL image in the TOML file (e.g. overrides.toml)

# Smoke
.PHONY: test_smoke_product
test_smoke_product: ## Run smoke tests for specific product ex: make test_smoke_product product="cron" args="--focus @cron -p"
ARGS="$(args)" PRODUCT=$(product) ./scripts/run_product_tests

# Migrations
.PHONY: test_node_migrations
test_node_migrations: install_gotestloghelper ## Run all node migration tests.
TEST_LOG_LEVEL="disabled" \
go test -timeout 1h -count=1 -json $(args) ./migration 2>&1 | tee /tmp/gotest.log | gotestloghelper -json -tlogprefix -color -singlepackage -hidepassinglogs

.PHONY: test_node_migrations_simulated
test_node_migrations_simulated: install_gotestloghelper
TEST_LOG_LEVEL="disabled" \
go test -timeout 1h -count=1 -json $(args) ./migration 2>&1 | tee /tmp/gotest.log | gotestloghelper -json -tlogprefix -color -singlepackage -hidepassinglogs

.PHONY: test_node_migrations_verbose
test_node_migrations_verbose:
go test -timeout 1h -count=1 -v $(args) ./migration

.PHONY: test_node_migrations_simulated_verbose
test_node_migrations_simulated_verbose:
go test -timeout 1h -count=1 -v $(args) ./migration

.PHONY: check_github_token
check_github_token:
@if [ -z "$(GITHUB_TOKEN)" ]; then \
Expand All @@ -135,18 +97,6 @@ build_docker_image: check_github_token
--secret id=GIT_AUTH_TOKEN,env=GITHUB_TOKEN \
-t $(image):$(tag) ../

# image: the name for the chainlink image being built, example: image=chainlink
# tag: the tag for the chainlink image being built, example: tag=latest
# args: the args to pass to the test runner, example: args="--focus @cron -p"
# product: the product to run tests for, example: product=cron
# example usage: make run_test_with_local_image image=chainlink tag=latest-dev product=cron
# remember to put the case CL image name and tag in the TOML config (and don't forget about selected network configuration)
.PHONY: run_test_with_local_image
run_test_with_local_image: build_docker_image
ARGS="$(args)" \
PRODUCT=$(product) \
./scripts/run_product_tests

# removes all occurrences of .run.id file in current folder and it's subdirectories
# before making any changes lists all file locations and awaits user confirmation
remove_test_execution_artefacts:
Expand Down
25 changes: 3 additions & 22 deletions integration-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Integration Tests

**DEPRECATED**: Use a new version of [developer environment](../devenv/README.md)
**DEPRECATED**: Use a new version of [developer environment](../devenv/README.md)
Read more about tests [here](../devenv/tests/README.md)

- [Integration Tests](#integration-tests)
Expand Down Expand Up @@ -97,15 +97,8 @@ This directory represent a place for different types of integration and system l
> **Parallelized tests and nonce issues**
> Most tests are parallelized by default. To avoid nonce-related issues, it is recommended to run tests with disabled parallelization, e.g. with `-p 1`.

2. Alternatively, you may use `make` commands (see more in [Makefile .PHONY lines](./Makefile)) for running suites of tests.
Example:

```bash
make test_smoke_product product="ocr" ./scripts/run_product_tests
```

3. Logs of each Chainlink container will dump into the `smoke/logs/`.
4. To enable debugging of HTTP and RPC clients set the following env vars:
2. Logs of each Chainlink container will dump into the `smoke/logs/`.
3. To enable debugging of HTTP and RPC clients set the following env vars:

```bash
export SETH_LOG_LEVEL=debug
Expand Down Expand Up @@ -137,18 +130,6 @@ Such tests as Soak, Performance, Benchmark, and Chaos Tests remain bound to a Ku
BASE64_CONFIG_OVERRIDE=$(cat ./testconfig/overrides.toml | base64) go test -v -timeout <max_test_timeout> -p 1 -run '<TestName>' ./<test_directory>
```

OR with `make` commands:

```bash
BASE64_CONFIG_OVERRIDE=$(cat ./testconfig/overrides.toml | base64) make test_<your_test>
```

Example (see make-commands in [Makefile .PHONY lines](./Makefile)):

```bash
BASE64_CONFIG_OVERRIDE=$(cat ./testconfig/overrides.toml | base64) make test_chaos_ocr/make test_soak_ocr2/test_node_migrations
```

4. Use Kubernetes namespace printed out in logs to monitor and analyze test runs.
5. Navigate to Grafana dashboards to for test results and logs.

Expand Down
41 changes: 0 additions & 41 deletions integration-tests/scripts/buildTestImage

This file was deleted.

66 changes: 0 additions & 66 deletions integration-tests/scripts/buildTestMatrixList.sh

This file was deleted.

33 changes: 0 additions & 33 deletions integration-tests/scripts/buildTests

This file was deleted.

Loading
Loading