project-chip/connectedhomeip

[CI/CD] Add tracing data as attachments after CI runs

Open

#30.752 geöffnet am 30. Nov. 2023

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (1.659 Forks)batch import
CI/CD improvementsgood first issue

Repository-Metriken

Stars
 (6.410 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 5h) (375 gemergte PRs in 30 T)

Beschreibung

chip-tool supports tracing. In particular for hard to debug cases it would be beneficial to be able to view messages (json dump may be sufficient) and timing (perfetto may be useful here).

We probably should start with documentation as I could not find a propper one. https://github.com/project-chip/connectedhomeip/tree/master/src/tracing/perfetto#readme explains the perfetto side of things, however it is not ideal.

We likely need (and we can separate this in milestones/separate bugs):

  • Document how --trace-to actually works in chip-tool. In particular targets of json:<file>, json:log and pefretto:<file> or perfetto (when using a daemon) work
  • Make out tests run with tracing and add tracing data as attachments to runs (need to determine how large these are). In particular for yaml tests, we may want to only attach traces for failures to not use too much storage

Contributor Guide