-
Notifications
You must be signed in to change notification settings - Fork 937
ci: Print go test stats #6855
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
ci: Print go test stats #6855
Conversation
Example output: {
"packages": [
{
"name": "agent",
"time": 21.092
},
{
"name": "agent/reaper",
"time": 0,
"skip": true
},
{
"name": "agent/usershell",
"time": 0,
"skip": true
},
{
"name": "buildinfo",
"time": 0.004
},
{
"name": "cli",
"time": 66.449,
"fail": true,
"num_failed": 2
}
// ...
],
"tests": [
{
"package": "cli",
|
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.
I left one comment regarding reviewing this PR, but feel free to ignore it if it slows you down 👍
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 much easier to review looking at provided samples :)
@@ -302,7 +302,14 @@ jobs: | |||
echo "cover=false" >> $GITHUB_OUTPUT | |||
fi | |||
|
|||
gotestsum --junitfile="gotests.xml" --packages="./..." -- -parallel=8 -timeout=7m -short -failfast $COVERAGE_FLAGS | |||
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" --packages="./..." -- -parallel=8 -timeout=7m -short -failfast $COVERAGE_FLAGS |
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.
Should we run it with PostgreSQL too?
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.
We do, see Makefile
.
Fixes #6676