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

feat: keep logging pipe for trusted plugins #5899

Merged
merged 3 commits into from
Oct 29, 2024
Merged

feat: keep logging pipe for trusted plugins #5899

merged 3 commits into from
Oct 29, 2024

Conversation

davbree
Copy link
Contributor

@davbree davbree commented Oct 27, 2024

πŸŽ‰ Thanks for submitting a pull request! πŸŽ‰

Summary

ref WRFL-1864


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code πŸ§‘β€πŸ’». This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire πŸ”₯ (e.g. incident related), you can skip this step.
  • Read the contribution guidelines πŸ“–. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) πŸ§ͺ
  • Update or add documentation (if features were changed or added) πŸ“
  • Make sure the status checks below are successful βœ…

A picture of a cute animal (not mandatory, but encouraged)

Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@davbree davbree changed the title Keep logging pipe for trusted plugins feat: keep logging pipe for trusted plugins Oct 29, 2024
Copy link

sonarcloud bot commented Oct 29, 2024

@@ -108,7 +108,9 @@ export const firePluginStep = async function ({
})
return { newError }
} finally {
await unpipePluginOutput(childProcess, logs, listeners, standardStreams)
if (!isTrustedPlugin(pluginPackageJson?.name) || listeners) {

Choose a reason for hiding this comment

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

I don't this code well enough to be sure why presence of listeners means we should call the unpipe method, but I trust you πŸ˜„

@davbree davbree merged commit a631d8c into main Oct 29, 2024
39 checks passed
@davbree davbree deleted the plugin-logging branch October 29, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants