Uh oh!
There was an error while loading. Please reload this page.
TEZ-4666: Migrate tez-tools python scripts to python3 - #444
Conversation
| with open(dag_json_file1) as data_file: | ||
| file1_dag_json = json.load(data_file)["dag"] if file1_using_dag_json else json.load(data_file) | ||
| counters = file1_dag_json['otherinfo']['counters'] | ||
| for group in counters['counterGroups']: |
abstractdog
commented
Nov 21, 2025
this is awesome @Aggarwal-Raghav , thanks! +1 |
Aggarwal-Raghav
commented
Nov 21, 2025
The goal was to keep the changes at minimum and convert to python3. Otherwise there is scope of improvement in scripts by using |
abstractdog
commented
Nov 21, 2025
yeah, small refactors are always welcome, absolutely fit this PR |
tez-yetus
commented
Nov 21, 2025
💔 -1 overall
This message was automatically generated. |
maheshrajus
commented
Nov 21, 2025
LGTM |
Aggarwal-Raghav
commented
Nov 21, 2025
thanks for the review @maheshrajus , sure, I'll fix the failures. |
Aggarwal-Raghav
commented
Nov 21, 2025
@maheshrajus@abstractdog , it seems that the pylint is not working in yetus based on /branch-pylint-stderr.txt , Also, 1 major flaw in python scripts are, tabs are not converted to spaces and has un-even indentation. Scripts are old and requires some decent changes. Personally, I'm ready and committed to fix them. Will also accomodate that ![]() |
abstractdog
commented
Nov 21, 2025
thanks a lot for taking a look at this!
|
ruff format
i have removed the tabs with space (just indentation change). that should fix the /blanks-eol.txt/blanks-tabs.txt and requirements.txt for now |
tez-yetus
commented
Nov 21, 2025
💔 -1 overall
This message was automatically generated. |
Aggarwal-Raghav
commented
Nov 21, 2025
Earlier pylint rating: pylint rating after reformatting: |
patch looks good to me now, thanks @Aggarwal-Raghav, I'm merging this soon |
Thanks for merging this @abstractdog . I'll create the follow-up JIRA to fix pylint errors and maybe further improving the scripts. |



BEFORE FIX:


AFTER FIX:

