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

Codec pipeline context #153

Merged
merged 2 commits into from
Apr 13, 2022
Merged

Conversation

yaauie
Copy link
Contributor

@yaauie yaauie commented Apr 12, 2022

This PR does not change the implementation, and therefore doesn't need a CHANGELOG entry or VERSION-bump.

  1. In ensure execution_context is propagated to additional_codecs #152 I committed a line that 🤦🏼 bypassed most specs. This PR backtracks that one line and specs remain green
  2. In ensure execution_context is propagated to additional_codecs #152 we solve the issue where execution context isn't propagated to additional_codecs, but the spec incorrectly validated with a global setting value. Since Logstash's ECSCompatibilitySupport falls through to the global settings, this spec wasn't validating the actual issue. I have refactored the spec to use a pipeline setting override, and proved that the solution as shipped in 3.5.1 does solve the issue.

Copy link
Member

@jsvd jsvd left a comment

Choose a reason for hiding this comment

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

LGTM, good thing you spotted this!
One more reason to make all of these tests suites to no longer rely on a pipeline..there's a lot of wiring that can easily break or produce wrong results.

@yaauie yaauie merged commit e295446 into logstash-plugins:main Apr 13, 2022
@yaauie yaauie deleted the codec-pipeline-context branch April 13, 2022 18:39
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.

3 participants