Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 4.5.0
-
None
-
ghx-label-10
Description
While testing the new version of script bin/jenkins/critique-gerrit-review.py to compare branch-4.4.0 and HEAD, it found an undefined name 'index' in tests/util/workload_management.py:
assert value == expected, ('per-host fragment instances incorrect.' ' expected="{0}" actual="{1}"').format(expected, data[index])
This is due to this change only replace 'data[index]' with 'value' in the first line but forgot to do it in the second line:
https://gerrit.cloudera.org/c/21358/11/tests/util/workload_management.py#274
To avoid such issues in the future, we might need to improve flake8-diff to also look into several lines of codes around the changes.
CC jasonmfehr, MikaelSmith, rizaon