Skip to content

Commit 669343e

Browse files
committed
add docs
1 parent 8b7a515 commit 669343e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
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)