How can I debug CI tests?

  • Hi, do you have a concrete example of your unit tests / code in a repository, and how you execute them in your CI/CD pipeline?

    > I want to be able to instantly see the route cause of the error.

    If you're using JUnit test reports to collect the failed tests, I'd recommend adjusting the unit tests themselves and their failure output. Happy to help with code suggestions, if I know the language.

    https://docs.gitlab.com/ee/ci/unit_test_reports.html

    You can see the failed jobs directly in the MR, similar to the screenshot in this presentation: https://docs.google.com/presentation/d/1jZYHIXjL6CDBQVblDvxU...

    > Is it possible to instrument tests with APM agents to see traces?

    I'm not sure how traces with spans, context and start/end time could help. You're probably looking more into raw job logs and their output. Can you elaborate a bit more on this idea?