-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (28 loc) · 904 Bytes
/
action.yml
File metadata and controls
30 lines (28 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: DiffKeeper Flight Recorder
description: Record filesystem changes during CI steps for debugging flaky tests
inputs:
command:
description: The command to run and record
required: true
state-dir:
description: Directory to store the trace
default: diffkeeper-trace
runs:
using: composite
steps:
- name: Install DiffKeeper
shell: bash
run: |
curl -sfL https://github.com/saworbit/diffkeeper/releases/latest/download/install.sh | sh
sudo cp ./bin/diffkeeper /usr/local/bin/
- name: Record
shell: bash
run: |
# Run with sudo to allow eBPF attachment
sudo diffkeeper record --state-dir="${{ inputs.state-dir }}" -- ${{ inputs.command }}
- name: Upload Trace (On Failure)
if: failure()
uses: actions/upload-artifact@v4
with:
name: diffkeeper-trace
path: ${{ inputs.state-dir }}