@@ -127,57 +127,3 @@ def compare_folders(folder1, folder2, output_file):
127
127
128
128
comment_pr (sys .argv [1 ], sys .argv [2 ], sys .argv [3 ],
129
129
sys .argv [4 ], sys .argv [5 ], sys .argv [6 ])
130
-
131
-
132
- # def compare_generated_and_repo_files():
133
- # languages = ['java']
134
-
135
- # all_ok = True
136
-
137
- # for lang in languages:
138
- # repo_output_rst = settings.repo_output_rst.format(language=lang)
139
- # repo_output_csv = settings.repo_output_csv.format(language=lang)
140
-
141
- # generated_output_rst = settings.generated_output_rst.format(
142
- # language=lang)
143
- # generated_output_csv = settings.generated_output_csv.format(
144
- # language=lang)
145
-
146
- # exists = check_file_exists(repo_output_rst)
147
- # if not exists:
148
- # sys.exit(1)
149
-
150
- # exists = check_file_exists(repo_output_csv)
151
- # if not exists:
152
- # sys.exit(1)
153
-
154
- # exists = check_file_exists(generated_output_rst)
155
- # if not exists:
156
- # sys.exit(1)
157
-
158
- # exists = check_file_exists(generated_output_csv)
159
- # if not exists:
160
- # sys.exit(1)
161
-
162
- # docs_folder = settings.documentation_folder_no_prefix.format(
163
- # language=lang)
164
-
165
- # rst_ok = compare_files(repo_output_rst, generated_output_rst)
166
- # if not rst_ok:
167
- # print("The generated file doesn't match the one in the codebase. Please check and fix file '" +
168
- # docs_folder + settings.output_rst_file_name + "'.", file=sys.stderr)
169
- # csv_ok = compare_files(repo_output_csv, generated_output_csv)
170
- # if not csv_ok:
171
- # print("The generated file doesn't match the one in the codebase. Please check and fix file '" +
172
- # docs_folder + settings.output_csv_file_name + "'.", file=sys.stderr)
173
-
174
- # if not rst_ok or not csv_ok:
175
- # print("The generated CSV coverage report files for '" + lang + "' don't match the ones in the codebase. Please update the files in '" +
176
- # docs_folder + "'. The new files can be downloaded from the artifacts of this job.", file=sys.stderr)
177
- # all_ok = False
178
- # else:
179
- # print("The generated files for '" + lang +
180
- # "' match the ones in the codebase.")
181
-
182
- # if not all_ok:
183
- # sys.exit(1)
0 commit comments