Repository navigation
chore(tests): archive test results in json format with CI runs - #9011
rajatjindal wants to merge 1 commit into
Conversation
85bbba4 to
f46cdaf
Compare
|
I want to open it up for discussion. The main objective of this PR is to add test results as artifact to the github actions runs. The next step is to write a tool to ingest these test results and get some analytics from it. (identify flakes, execution times trends etc) |
gerhard
left a comment
There was a problem hiding this comment.
This is almost there!
I can definitely see us approving & merging this after this is rebased against main & all conflicts are solved.
jedevc
left a comment
There was a problem hiding this comment.
@vito removed gotestsum in #7532 (comment).
I can't fully remember why, but probably worth checking first.
| WithEnvVariable("_EXPERIMENTAL_DAGGER_RUNNER_HOST", endpoint). | ||
| With(t.Dagger.withDockerCfg) // this avoids rate limiting in our ci tests | ||
| With(t.Dagger.withDockerCfg). // this avoids rate limiting in our ci tests | ||
| WithExec([]string{"sh", "-c", "go install gotest.tools/[email protected]"}) |
There was a problem hiding this comment.
We should avoid installs at this point - this will require a fresh download every single time we change any of the things in the pipeline above.
No big reason, just seemed redundant with the new |
Hi @vito, could you please elaborate which part of the PR do you mean here? also do you happen to have some more details on the analytics we are planning on introducing in the cloud? thanks |
|
@rajatjindal Sorry, I meant basically the whole PR - my understanding is the goal of this PR is to generate a test report so we can analyze test performance over time, right now with some external system (?) consuming those JSON files. That's exactly the goal of analytics in Cloud, but the plan there is to use the span data that we already emit instead of requiring the user to generate a test report (with a compat. layer for converting reports to OTel if there isn't any native test integration available). But, that's not currently in progress - we're probably a few iterations away, so it makes sense to go forward with this for now. 👍 |
f46cdaf to
f744193
Compare
| return t.publishTestResults(ctx, ctr) | ||
| } | ||
|
|
||
| func (t *Test) publishTestResults(ctx context.Context, ctr *dagger.Container) error { |
There was a problem hiding this comment.
Can we split this publishing up to the dashboard site into a separate PR?
I'm a little worried about exporting our test results to an external service that can go down that we don't have full control over. I think we need more discussion on this. If we do do this, I don't think it should be part of every test call, which is also used locally - it would need to have logic to only apply in CI.
The rest of the PR around gotestsum/etc looks good, and I don't want to block those changes from getting in while we're discussing that.
There was a problem hiding this comment.
apologies for the noise. But this endpoint is temporary here. Me and @gerhard had discussion regarding this and we are going to deploy this service on dagger infrastructure. This is me just testing out stuff and making sure other things are aligned and work.
There was a problem hiding this comment.
I just changed this PR back to being a draft PR until I am done testing other things.
There was a problem hiding this comment.
Hi @jedevc
The URL has been updated to post the test results to dashboard deployed on dagger infra. I hope we can mark this comment as resolved?
7d8809a to
752a463
Compare
752a463 to
86a93ab
Compare
89ef579 to
3c85637
Compare
|
to make sure we don't miss it among other things: there is a failure happening which seems likely due to these changes: I am trying to figure out why this is happening. |
this is now fixed. @gerhard @jedevc I believe this PR is ready for review/merge. Thanks |
Signed-off-by: Rajat Jindal <[email protected]>
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR was closed because it has been stalled for 7 days with no activity. |
this is just a poc to try out gotestsum with CI. The benefits includes a little clearer output (more work needs to be done there) and that we can archive results in a json file, which we can then ingest in a tests dashboard to look at the trends over the executions.
happy to discuss if folks have opinions/concerns regarding this. I am just evaluating how this can improve debugging of CI and finding flakes.