Skip to content

Commit 04a730d

Browse files
committed
re-write, separate steps/jobs analysis
1 parent 74b656e commit 04a730d

File tree

9 files changed

+653
-216
lines changed

9 files changed

+653
-216
lines changed

.github/workflows/framework.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ jobs:
5050
go-modules-${{ hashFiles('**/go.sum') }}-${{ runner.os }}-framework
5151
- name: Install dependencies
5252
run: go mod download
53+
- name: Run CLI Tests
54+
if: steps.changes.outputs.src == 'true'
55+
run: |
56+
go test -v -count 1 -run TestCLI
5357
- name: Run Docker Component Tests
5458
if: steps.changes.outputs.src == 'true'
5559
run: |

.nancy-ignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ CVE-2024-10086 # Improper Neutralization of Input During Web Page Generation ('C
1515
CVE-2024-51744 # CWE-755: Improper Handling of Exceptional Conditions
1616
CVE-2024-45338 # CWE-770: Allocation of Resources Without Limits or Throttling
1717
CVE-2024-45337 # CWE-863: Incorrect Authorization in golang.org/x/[email protected]
18-
CVE-2025-24883 # CWE-248: Uncaught Exception
18+
CVE-2025-24883 # CWE-248: Uncaught Exception
19+
CVE-2025-22869 # CWE-770: Allocation of Resources Without Limits or Throttling

book/src/framework/components/analyze_ci.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,36 @@
22

33
We offer a straightforward CLI tool designed to analyze CI runs, focusing on Jobs and Steps, to provide deeper insights into system-level tests.
44

5+
![img_1.png](img_1.png)
6+
7+
## What to look for
8+
9+
Check execution times, results are sorted by `median`.
10+
11+
We exclude any runs without `conclusion` or if they have `conclusion: "skipped"`.
12+
13+
🔄 - if you see high numbers here it means your pipeline is flaky, and it does not pass from the first attempt on some commits. It may indicate test flakiness!
14+
15+
🚫 - if numbers are high there it means your pipeline is constantly `cancelled` so it wastes time without bringing any results/value!
16+
517
## Examples
618
```
719
# GITHUB_TOKEN must have access to "actions" API
820
export GITHUB_TOKEN=...
921
10-
# E2E tests from core, the last day
11-
ctf ci -r "smartcontractkit/chainlink" -w "Integration Tests"
22+
# E2E test jobs from core for the last day
23+
ctf ci -r "smartcontractkit/chainlink" -w "CI Core" -t jobs
24+
25+
# E2E test steps from core for the last day
26+
ctf ci -r "smartcontractkit/chainlink" -w "CI Core" -t steps
27+
28+
# E2E tests from core for the last week (1k jobs limit!)
29+
ctf ci -r "smartcontractkit/chainlink" -w "CI Core" -t jobs -s 7
30+
31+
# E2E tests from core for some specific days from 5 days ago to 3 days ago
32+
ctf ci -r "smartcontractkit/chainlink" -w "CI Core" -t jobs -s 5 -e 3
1233
1334
# Last 3 days runs for e2e framework tests
14-
ctf ci -r "smartcontractkit/chainlink-testing-framework" -w "Framework Golden Tests Examples" -d 3
35+
ctf ci -r "smartcontractkit/chainlink-testing-framework" -w "Framework Golden Tests Examples" -t jobs -s 3
1536
```
37+
You can also use `-debug` flag to dump all the workflow runs/jobs to `ctf-ci-debug` folder.
163 KB
Loading

0 commit comments

Comments
 (0)