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

fix: increase reliability of validation by wrapping Node.js spawned processes in SH #127

Closed
wants to merge 12 commits into from
Closed

Conversation

mmanciop
Copy link
Member

Node.js spawn and spawnAsync APIs seem rather unreliable in terms of collecting stdout and stderr that occurs close to spawned process terminating (see, e.g., nodejs/node#19218). We need the stderr of processes terminating with status code >1 to understand which validation error occurred. This PR increases the resilience of accessing the stderr output by wrapping an sh shell around the invocation of the otelcol binary.

bripkens and others added 12 commits October 6, 2023 15:46
To curb the sprawling amount of old and outdated version of some collector distributions, and to be able to deal with incompatible ones cleanly, this commit introduces support for semver ranges of ignored versions.
Node.js spawn is unreliable in terms of collecting stdout and stderr through
the spawn call (see nodejs/node#19218).
Getting a shell around the otelcol binary increases the reliability.
@vercel
Copy link

vercel bot commented Oct 13, 2023

@mmanciop is attempting to deploy a commit to the OTelBin Team on Vercel.

To accomplish this, @mmanciop needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

@mmanciop
Copy link
Member Author

Opps wrong repo, wanted to open it in my fork first :-) Closing

@mmanciop mmanciop closed this Oct 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants