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

actions/setup-debugger: Pause for 1 second after interrupting an exec... #105

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Aug 14, 2024

...to allow /proc/$pid/cmdline to have contents. It consistently seemed to be empty (?) on GitHub Actions runners without this brief sleep. This hacky solution worked in the moment, and so it's what I'm committing since its tested. There are likely better solutions that don't rely on sleeping, like checking for the property we care about (e.g. does /proc/$pid/cmdline have contents?), but I didn't try those and so don't want to commit something that doesn't work.

Log the full argv for an easier time debugging the debugger next go around.

Checklist

  • Checks pass

This binary may be present during local development and testing, so stop
it from cluttering `git status` or accidentally getting committed.
…to allow /proc/$pid/cmdline to have contents.  It consistently seemed
to be empty (?) on GitHub Actions runners without this brief sleep.
This hacky solution worked in the moment, and so it's what I'm
committing since its tested.  There are likely better solutions that
don't rely on sleeping, like checking for the property we care about
(e.g. does /proc/$pid/cmdline have contents?), but I didn't try those
and so don't want to commit something that doesn't work.

Log the full argv for an easier time debugging the debugger next go
around.
@tsibley tsibley force-pushed the trs/actions/setup-debugger/fix-empty-cmdline-race branch from 1c15abc to ffe4299 Compare August 15, 2024 00:03
@tsibley tsibley merged commit 21f6afd into master Aug 15, 2024
44 checks passed
@tsibley tsibley deleted the trs/actions/setup-debugger/fix-empty-cmdline-race branch August 15, 2024 00:24
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

Successfully merging this pull request may close these issues.

1 participant