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

make exec arg handling precise (#191) #202

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

tobert
Copy link
Collaborator

@tobert tobert commented May 10, 2023

Required fixing the tests which quoted "echo hello world" as one argv, which never should have worked, but did because of sh -c.

This changes behavior in otel-cli to be more picky about how args are passed in. It might break some folks who are expecting sh -c behavior?

Gonna post the diffs/PR and have a discussion in #191.

Required fixing the tests which quoted "echo hello world" as one argv,
which never should have worked, but did because of sh -c.

This changes behavior in otel-cli to be more picky about how args are
passed in. It might break some folks who are expecting sh -c behavior?

Gonna post the diffs/PR and have a discussion in #191.
@@ -638,7 +639,7 @@ var suites = []FixtureSuite{
Config: FixtureConfig{
CliArgs: []string{
"exec", "--name", "outer", "--endpoint", "{{endpoint}}", "--fail", "--verbose", "--",
"./otel-cli", "exec", "--name", "inner", "--endpoint", "{{endpoint}}", "--tp-required", "--fail", "--verbose", "echo hello world"},
"./otel-cli", "exec", "--name", "inner", "--endpoint", "{{endpoint}}", "--tp-required", "--fail", "--verbose", "echo", "hello world"},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I hate changing the tests here but "echo hello world" was a horrible choice I made, and don't remember why.

@tobert tobert mentioned this pull request May 13, 2023
@tobert tobert merged commit b3e146d into main May 22, 2023
@tobert tobert deleted the 191-make-exec-args-precise branch May 22, 2023 20:34
shastah added a commit to shastah/otel-cli that referenced this pull request Aug 12, 2024
This example from README:
```
# otel-cli propagates context via envvars so you can chain it to create child spans
otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"
```
doesn't work, because we're running into equinix-labs#356.
It worked until `/bin/sh -c` was removed in equinix-labs#202.
shastah added a commit to shastah/otel-cli that referenced this pull request Aug 12, 2024
This example from README:

    # otel-cli propagates context via envvars so you can chain it to create child spans
    otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"

doesn't work, because we're running into equinix-labs#356.
It worked until `/bin/sh -c` was removed in equinix-labs#202.
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