Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-25 00:10:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-25 00:10:12 +0300
commit65aa9cb3b665f885b5c80b817d84af6076b35f26 (patch)
tree53f3396ed5ba8acc1fe8f2f12a8ecb6e7978ae58 /spec/services
parent2ae564d6f59fc939bfdbb155d445efe97b34c1e1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ml/experiment_tracking/candidate_repository_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/services/ml/experiment_tracking/candidate_repository_spec.rb b/spec/services/ml/experiment_tracking/candidate_repository_spec.rb
index 079c36c9613..9b46675a08e 100644
--- a/spec/services/ml/experiment_tracking/candidate_repository_spec.rb
+++ b/spec/services/ml/experiment_tracking/candidate_repository_spec.rb
@@ -61,6 +61,15 @@ RSpec.describe ::Ml::ExperimentTracking::CandidateRepository, feature_category:
expect(subject.name).to eq('blah')
end
end
+
+ context 'when name is nil and no mlflow.runName is not present' do
+ let(:tags) { nil }
+ let(:name) { nil }
+
+ it 'gives the candidate a random name' do
+ expect(subject.name).to match(/[a-z]+-[a-z]+-[a-z]+-\d+/)
+ end
+ end
end
end