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

Verbose mode, or debug output #40

Open
turion opened this issue Jun 25, 2024 · 5 comments
Open

Verbose mode, or debug output #40

turion opened this issue Jun 25, 2024 · 5 comments

Comments

@turion
Copy link
Contributor

turion commented Jun 25, 2024

I often find myself debugging why it doesn't work as intended on Github Actions, which is cumbersome. It would be great if there was a verbose mode, or if get-tested would always produce debug output when used as an action. E.g. when I look at this:

https://github.com/turion/time-domain/actions/runs/9665355746/job/26662232443?pr=21#step:2:134

I can't really see what the output of the run was. If it could just echo that, it would already be helpful.

@Kleidukos
Copy link
Owner

Kleidukos commented Jun 25, 2024

Just so we're clear, compared to this output, what do you need?

image

@Kleidukos
Copy link
Owner

(also you're not using the latest version, it's 0.1.7.0 now)

@turion
Copy link
Contributor Author

turion commented Jun 25, 2024

Ideally, it would print the output it just created. For example, it might cat $GITHUB_OUTPUT. Then I can see immediately whether get-tested produced the right matrix.

In my situation, I had another job that needed the output of get-tested, but I forgot to specify a github actions dependency with needs:, so it triggered the action too soon, when get-tested wasn't done yet. This looked as if get-tested had produced an incorrect JSON instead.

@Kleidukos
Copy link
Owner

Got it, I'll take care of it around the end of next week because I'm neck-deep into other problems. If it's too long for you I'll gladly review a PR. :)

@mmhat
Copy link
Contributor

mmhat commented Aug 14, 2024

@turion As a workaround, you can run the "Generate matrix from cabal" job with debug logging enabled.
Then the generated JSON shows up in the logs: https://github.com/mmhat/os-string-aeson/actions/runs/10343168770/job/28737038619#step:5:17

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

No branches or pull requests

3 participants