question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error logging on Github Actions

See original GitHub issue

Quality of life issue, within the GitHub actions logs when yargs fails to parse an option it doesn’t seem to want to display which argument it failed to parse.

Locally there is no issue:

~/projects/cml$ ./bin/cml.js runner --fail-arg 
cml.js runner

Launch and register a self-hosted runner

Options:
...

Unknown arguments: fail-arg, failArg

However, when this happens on an internal project it does not print the argument as expected: ghar-error-empty

I tried and failed to simply reproduce a similar outcome But on an internal project, this is consistently reproducible…

I’m not sure if this is a strange error with the GitHub runner environment or something that has to do with the logger is printing/being passed through?

https://github.com/iterative/cml/blob/4508871d60811210481482bc461fcdc245e52c92/bin/cml.js#L10-L26

and here

https://github.com/yargs/yargs/blob/59a86fb83cfeb8533c6dd446c73cf4166cc455f2/lib/usage.ts#L40-L75

If you can spell correctly this isn’t an issue…😉 so I’d consider this a very low priority if one at all and --cloud-startup-scrip is indeed not an argument 😞

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
casperdclcommented, Sep 24, 2021
1reaction
dacbdcommented, Sep 22, 2021

I agree on this is not something that should be resolved in CML, I initially thought there was something strange going on with how the logging was being done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using workflow run logs - GitHub Docs
Viewing logs to diagnose failures · On GitHub.com, navigate to the main page of the repository. · Under your repository name, click Actions....
Read more >
Is there a way to log error responses from Github Actions?
I've thought about getting the error in the python script but I don't want to have to add the same code to every...
Read more >
GitHub Actions: Re-run jobs with debug logging
You can now enable debug logging when you re-run jobs in a GitHub Actions workflow run. This gives you additional information about the...
Read more >
Set up Tracing on GitHub Actions Workflows - Datadog Docs
The GitHub Actions CI Visibility integration also allows automatically forwarding workflow job logs to the Logs Product. To enable logs, follow these steps:....
Read more >
All of my deployments are reporting to have failed in Github ...
The error in Github Actions looks like: ... And in each of my Github Action files, I am deploying the apps like:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found