-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug: timeout was not triggered for Image Scanning Job after removing Job#agent_class #14791
Fixed bug: timeout was not triggered for Image Scanning Job after removing Job#agent_class #14791
Conversation
11faad8
to
c805ebf
Compare
@miq-bot add-label fine/yes |
@miq-bot assign @gtanzillo |
c805ebf
to
5f1feb2
Compare
@jrafanie could you review |
spec/models/job_spec.rb
Outdated
relation = double("ActiveRecord::Relations") | ||
allow(Job).to receive(:in_my_region).and_return(relation) | ||
allow(relation).to receive(:where).and_return(relation) | ||
allow(relation).to receive(:each).and_yield(@job) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create one or more jobs in the database that you check afterwards for timeout? The mocking and expectations are making it hard to tell what's going on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, stubbing removed
…ot executed for failed Image Scanning job. Fixes ManageIQ#14788
4fe0d92
to
0f98bf8
Compare
0f98bf8
to
abaf456
Compare
Checked commits yrudman/manageiq@01fb29e~...abaf456 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
…container-image-scanning Fixed bug: timeout was not triggered for Image Scanning Job after removing Job#agent_class (cherry picked from commit 532b886)
Fine backport details:
|
Bug: Container Image Scanning Jobs do not get timeout when scanning pod fails.
Issue: #14788
Fix: put back original logic (prior to #14356) but use
MiqServer
instead ofagent_class
@miq-bot add-label bug, smart state