Skip to content

infamy: Always send logs from DUTs to remote syslog in tests #1608

Description

@mattiaswal

Description

When tests fail in the CI it is often impossible to debug it after the run, to solve this i suggest to always send the syslog as remote syslog

Store the logs per test and per DUT, to be able to be able to trace errors from CI.

  1. test-config always setup a syslog to the test PC (test container) over the mgmt interface (IPv6)
  2. Test runs
  3. Infamy "collect" and package the logs
  4. Repeat

Example content:

logs/
   test1/
      dut1/
         kern.log
         messages
         syslog
      dut2/
         kern.log
         messages
         syslog
      dut3/
         kern.log
         messages
         syslog
   test2/
      dut1/
         kern.log
         messages
         syslog

then compress it to logs.tar.gz, if running in CI, publish it as an artifact.

Additional Information

No response

General Information

Anyone can help out by sponsoring development of new features or contributing pull requests.
Please use this issue for discussions related to the feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testRegression test relatedtriagePending investigation & classification (CCB)

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions