Exclude non-E2E related jobs from appearing in Test Session issues
Problem
The rspec-flaky
job fails often and thus appears in the Test Session issue frequently.
Proposal
Looks like this is because generate_test_session.rb
simply looks up all the failed jobs in the pipeline (https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling/-/blob/main/lib/gitlab_quality/test_tooling/report/generate_test_session.rb#L90-93). This unfortunately includes rspec-flaky
in the list. What we can do is to do an additional filter of the results to only include jobs in the test-staging
stage.
Edited by Richard Chong