Skip to content

Add column with Job link of a Model Candidate

Eduardo Bonet requested to merge 406784-parse-ci-variables into master

What does this MR do and why?

Adds a column displaying a link to the Ci job associated to a candidate, if it has one. This value is populated if the user runs the mlflow client on a ci pipeline (!117412 (merged)).

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Enable the feature flag

    echo "Feature.enable(:ml_experiment_tracking)" | bundle exec rails c
  2. Seed the database with project that have jobs

    bin/rake "gitlab:seed:runner_fleet"
  3. In rails console bundle exec rails c, create experiment and candidates for on the project with he first build

    build = Ci::Build.first
    project_id = Ci::Build.first.project_id
    exp = Ml::Experiment.create!(name: 'Gitlab Experiment', user_id: 1, project_id: project_id)
    exp.candidates.create!(name: 'with job', user_id: 1, start_time: 0, project_id: project_id, ci_build: build)
    exp.candidates.create!(name: 'without job', user_id: 1, start_time: 0, project_id: project_id)
  4. Navigate to the candidate "/path_to_project/-/ml/experiment/1", where the project is the one from build (likely rf-top-level-group-1/rf-group-1.1/rf-group-1.1.1/rf-project-1-1-1-1/-/ml/experiments/1)

  5. Note that 'with job' has a link to a job, but 'without job' shows a dash.

MR acceptance checklist

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

Related to #406784 (closed)

Edited by Eduardo Bonet

Merge request reports

Loading