Skip to content
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

Report issue in job summary when build scan can't be published #326

Closed
3flex opened this issue Jun 12, 2022 · 7 comments · Fixed by #333
Closed

Report issue in job summary when build scan can't be published #326

3flex opened this issue Jun 12, 2022 · 7 comments · Fixed by #333
Assignees
Labels
bug Something isn't working
Milestone

Comments

@3flex
Copy link
Contributor

3flex commented Jun 12, 2022

At the end of this job, message in the log is:

A build scan was not published as you have not authenticated with server 'ge.detekt.dev'.

So the link the link in https://github.com/detekt/detekt/actions/runs/2481482476 doesn't work, because there's no build scan to link to, but it's unclear from the job summary what the underlying problem is unless you try clicking the link.

Perhaps splitting the table into a success/failure message, and then having another column for build scan link (or the failure message, such as in this case when the build configuration is incorrect and the build scan wasn't published) would highlight the issue more prominently.

@bigdaz bigdaz added this to the v2.2.1 milestone Jun 14, 2022
@bigdaz bigdaz self-assigned this Jun 14, 2022
@bigdaz bigdaz added the bug Something isn't working label Jun 14, 2022
@bigdaz
Copy link
Member

bigdaz commented Jun 15, 2022

Just proposing some visual options for feedback.

Here is the current summary:

Root ProjectTasksGradle VersionOutcome
passing-buildwith-build-scan7.4.2Gradle Build
failing-buildwith-build-scan7.4.2Gradle Build
passing-buildno-build-scan7.4.2Gradle Build
failing-buildno-build-scan7.4.2Gradle Build
passing-buildbuild-scan-publish-failed7.4.2Gradle Build

And here's a possible improvement:

Root ProjectTasksGradle VersionOutcomeBuild Scan™
passing-buildwith-build-scan7.4.2Gradle Build
failing-buildwith-build-scan7.4.2Gradle Build
passing-buildno-build-scan7.4.2
failing-buildno-build-scan7.4.2
passing-buildbuild-scan-publish-failed7.4.2Gradle Build

And here's a possible improvement:

Root ProjectTasksGradle VersionOutcomeBuild Scan™
passing-buildwith-build-scan7.4.2Gradle Build
failing-buildwith-build-scan7.4.2Gradle Build
passing-buildno-build-scan7.4.2Gradle Build
failing-buildno-build-scan7.4.2Gradle Build
passing-buildbuild-scan-publish-failed7.4.2Gradle Build

Note that in the case where none of the builds generate a build scan, we could potentially remove the "Build Scan" column altogether.

@runningcode
Copy link
Member

I like that the third options distinguishes the color of the build scan publication from the build success failure. I think that using the same colors can be confusing. Perhaps the "publish failed" could be orange instead of red to further distinguish it?

Other than that, my preference is for the third option.

@clayburn
Copy link
Member

I also like the third option.

Question: What will the badge link to in the "Not Published" and "Publish Failed" cases?

@bigdaz
Copy link
Member

bigdaz commented Jun 15, 2022

What will the badge link to in the "Not Published" and "Publish Failed" cases?

@clayburn I was thinking the "Not Published" and "Publish Failed" badges could link to appropriate documentation.

@alextu
Copy link
Member

alextu commented Jun 15, 2022

A bit like @runningcode said, I'd say a mix of 2nd and 3rd option ie regarding the build scan column:

  • "published" Blue badge when build scan is published, whether build is failing or not
  • "publish failed" Gray badge when build scan publication failed
  • No badge when build scan is not published (or if we want to have a badge, the "not published" Gray badge)

@bigdaz
Copy link
Member

bigdaz commented Jun 19, 2022

Thanks all for the feedback. This is what we have now, with colours and links improved: https://github.com/gradle/gradle-build-action/actions/runs/2524639182#summary-6956411171

I'm happy to do another round of polishing, but I plan to release this as v2.2.1 pretty soon.

@3flex
Copy link
Contributor Author

3flex commented Jun 19, 2022

I think that looks great, thank you for taking the feedback on board!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants