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

Modify shell scripts to pass shellcheck --severity=warning #3371

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

johnbley
Copy link
Member

Got all the shell scripts to pass shellcheck --severity=warning and added a CI step to ensure it stays that way.
The fixes were mostly the usual quoting rules. One additional change was that I modified the instrument scripts to exec the original script rather than run it as a subprocess. This is the standard way we do it in the lambda instrumentation

@johnbley johnbley requested a review from a team April 15, 2024 16:15
@johnbley
Copy link
Member Author

Test failures appear unrelated:

error NU1902: Warning As Error: Package 'OpenTelemetry.Instrumentation.Http' 1.8.0 has a known moderate severity vulnerability

build.sh Show resolved Hide resolved
@Kielek
Copy link
Contributor

Kielek commented Apr 16, 2024

Test failures appear unrelated:

error NU1902: Warning As Error: Package 'OpenTelemetry.Instrumentation.Http' 1.8.0 has a known moderate severity vulnerability

Should be fixed by #3372 shortly.

@Kielek
Copy link
Contributor

Kielek commented Apr 16, 2024

One more things. CI converts https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/main/script-templates/otel-dotnet-auto-install.sh.template to the final sh file by executing BuildInstallationScripts nuke steps. I think, this file should also be covered by the shellcheck.

@johnbley
Copy link
Member Author

One more things. CI converts https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/main/script-templates/otel-dotnet-auto-install.sh.template to the final sh file by executing BuildInstallationScripts nuke steps. I think, this file should also be covered by the shellcheck.

👍 I added *.sh.template to the CI step.

@pjanotti pjanotti merged commit e822c33 into open-telemetry:main Apr 18, 2024
40 checks passed
@johnbley johnbley deleted the shell_fixes branch April 22, 2024 13:29
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.

6 participants