workflow-telemetry-action icon indicating copy to clipboard operation
workflow-telemetry-action copied to clipboard

Process trace not displaying

Open HugoJP1 opened this issue 1 year ago • 4 comments

Hi I have added this action with the following configuration:

      - name: Collect Workflow Telemetry
        uses: catchpoint/workflow-telemetry-action@v2
        with:
          theme: "dark"
          comment_on_pr: "false"
          proc_trace_chart_max_count: 50

And the job executes well and displays in the workflow summary. However the process trace doesn't display at all:

image

Any ideas on what I can try to fix? I have already tried setting a lower proc_trace_chart_max_count, but with no difference in result.

HugoJP1 avatar Oct 16 '24 09:10 HugoJP1

I'm having a look into why this isn't working https://github.com/catchpoint/workflow-telemetry-action/tree/master/dist/proc-tracer. The projects binaries seem to be broken with the current github runner.

I was looking into it this weekend and it seems the binaries use eBPF to plug into the linux kernel using something like this: https://eunomia.dev/tutorials/8-exitsnoop/#exitsnoop

I'll see if i can make a working ebpf based snooper and i will opensource it when i succeed and fork this project to use them. But i can't really give a deadline for this since its purely out of curiosity i try to implement this.

I suspect ideally in a CI/CD platform something like Pyroscope or parca should be build in to do the profiling.

But sadly the metrics out of github actions is very limited and its even hard to trace if your builds are slowing down.

borissmidt avatar Nov 02 '24 21:11 borissmidt

I've now made a process tracer which logs the commands in json to the output:

https://github.com/borissmidt/proc-tracer

But now i still have to test this thing on a github actions runner and update this repo to parse the output of the command. I'm not sure how much work that will be.

borissmidt avatar Nov 05 '24 20:11 borissmidt

I've got it to work on a fork. https://github.com/borissmidt/workflow-telemetry-action/actions/runs/11759660743

borissmidt avatar Nov 09 '24 21:11 borissmidt

Duplicate of: https://github.com/catchpoint/workflow-telemetry-action/issues/71

Piedone avatar Nov 09 '24 22:11 Piedone