diff options
author | James E. Blair <jeblair@redhat.com> | 2020-05-07 14:01:38 -0700 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2020-05-07 14:01:38 -0700 |
commit | 0971847a50c317233733ab6dd921ae3b36f7793e (patch) | |
tree | dce82f10114f510d0da9b1083bb073c5a0987cdc | |
parent | 7381be2573d78e8e78885d7ca45cdb78cdb707ff (diff) | |
download | zuul-0971847a50c317233733ab6dd921ae3b36f7793e.tar.gz |
Ignore source_context and description in job changes
When detecting whether a job with file matchers has changed and
should be run, ignore the source_context and description fields
since they should not materially affect the job.
Change-Id: Idd8707a40022a1ca8434b1bfdee0b178aa3cfe3e
-rw-r--r-- | zuul/model.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/model.py b/zuul/model.py index 04961dde1..a5dd8827d 100644 --- a/zuul/model.py +++ b/zuul/model.py @@ -3021,7 +3021,8 @@ class QueueItem(object): new_job_dict = job.toDict(self.pipeline.tenant) # Ignore changes to file matchers since they don't affect # the content of the job. - for attr in ['files', 'irrelevant_files']: + for attr in ['files', 'irrelevant_files', + 'source_context', 'description']: old_job_dict.pop(attr, None) new_job_dict.pop(attr, None) if (new_job_dict != old_job_dict): |