Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion pipe/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,17 @@ def build_report_data(failure_count):

failures = []
if os.path.exists("test-results/phpcs.xml"):
failures = read_failures_from_file(f"test-results/phpcs.xml")
try:
failures = read_failures_from_file(f"test-results/phpcs.xml")
except Exception as e:
self.log_error(f"Failed to parse phpcs.xml: {e}") # log error
try:
with open("test-results/phpcs.xml", 'r') as f:
content = f.read()
self.log_debug(f"phpcs.xml content (first 500 chars): {content[:500]}") # show start of file
except:
pass
raise e

bitbucket_api.create_report(
"Code standards report",
Expand Down