Skip to content

Provide more information about status provider check failures #752

@Lms24

Description

@Lms24

Currently, when a status check fails, Craft logs

Build(s) for revision [revision] have not succeeded. Please check the revision's status.

Unfortunately, it doesn't list or provide links as to which check runs actually failed.

I just ran into a case (publish issue) where it was very hard to find out what was the problem. The failing check run did not come from a CI job configured in the repo I released from (sentry-javascript) but from an org-wide job. Which I don't see anywhere in the GH UI for release branches.

So I manually ran npx @sentry/craft@latest publish 10.39.0-alpha.0 --dry-run --log-level="Debug" to get some more information, which at least revealed the GH API endpoints craft queries. When I manually then queried the https://api.github.com/repos/getsentry/sentry-javascript/commits/<revision>/status endpoint I finally found which job failed.

Ideally, Craft could provide more information in its (non-debug) logging so that inspecting the publish logs in getsentry/publish is enough to determine which check run failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions