Skip to content

Commit c95a7a4

Browse files
committed
Merge branch 'main' into TT-1955-Create-page-for-flaky-e2e-tests-tips-tricks-and-share-with-developers-and-QA
2 parents f6e9288 + e55d0d7 commit c95a7a4

Some content is hidden

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

56 files changed

+52537
-485
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Set up Go
8585
uses: actions/setup-go@v5
8686
with:
87-
go-version: 1.23
87+
go-version: stable
8888
- name: Cache Go modules
8989
uses: actions/cache@v4
9090
with:

.github/workflows/framework.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Set up Go
3939
uses: actions/setup-go@v5
4040
with:
41-
go-version: 1.23
41+
go-version: stable
4242
- name: Cache Go modules
4343
uses: actions/cache@v4
4444
with:

.github/workflows/lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
name: Clean go mods
2727
runs-on: ubuntu-latest
2828
steps:
29-
- name: Set up Go 1.23.3
29+
- name: Set up Go
3030
uses: actions/setup-go@v5
3131
with:
32-
go-version: '1.23.3'
32+
go-version: stable
3333
- name: Install gomods
3434
run: go install github.com/jmank88/[email protected]
3535
- name: Check out code
@@ -88,7 +88,7 @@ jobs:
8888
use-go-cache: true
8989
go-cache-dep-path: ${{ matrix.project.path }}go.sum
9090
- name: golangci-lint ${{ needs.tools.outputs.golangci-lint-version }}
91-
uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # v6.3.2
91+
uses: golangci/golangci-lint-action@818ec4d51a1feacefc42ff1b3ec25d4962690f39 # v6.4.1
9292
with:
9393
version: v${{ needs.tools.outputs.golangci-lint-version }}
9494
args: --out-format checkstyle:golangci-lint-report.xml

.github/workflows/parrot-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ jobs:
3131
mask-password: 'true'
3232
env:
3333
AWS_REGION: ${{ secrets.AWS_REGION }}
34+
- name: Login to Docker Hub
35+
uses: docker/login-action@v3
36+
with:
37+
username: kalverra
38+
password: ${{ secrets.KALVERRA_DOCKER_PASSWORD }}
3439
- name: Set up Go
3540
uses: actions/setup-go@v5
3641
with:
3742
go-version: stable
43+
cache-dependency-path: ./parrot/go.mod
3844
- name: Goreleaser Release
3945
uses: goreleaser/goreleaser-action@v6
4046
with:
@@ -45,4 +51,6 @@ jobs:
4551
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4652
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
4753
IMAGE_PREFIX: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
48-
IMAGE_TAG: ${{ github.ref_name}}
54+
IMAGE_TAG: ${{ github.ref_name }}
55+
DOCKER_USERNAME: kalverra
56+
DOCKER_PASSWORD: ${{ secrets.KALVERRA_DOCKER_PASSWORD }}

.golangci.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ linters-settings:
2727
local-prefixes: github.com/smartcontractkit/chainlink-testing-framework/lib
2828
gosec:
2929
exclude-generated: true
30-
govet:
31-
# report about shadowed variables
32-
check-shadowing: false
3330
errorlint:
3431
# Allow formatting of errors without %w
3532
errorf: false
@@ -71,12 +68,8 @@ linters-settings:
7168
- name: modifies-parameter
7269
- name: identical-branches
7370
- name: get-return
74-
# - name: flag-parameter
75-
# - name: early-return
7671
- name: defer
7772
- name: constant-logical-expr
78-
# - name: confusing-naming
79-
# - name: confusing-results
8073
- name: bool-literal-in-expr
8174
- name: atomic
8275
issues:

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
golang 1.23.3
1+
golang 1.23.4
22
nodejs 18.20.3
33
k3d 5.6.3
44
act 0.2.52
5-
golangci-lint 1.62.0
5+
golangci-lint 1.64.5
66
actionlint 1.6.26
77
shellcheck 0.9.0
88
helm 3.15.2

book/src/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [Test Configuration](./framework/test_configuration_overrides.md)
2121
- [Exposing Components](framework/components/state.md)
2222
- [Debugging Tests](framework/components/debug.md)
23+
- [Debugging CI Runs](framework/components/debug_ci.md)
2324
- [Debugging K8s Chaos Tests](framework/chaos/debug-k8s.md)
2425
- [Components Cleanup](framework/components/cleanup.md)
2526
- [Components Caching](framework/components/caching.md)
@@ -99,6 +100,7 @@
99100
- [Start local observability stack](./libs/wasp/how-to/start_local_observability_stack.md)
100101
- [Try it out quickly](./libs/wasp/how-to/run_included_tests.md)
101102
- [Chose between RPS and VUs](./libs/wasp/how-to/chose_rps_vu.md)
103+
- [Configure requests per minute or hour](./libs/wasp/how-to/rps_per_minute.md)
102104
- [Define NFRs and check alerts](./libs/wasp/how-to/define_nfr_check_alerts.md)
103105
- [Use labels](./libs/wasp/how-to/use_labels.md)
104106
- [Incorporate load tests in your workflow](./libs/wasp/how-to/incorporate_load_tests.md)

book/src/framework/chaos/debug-k8s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd infra/chaosmesh-playground
88
devbox run up
99
```
1010

11-
Overview the services
11+
Check the services
1212
```
1313
devbox shell
1414
k9s

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ arm64 f4hrenh9it/solana:latest - used locally
1616
contracts_dir = "."
1717
# optional, in case you need some custom image
1818
# image = "solanalabs/solana:v1.18.26"
19+
# you can add docker cmd params, for example to clone some contracts
20+
docker_cmd_params = ["--clone", "y9MdSjD9Beg9EFaeQGdMpESFWLNdSfZKQKeYLBfmnjJ", "-u", "https://api.mainnet-beta.solana.com"]
21+
1922

2023
# optional
2124
# To deploy a solana program, we can provide a mapping of program name to program id.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Debugging CI Runs
2+
3+
Combining test and container logs for debugging in CI can be cumbersome, so we’ve simplified the process with a command that downloads, unzips, and uploads them to a local Loki instance, enabling you to leverage the full power of LogQL.
4+
5+
Spin up the stack and upload some data
6+
```
7+
ctf obs u
8+
```
9+
10+
## Raw logs from GitHub step URL
11+
12+
Go to your test run and get the raw logs URL
13+
![raw-logs-url.png](raw-logs-url.png)
14+
15+
```
16+
ctf obs l -u "$your_url"
17+
```
18+
Click the resulting URL after upload is finished to open the filter
19+
20+
## Logs from GHA artifacts
21+
22+
Get the `Run ID` from GitHub UI, ex `actions/runs/$run_id`, download the artifact (in case of `CTFv2` it'd be just one dir), then run
23+
```
24+
gh run download $run_id
25+
ctf obs l -d $artifact_dir
26+
```
27+
Click the resulting URL after upload is finished to open the filter
28+
29+

0 commit comments

Comments
 (0)