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

Emit Build Scans for interrupted builds #29199

Open
DavidGregory084 opened this issue May 17, 2024 · 1 comment
Open

Emit Build Scans for interrupted builds #29199

DavidGregory084 opened this issue May 17, 2024 · 1 comment
Labels
a:feature A new functionality in:build-scan

Comments

@DavidGregory084
Copy link

DavidGregory084 commented May 17, 2024

Expected Behavior

It would really be beneficial if partial Build Scans could be emitted even when a build is cancelled externally.

Current Behavior (optional)

When a build is cancelled (for example by clicking "Cancel workflow" in the GitHub Actions interface), no Build Scan is attached to the build summary:

image

Context

One of the most challenging issues to debug when using Gradle is builds which hang in CI.

This is compounded by the fact that when a build is cancelled externally, no Build Scan is emitted.

It would be really beneficial if a partially-complete Build Scan could be emitted on external cancellation, as this might give insight into the task which is causing the build to hang.

@DavidGregory084 DavidGregory084 added a:feature A new functionality to-triage labels May 17, 2024
@wolfs
Copy link
Member

wolfs commented May 17, 2024

It is quite probable that the build produced a Build Scan nonetheless. Only the tooling doesn't pick it up for the Github action, since it has been disconnected. If you use Develocity and can search for the Build Scan, it is quite probable that you find one.

I'll add this item to our backlog to see if we can do something better in that regard - aka report the scan to the user/integration even when the build is cancelled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:build-scan
Projects
None yet
Development

No branches or pull requests

2 participants