Skip to content

Commit a8b4f8d

Browse files
authored
Merge branch 'main' into tt-1862-remove-logstream
2 parents 7f36a6d + a85e897 commit a8b4f8d

File tree

38 files changed

+1293
-469
lines changed

38 files changed

+1293
-469
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ jobs:
1010
env:
1111
LOKI_TENANT_ID: promtail
1212
LOKI_URL: http://localhost:3030/loki/api/v1/push
13-
# this is not the best practice, and it must be fixed, run your tests WITHOUT IT!
14-
# however, on current latest image we must use this flag
15-
CTF_IGNORE_CRITICAL_LOGS: true
1613
runs-on: ubuntu-latest
1714
permissions:
1815
id-token: write

.github/workflows/framework.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
defaults:
1010
run:
1111
working-directory: framework
12+
env:
13+
CTF_JD_IMAGE: ${{ secrets.CTF_JD_IMAGE }}
1214
runs-on: ubuntu-latest
1315
permissions:
1416
id-token: write

book/src/framework/components/blockchains/evm.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,17 @@ Public: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
7272
Private: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
7373
```
7474

75-
Test keys for `Besu` can be found [here](https://besu.hyperledger.org/23.4.1/private-networks/reference/accounts-for-testing)
75+
For `Besu` keys are
76+
```
77+
Public: 0xfe3b557e8fb62b89f4916b721be55ceb828dbd73
78+
Private: 0x8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63
79+
80+
Public: 0x627306090abaB3A6e1400e9345bC60c78a8BEf57
81+
Private: 0xc87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3
82+
83+
Public: 0xf17f52151EbEF6C7334FAD080c5704D77216b732
84+
Private: 0xae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c36d94e974d162f
85+
```
86+
87+
More docs for `Besu` can be found [here](https://besu.hyperledger.org/private-networks/reference/accounts-for-testing)
7688

book/src/framework/components/state.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ One node set is enough for any kind of testing, if you need more nodes consider
4040

4141
## Custom ports
4242

43-
You can also define a custom set of ports for any node
43+
You can also define a custom set of ports for any node.
4444
```toml
4545
[nodeset]
4646
nodes = 5
@@ -53,6 +53,7 @@ You can also define a custom set of ports for any node
5353

5454
[nodeset.node_specs.node]
5555
# here we defined 2 new ports to listen and mapped them to our host machine
56-
custom_ports = [14000, 14001]
56+
# syntax is "host:docker", if you provide only host port then we map 1-to-1
57+
custom_ports = ["14000:15000", "20000"]
5758
image = "public.ecr.aws/chainlink/chainlink:v2.16.0"
5859
```

book/src/framework/configuration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
| CTF_CONFIGS | Path(s) to test config files. <br/>Can be more than one, ex.: smoke.toml,smoke_1.toml,smoke_2.toml.<br/>First filepath will hold all the merged values | Any valid TOML file path | - ||
88
| CTF_LOG_LEVEL | Harness log level | `info`, `debug`, `trace` | `info` | 🚫 |
99
| CTF_PROMTAIL_DEBUG | Set `true` if you are integrating with remote `Loki` push API to debug Promtail | `true`, `false` | `false` | 🚫 |
10+
| CTF_IGNORE_CRITICAL_LOGS | Ignore all logs that has CRIT,FATAL or PANIC levels (Chainlink nodes only!) | `true`, `false` | `false` | 🚫 |
11+
| CTF_CHAINLINK_IMAGE | Flag to override Chainlink Docker image in format $repository:$tag | $repository:$tag | - | 🚫 |
12+
| CTF_JD_IMAGE | Job distributor service image in format $repository:$tag | $repository:$tag | - | 🚫 |
1013
| LOKI_URL | URL to `Loki` push api, should be like`${host}/loki/api/v1/push` | URL | `http://host.docker.internal:3030/loki/api/v1/push` | 🚫 |
1114
| LOKI_TENANT_ID | Streams all components logs to `Loki`, see params below | `string` | `promtail` | 🚫 |
1215
| LOKI_BASIC_AUTH | Basic auth in format $user:$password | `$user:$password` | - | 🚫 |
1316
| RESTY_DEBUG | Log all Resty client HTTP calls | `true`, `false` | `false` | 🚫 |
14-
| CTF_IGNORE_CRITICAL_LOGS | Ignore all logs that has CRIT,FATAL or PANIC levels (Chainlink nodes only!) | `true`, `false` | `false` | 🚫 |
15-
| CTF_CHAINLINK_IMAGE | Flag to override Chainlink Docker image in format $repository:$tag | $repository:$tag | - | 🚫 |

framework/.changeset/v0.3.2.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- Allow exposing CL node ports in host:docker format
2+
- Expose default test private keys as framework constants
3+
- Rename CHAINLINK_IMAGE to CTF_CHAINLINK_IMAGE to avoid CI collisions
4+
- Add CTF_JD_IMAGE env var
5+
- Add JobDistributor component

framework/.changeset/v0.3.3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Upgrade Besu to 24.9.1
2+
- Expose default test private keys as framework constants
3+
- Collect all the logs even between restarts

framework/.changeset/v0.3.4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Bump go-ethereum as in core, fix darwin amd/arm binary release

framework/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ tidy:
2929
go_mod:
3030
go mod download
3131

32-
test_unit: go_mod
33-
go test -timeout 5m -count 1 -run TestDocker
32+
test_component: go_mod
33+
go test -timeout 5m -count 1 -run TestComponentDocker ./...

framework/components/blockchain/besu.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ import (
1212
"github.com/testcontainers/testcontainers-go/wait"
1313
)
1414

15+
const (
16+
DefaultBesuPrivateKey1 = "8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63"
17+
DefaultBesuPrivateKey2 = "c87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3"
18+
DefaultBesuPrivateKey3 = "ae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c36d94e974d162f"
19+
)
20+
1521
func defaultBesu(in *Input) {
1622
if in.Image == "" {
17-
in.Image = "hyperledger/besu:22.1.0"
23+
in.Image = "hyperledger/besu:24.9.1"
1824
}
1925
if in.ChainID == "" {
2026
in.ChainID = "1337"

0 commit comments

Comments
 (0)