-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[es cit] Use storage factory instead of manual creation #5313
Conversation
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Hi @yurishkuro, Can you please guide me on how to test these Github Workflows locally? I have to push everytime I make changes to see if it is right or not. |
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
You can check the code for the workflows in .github dir. usually we keep them very simple, all of the test business logic is in the script that the workflow runs, precisely to allow local debugging. You can run the script manually. |
Understood Thanks! |
don't know what |
While googling how to run github actions locally, almost 10-12 sites used a github repo nektos/act to run the actions locally. I already am using docker, will look into it further. Thanks for your guidance. |
you don not need to run actions locally. Actions just call a shell script, you can run the shell script locally. This is the only line relevant to running ES test locally:
|
please rebase, there were changes in the signatures |
|
|
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to rebase from main, your branch is stale
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Hi, Took some time to debug the issue, but according to me the client being intialized is the reason. The client used in Factory initialization differs from the actual initialization of client, specific to the tests which is causing the Errors. |
could you please document what debugging you did and what you found? Were you able to log the queries? |
Yes, I was able to log the queries using SetTraceLog, but the logs didn't show anything evident enough for debugging. |
so what's the state now, were you able to resolve the issue? I see the CI is still failing. |
Yes, the GetOperation and the first 2 tests were successful, but I had to do something unorthodox i.e to change the Factory file of ES and do things differently. Can you please look at it and see if it's acceptable? |
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5313 +/- ##
==========================================
+ Coverage 95.16% 95.25% +0.09%
==========================================
Files 340 340
Lines 16666 16672 +6
==========================================
+ Hits 15860 15881 +21
+ Misses 616 602 -14
+ Partials 190 189 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Please remove commented out code |
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
… into Test/ES_Factory
Done, PTAL! |
I removed custom initialization in favor of CLI-based factory creation. There is room for more similar clean-up for sampling store, but it also has a bug that needs to be fixed #5333 |
Sure! |
Which problem is this PR solving?
This PR addresses a new found issue which is a part of the issue #5203 .
It initializes ES Factory in the Integration Test Suite.
Description:
This PR introduces changes to the integration tests by initializing an ElasticSearch factory (es.Factory) and utilizing it for the creation of span readers and writers. Previously, the code instantiated a new span reader/writer from the SpanStore directly, which has been replaced with the more appropriate approach of leveraging the ElasticSearch factory.
How was this change tested?
The changes were tested by running the following command:
make test
Checklist
for jaeger: make lint test
for jaeger-ui: yarn lint
andyarn test