Skip to content

Make previous test detection work for other projects and hosts

What does this MR do and why?

Previous test detection may need to run in the context outside of the canonical repo. For example, community contributions from a fork

This change will query pipelines from the project where they are being executed.

Project where pipelines are running could be a known gitlab project or a fork. The context is gathered from the failed pipeline itself. The project associated with the failed pipeline is where builds should always be queried.

Scenarios include:

  • Non-fork MRs previous pipeline on target and new pipeline on same
  • Fork MRs previous pipeline on own project and new pipeline on target
  • Fork MRs previous pipeline on target project and new pipeline on fork

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #343954 (closed)

Edited by Mark Fletcher

Merge request reports