-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(enrichment_tables): Fail when unit testing a config with unused enrichment table #24231
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
base: master
Are you sure you want to change the base?
fix(enrichment_tables): Fail when unit testing a config with unused enrichment table #24231
Conversation
|
Hi @elobommart, please sign the CLA and we will take a look. |
|
I can't sign the CLA. The CLA management app shows the following error : There is no CLA to sign for vectordotdev/vector |
|
All contributors have signed the CLA ✍️ ✅ |
|
Hi @elobommart sorry. We migrated the CLA check to a new workflow. I updated the branch and instructions should be posted here shortly |
|
Thanks @thomasqueirozb, if the new process is just the comment on the agreement, I think it's ok now ! Should the agreement CI task re-run to validate it ? Can I force this ? |
|
@elobommart After reading and reviewing the CLA you just need to post a comment stating "I have read the CLA Document and I hereby sign the CLA". If it doesn't automatically refresh then also comment "recheck" - that's all! |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
@thomasqueirozb so I did both, but to no avail :( |
|
The issue is that your original commit is not associated with your GitHub account. You should add that email to you GitHub account. You can view the email associated with the commit by running Alternatively I can try to take ownership of that commit or change the commit's owner to your other email and force push to this branch |
|
recheck |
right, I did not realise that it was still my "old" email, sorry for the noise ! we are good to go now :-) |
Summary
When running unit tests for Vector's configuration, enrichment tables are not sanitized the same way transforms are.
This incurs a bug when creating a configuration with an enrichment table that has a transform as an input, and a test that does not use said transform, because said transform is pruned from the transforms list, and Vector then tries to create the enrichment_table but cannot find its input. Moreover, there is no reason for the transforms to be sanitized and not the enrichment tables.
The following configuration currently fails when building tests on master, the reported error being that the input 'cache_builder' does not exist in the configuration. With this fix, this kind of tests build correctly.
Vector configuration
How did you test this PR?
via unit tests, running locally
Change Type
Is this a breaking change?
Does this PR include user facing changes?
no-changeloglabel to this PR.