Skip to content

Commit 529f218

Browse files
committed
Merge branch 'main' of github.com:smartcontractkit/chainlink-testing-framework into flakeguardAggregations
2 parents 8d1eb73 + 4457e19 commit 529f218

File tree

110 files changed

+5151
-1320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+5151
-1320
lines changed

.github/workflows/framework-golden-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
filters: |
6060
src:
6161
- 'framework/**'
62+
- '.github/workflows/framework-golden-tests.yml'
6263
- name: Set up Go
6364
uses: actions/setup-go@v4
6465
with:
@@ -81,3 +82,10 @@ jobs:
8182
CTF_CONFIGS: ${{ matrix.test.config }}
8283
run: |
8384
go test -timeout ${{ matrix.test.timeout }} -v -count ${{ matrix.test.count }} -run ${{ matrix.test.name }}
85+
- name: Upload Logs
86+
if: always()
87+
uses: actions/upload-artifact@v3
88+
with:
89+
name: container-logs-${{ matrix.test.name }}
90+
path: framework/examples/myproject/logs
91+
retention-days: 1

.github/workflows/k8s-e2e.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: (k8s package) E2E tests
2-
on:
3-
pull_request:
2+
# disabling for now, as they always fail
3+
#on:
4+
# pull_request:
45

56
concurrency:
67
group: e2e-tests-k8s-${{ github.ref }}

.github/workflows/wasp-test-e2e.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: WASP E2E tests
2-
on: [push]
2+
# disabling for now, as they always fail
3+
#on:
4+
# push:
35
concurrency:
46
group: ${{ github.workflow }}-${{ github.ref }}
57
cancel-in-progress: true

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
golang 1.22.3
1+
golang 1.23.3
22
nodejs 18.20.3
33
k3d 5.6.3
44
act 0.2.52

book/README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# Chainlink Testing Framework Docs
2-
3-
We use [mdBook](https://github.com/rust-lang/mdBook) for our docs. They can be found [here](https://smartcontractkit.github.io/chainlink-testing-framework/).
4-
5-
## Development
6-
7-
First [install Rust](https://doc.rust-lang.org/cargo/getting-started/installation.html), then [mdbook](https://github.com/rust-lang/mdBook).
8-
9-
```sh
10-
# Install mdBook
1+
## MDBook
2+
Install [mdbook](https://github.com/rust-lang/mdBook)
3+
```
114
cargo install mdbook && \
125
cargo install mdbook-alerts && \
13-
cargo install mdbook-cmdrun
14-
# Run the mdBook
6+
cargo install mdbook-cmdrun &&
7+
cargo install mdbook-mermaid
8+
```
9+
10+
Run it locally
11+
```
1512
make run
1613
```
14+
Open your browser [here](http://localhost:9999/)
1715

18-
Visit [localhost:9999](http://localhost:9999) to see your local version.
16+
GitHub hosted [version](https://smartcontractkit.github.io/chainlink-testing-framework/overview.html)

book/book.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ build-dir = "docs"
1010

1111
[output.html]
1212
default-theme = "ayu"
13+
additional-js = ["mermaid.min.js", "mermaid-init.js"]
1314

1415
[preprocessor.alerts]
15-
[preprocessor.cmdrun]
16+
[preprocessor.cmdrun]
17+
18+
[preprocessor.mermaid]
19+
command = "mdbook-mermaid"

book/mermaid-init.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
(() => {
2+
const darkThemes = ['ayu', 'navy', 'coal'];
3+
const lightThemes = ['light', 'rust'];
4+
5+
const classList = document.getElementsByTagName('html')[0].classList;
6+
7+
let lastThemeWasLight = true;
8+
for (const cssClass of classList) {
9+
if (darkThemes.includes(cssClass)) {
10+
lastThemeWasLight = false;
11+
break;
12+
}
13+
}
14+
15+
const theme = lastThemeWasLight ? 'default' : 'dark';
16+
mermaid.initialize({ startOnLoad: true, theme });
17+
18+
// Simplest way to make mermaid re-render the diagrams in the new theme is via refreshing the page
19+
20+
for (const darkTheme of darkThemes) {
21+
document.getElementById(darkTheme).addEventListener('click', () => {
22+
if (lastThemeWasLight) {
23+
window.location.reload();
24+
}
25+
});
26+
}
27+
28+
for (const lightTheme of lightThemes) {
29+
document.getElementById(lightTheme).addEventListener('click', () => {
30+
if (!lastThemeWasLight) {
31+
window.location.reload();
32+
}
33+
});
34+
}
35+
})();

book/mermaid.min.js

Lines changed: 2186 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/src/SUMMARY.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
- [NodeSet (Local Docker builds)](./framework/nodeset_docker_rebuild.md)
1212
- [NodeSet Compat Environment](./framework/nodeset_compatibility.md)
1313
- [Fork Testing](./framework/fork.md)
14+
- [Quick Contracts Deployment](./framework/quick_deployment.md)
1415
- [NodeSet with External Blockchain]()
1516
- [CLI](./framework/cli.md)
1617
- [Configuration](./framework/configuration.md)
1718
- [Test Configuration](./framework/test_configuration_overrides.md)
1819
- [Exposing Components](framework/components/state.md)
20+
- [Debugging Tests](framework/components/debug.md)
1921
- [Components Cleanup](framework/components/cleanup.md)
2022
- [Components Caching](framework/components/caching.md)
2123
- [Mocking Services](framework/components/mocking.md)
@@ -27,7 +29,6 @@
2729
- [Logs](framework/observability/logs.md)
2830
- [Profiling](framework/observability/profiling.md)
2931
- [Traces]()
30-
- [Debugger]()
3132
- [Blockscout](framework/observability/blockscout.md)
3233
- [Components](framework/components/overview.md)
3334
- [Blockchains](framework/components/blockchains/overview.md)
@@ -49,7 +50,33 @@
4950
- [Interactive](framework/interactive.md)
5051
- [Libraries](./libraries.md)
5152
- [Seth](./libs/seth.md)
52-
- [WASP](./libs/wasp.md)
53+
- [WASP](./libs/wasp/overview.md)
54+
- [Getting started](./libs/wasp/getting_started.md)
55+
- [First test (RPS test)](./libs/wasp/first_test.md)
56+
- [Stateful test](./libs/wasp/stateful_test.md)
57+
- [User Journey test](./libs/wasp/user_journey_test.md)
58+
- [Profile test](./libs/wasp/profile_test.md)
59+
- [Testing alerts]()
60+
- [Configuration](./libs/wasp/configuration.md)
61+
- [k8s](./libs/wasp/k8s.md)
62+
- [Components](./libs/wasp/components/overview.md)
63+
- [Alert Checker]()
64+
- [Dashboard](./libs/wasp/components/dashboard.md)
65+
- [Generator](./libs/wasp/components/generator.md)
66+
- [Loki](./libs/wasp/components/loki.md)
67+
- [Profile](./libs/wasp/components/profile.md)
68+
- [Sampler](./libs/wasp/components/sampler.md)
69+
- [Schedule](./libs/wasp/components/schedule.md)
70+
- [How to](./libs/wasp/how-to/overview.md)
71+
- [Start local observability stack](./libs/wasp/how-to/start_local_observability_stack.md)
72+
- [Try it out quickly](./libs/wasp/how-to/run_included_tests.md)
73+
- [Chose between RPS and VUs](./libs/wasp/how-to/chose_rps_vu.md)
74+
- [Define NFRs and check alerts](./libs/wasp/how-to/define_nfr_check_alerts.md)
75+
- [Use labels](./libs/wasp/how-to/use_labels.md)
76+
- [Incorporate load tests in your workflow](./libs/wasp/how-to/incorporate_load_tests.md)
77+
- [Reuse dashboard components](./libs/wasp/how-to/reuse_dashboard_components.md)
78+
- [Parallelize load](./libs/wasp/how-to/parallelise_load.md)
79+
- [Debug Loki errors](./libs/wasp/how-to/debug_loki_errors.md)
5380
- [Havoc](./libs/havoc.md)
5481
- [K8s Test Runner](k8s-test-runner/k8s-test-runner.md)
5582

book/src/framework/components/chainlink/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Here we provide full configuration reference, if you want to copy and run it, pl
1313

1414
[cl_node.db]
1515
# PostgreSQL image version and tag
16-
image = "postgres:15.6"
16+
image = "postgres:12.0"
1717
# Pulls the image every time if set to 'true', used like that in CI. Can be set to 'false' to speed up local runs
1818
pull_image = false
1919

0 commit comments

Comments
 (0)