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

fix: better error messages during the runs #16

Merged
merged 7 commits into from
Sep 20, 2023
Merged

Conversation

artemrys
Copy link
Member

@artemrys artemrys commented Sep 4, 2023

This PR was created to address the lack of logging when there is a failure in the AppInspect API report, an example can be found here: https://github.com/splunk/splunk-dbx-add-on-for-snowflake/actions/runs/6038070637/job/16410674911.

This commit improves the logging for this GitHub Action so developer can understand most of the thing from the console output without a need to look into the HTML report.

This commit also removes couple of simple functions and embeds their functionality into the main function without losing readability.

The HTML report will be anyways downloaded and stored for Splunk repositories.

This is how it looks like when something is not working: https://github.com/splunk/splunk-add-on-for-google-workspace/actions/runs/6098067676/job/16548742124?pr=491
This is how it looks like when everything is okay: https://github.com/splunk/splunk-add-on-for-google-workspace/actions/runs/6098067676/job/16549160040?pr=491

This commit improves the logging for this GitHub Action
so developer can understand most of the thing from the console
output without a need to look into the HTML report.

This commit also removes couple of simple functions and embeds
their functionality into the main function without losing
readability.

The HTML report will be anyways downloaded and stored for Splunk
repositories.
mbruzda-splunk
mbruzda-splunk previously approved these changes Sep 6, 2023
@artemrys artemrys marked this pull request as ready for review September 6, 2023 15:50
main.py Outdated Show resolved Hide resolved
mbruzda-splunk
mbruzda-splunk previously approved these changes Sep 20, 2023
@artemrys artemrys merged commit 78f322b into main Sep 20, 2023
4 checks passed
@artemrys artemrys deleted the fix/better-error-message branch September 20, 2023 12:53
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2023
@srv-rr-github-token
Copy link
Collaborator

🎉 This PR is included in version 3.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants