Skip to content

Label inference failing on master

Description

master:broken seems to be occurring with these specs:

 1) DevopsLabels DevopsLabels::Context#new_stage_and_group_labels_from_intelligent_inference and #comment_for_intelligent_stage_and_group_labels_inference stage: yes, group: no, category: yes, team: no (100% matching stage) => Group based on feature since feature matches stage returns a comment with a /label quick action
     Failure/Error: expect(resource.comment_for_intelligent_stage_and_group_labels_inference).to eq %(#{explanation}\n#{label_action})

       expected: "Setting label(s) ~\"group::knowledge\" ~\"section::dev\" based on ~\"Category:Wiki\" ~\"group::knowledge\".\n/label ~\"group::knowledge\" ~\"section::dev\""
            got: "/label ~\"section::dev\""

       (compared using ==)

       Diff:
       @@ -1,3 +1,2 @@
       -Setting label(s) ~"group::knowledge" ~"section::dev" based on ~"Category:Wiki" ~"group::knowledge".
       -/label ~"group::knowledge" ~"section::dev"
       +/label ~"section::dev"
...
rspec './spec/lib/devops_labels_spec.rb[1:8:31:5:1]' # DevopsLabels DevopsLabels::Context#new_stage_and_group_labels_from_intelligent_inference and #comment_for_intelligent_stage_and_group_labels_inference stage: yes, group: no, category: yes, team: no (100% matching stage) => Group based on feature since feature matches stage returns a comment with a /label quick action
rspec './spec/lib/devops_labels_spec.rb[1:8:31:6:1]' # DevopsLabels DevopsLabels::Context#new_stage_and_group_labels_from_intelligent_inference and #comment_for_intelligent_stage_and_group_labels_inference stage: yes, group: no, category: yes, team: no (100% matching stage, 2 different groups) => Manual triage required returns a comment with a /label quick action
rspec './spec/lib/devops_labels_spec.rb[1:8:31:7:1]' # DevopsLabels DevopsLabels::Context#new_stage_and_group_labels_from_intelligent_inference and #comment_for_intelligent_stage_and_group_labels_inference stage: yes, group: no, category: yes, team: no (66% matching stage) => Group based on feature since feature matches stage returns a comment with a /label quick action
rspec './spec/lib/devops_labels_spec.rb[1:8:31:8:1]' # DevopsLabels DevopsLabels::Context#new_stage_and_group_labels_from_intelligent_inference and #comment_for_intelligent_stage_and_group_labels_inference stage: yes, group: no, category: yes, team: no (50% matching stage) => Group based on feature since feature matches stage returns a comment with a /label quick action
rspec './spec/lib/devops_labels_spec.rb[1:8:31:10:1]' # DevopsLabels DevopsLabels::Context#new_stage_and_group_labels_from_intelligent_inference and #comment_for_intelligent_stage_and_group_labels_inference stage: yes, group: no, category: yes, team: no (33% matching stage) => Group based on feature since feature matches stage returns a comment with a /label quick action