Skip to content

Commit bdc985f

Browse files
committed
Merge branch 'main' into jd-better-health-check
2 parents 7ef6f0b + 3780857 commit bdc985f

File tree

8 files changed

+57
-341
lines changed

8 files changed

+57
-341
lines changed

book/src/framework/chaos/chaos.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,32 @@ We also offer a set of blockchain-specific experiments, which typically involve
5858

5959
Check [gas](https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/framework/examples/myproject/chaos/chaos_blockchain_evm_gas_test.go) and [reorg](https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/framework/examples/myproject/chaos/chaos_blockchain_evm_reorg_test.go) examples, the same example work for [K8s](https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/framework/examples/myproject/chaos/chaos_k8s_test.go).
6060

61-
## Debugging
61+
## Debugging and Developing Chaos Suites
6262

63-
To debug `Docker` applications you can just use `CTFv2` deployments.
63+
To debug `Docker` applications you can just use `CTFv2` deployments and Docker logs.
6464

6565
To debug `K8s` please use our [simulator](../chaos/debug-k8s.md).
66+
67+
The simplest way to start is to spin up the simulator and run `K8s` tests:
68+
```
69+
cd infra/chaosmesh-playground
70+
devbox run up
71+
k9s
72+
```
73+
Then go to `default` namespace and check which example pods we have, run the tests
74+
```
75+
cd framework/examples/myproject/chaos
76+
CTF_CONFIGS=chaos_k8s.toml go test -v -run TestK8sChaos
77+
```
78+
Reorg and gas tests will fail and that's fine, you should run them on a real `Geth` deployment.
79+
80+
Grafana's annotations required `GRAFANA_URL` environment variable to be set
81+
```
82+
export GRAFANA_URL=...
83+
export GRAFANA_TOKEN=...
84+
```
85+
If you want CRDs to stay use `remove_k8s_chaos` flag in `chaos-k8s.toml`
86+
```
87+
remove_k8s_chaos = false
88+
```
89+
Then search for `:podchaos` and `:networkchaos` in `k9s` to inspect the CRDs

framework/.changeset/v0.11.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Enhance JD health checks and add a CI test for it
1+
- Bump the Aptos node image to v1.36.6

framework/.changeset/v0.11.4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix failing node logs in OTel collector when enabled logs streaming

framework/.changeset/v0.11.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Enhance JD health checks and add a CI test for it

framework/components/blockchain/aptos.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
const (
1818
DefaultAptosAPIPort = "8080"
1919
DefaultAptosFaucetPort = "8081"
20-
DefaultAptosArm64Image = "ghcr.io/friedemannf/aptos-tools:aptos-node-v1.34.3-hotfix"
21-
DefaultAptosX86_64Image = "aptoslabs/tools:aptos-node-v1.34.3-hotfix"
20+
DefaultAptosArm64Image = "ghcr.io/friedemannf/aptos-tools:aptos-node-v1.36.6"
21+
DefaultAptosX86_64Image = "aptoslabs/tools:aptos-node-v1.36.6"
2222
)
2323

2424
var (
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[chaos]
2-
wait_before_start = "10s"
3-
namespace = "default"
4-
dashboard_uuids = ["WaspDebug"]
5-
experiment_duration = "20s"
6-
experiment_injection_duration = "10s"
7-
remove_k8s_chaos = true
8-
9-
blockchain_http_urls = ["http://localhost:8545", "http://localhost:8550"]
10-
reorg_below_finality_threshold = 5
11-
reorg_above_finality_threshold = 10
12-
block_every = "1s"
2+
wait_before_start = "10s"
3+
namespace = "default"
4+
dashboard_uuids = ["WaspDebug"]
5+
experiment_duration = "20s"
6+
experiment_injection_duration = "10s"
7+
remove_k8s_chaos = false
8+
9+
blockchain_http_urls = ["http://localhost:8545", "http://localhost:8550"]
10+
reorg_below_finality_threshold = 5
11+
reorg_above_finality_threshold = 10
12+
block_every = "1s"

0 commit comments

Comments
 (0)