We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5f400 commit 484f832Copy full SHA for 484f832
pipe/pipe.py
@@ -207,7 +207,17 @@ def build_report_data(failure_count):
207
208
failures = []
209
if os.path.exists("test-results/phpcs.xml"):
210
- failures = read_failures_from_file(f"test-results/phpcs.xml")
+ try:
211
+ failures = read_failures_from_file(f"test-results/phpcs.xml")
212
+ except Exception as e:
213
+ self.log_error(f"Failed to parse phpcs.xml: {e}") # log error
214
215
+ with open("test-results/phpcs.xml", 'r') as f:
216
+ content = f.read()
217
+ self.log_debug(f"phpcs.xml content (first 500 chars): {content[:500]}") # show start of file
218
+ except:
219
+ pass
220
+ raise e
221
222
bitbucket_api.create_report(
223
"Code standards report",
0 commit comments