Skip to content

Generate slots for mrtests

Robert Currie requested to merge mrtests into master

This MR is the code which constructs the slot descriptions required to construct reference and mr builds from gitlab. (Now updated to work with master)

This code works by taking the MR_TOKEN from the environment which has been generated previously by LbNightlyTools and then constructs slots based on this data.

The general process is:

  1. Take a reference slot (lhcb-master or run2) and clone it to get all of the projects this depends on.
  2. Find the last time that any MR was forked from the data in MR_TOKEN.
  3. From the time of the last fork, take the commit ID for all external projects.*
  4. Construct the ref slot which contains the target branch of the MR as well as the fixed external project tags.
  5. Construct the mr slot which contains the head of the MR as well as the fixed external project tags.
  6. Return these slots.
  • It is possible to overload a commit ID used by an external project using the correct data in MR_TOKEN which can be defined in the gitlab command.

This is part of https://its.cern.ch/jira/browse/LBCORE-1743

Edited by Robert Currie

Merge request reports