-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add JSON reporter for Sauce Orchestrate #849
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MR is missing an update to the imagerunner config spec
Good call! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I ran these changes against our imagerunner example repo and this is the output I get:
{
"name": "Playwright in ImageRunner",
"duration": 121427749250,
"startTime": "2023-11-03T07:25:32.411675-07:00",
"endTime": "2023-11-03T07:27:33.839834-07:00",
"status": "Succeeded",
"platform": "",
"url": "",
"origin": ""
}
As a user, I'd be confused as to what platform
, url
and origin
represent and why they are empty.
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
} | ||
} | ||
} | ||
|
||
// cleanup removes any information that isn't relevant in the rendered report. Particularly when it comes to | ||
// artifacts, this reporter is only interested in those that have been persisted to the file system. | ||
func (r *Reporter) cleanup() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this behavior not needed anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not needed anymore do to the changes in https://github.com/saucelabs/saucectl/pull/849/files#diff-ea42af98511d2bfb326add8027a845ef0e7cfe15c81221258fdf22fd7367df6fR367 I don't think there is empty FilePath
anymore.
RDC doesn't have this issue because it appends artifacts after the error handling, which means there is no empty FilePath
. https://github.com/saucelabs/saucectl/blob/main/internal/http/rdcservice.go#L396
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Proposed changes
Add JSON reporter for Sauce Orchestrate.
The report body will be like
Types of changes
Checklist
Further comments