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

Using run_sh output in "description" arg results in a future reference string #2571

Open
MegaRedHand opened this issue Oct 17, 2024 · 2 comments
Labels
bug Something isn't working cli For bugs relating to the CLI papercut

Comments

@MegaRedHand
Copy link

What's your CLI version?

1.3.1

Description & steps to reproduce

I'm using run_sh to get a value from a JSON file artifact. I later use the output in the description of a call to run_sh that uses that value. This description contains a reference string instead of the runtime value:

... {{kurtosis:195f3ae3b53a4f83979445a725695a37:output.runtime_value}}

A workaround would be to print the value, but it's not the same.

Desired behavior

I expected the reference string to be replaced with the runtime value.

What is the severity of this bug?

Papercut; this bug is frustrating, but I have a workaround.

What area of the product does this pertain to?

CLI: the Command Line Interface

@MegaRedHand MegaRedHand added the bug Something isn't working label Oct 17, 2024
@github-actions github-actions bot added cli For bugs relating to the CLI papercut labels Oct 17, 2024
@tedim52
Copy link
Contributor

tedim52 commented Oct 17, 2024

Ah so the descriptions are created and populated at interpretation time, and at that time the value isn't known. Curious if there's a reason you'd like to use that value in a description as opposed to a print?

@MegaRedHand
Copy link
Author

Just because the info is related to the command in the run_sh.
I'm generating a value with the first run_sh and later acting on that value inside the second run_sh, so I was trying to somehow convey that information, but it's true that it can be done with a print. I was unsure if this was intended or not, so I marked it as bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli For bugs relating to the CLI papercut
Projects
None yet
Development

No branches or pull requests

2 participants