8000 Add pause flag by jonallured · Pull Request #68 · Shopify/roast · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add pause flag #68

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

Merged
merged 2 commits into from
May 22, 2025
Merged

Add pause flag #68

merged 2 commits into from
May 22, 2025

Conversation

jonallured
Copy link
Contributor

This PR adds support for a pause flag that takes a step name. When that step name comes up it triggers a binding.irb session. Fun fact prior to this PR that location had a local variable name called step - can you guess what happened when attempting to reference that var? That's right it.....stepped to the next line. 😝

So in order to mitigate that I also reworked the locals in that method so that there were no collisions.

Paired on this with @nfgrep 🍐

Closes #16

when String
execute_string_step(step)
execute_string_step(workflow_step)
Kernel.binding.irb if workflow.pause_step_name == step
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nfgrep this used to be extracted to a separate method but....then the context wasn't at this code location and the step local wasn't in scope. Move this back and then was able to wrangle Minitest as seen in that file below.

Copy link
Contributor
@parruda parruda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!
I can only use it on steps that have a name, but that's ok.

@obie obie merged commit 34fb5a9 into main May 22, 2025
4 checks passed
@jonallured jonallured deleted the add-pause-flag branch May 23, 2025 14:21
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.

Pause at step command-line option
3 participants
0