-
Notifications
You must be signed in to change notification settings - Fork 194
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
Clear Unknown Indices #1065
Clear Unknown Indices #1065
Conversation
The tests of the Of course the ultimate test will happen in the actual production environment where the script must fail on |
@bodo-hugo-barwich thanks for all this effort, but I'm a bit lost here, |
@mickeyn thank you for taking a look at this development. It was already discussed that this functionality cannot be run in a production environment and therefore it cannot touch the sensitive production indexing system I would always have preferred that you had taken part in your requirement discussion at: |
what is the state of this development ? |
514ea79
to
8410fab
Compare
8410fab
to
b66768b
Compare
@bodo-hugo-barwich this is failing in CI right now. Please see https://app.circleci.com/pipelines/github/metacpan/metacpan-api/229/workflows/b736e36e-3283-4d2b-b5e6-ea2e0092e2e6/jobs/237 |
Hi @oalders , yes, I saw that the tests are failing.
@oalders Is there a way that the automated test environment can be marked as such? Perhaps setting the |
@bodo-hugo-barwich I think that would be appropriate. Maybe we just need to set an env var in |
The change in the Automated Testing Environment is part of the |
With the |
@bodo-hugo-barwich I have just triggered a re-run at CircleCI. |
Inspecting the runtime environment during the test it turns out that the expected Environment Variables are never set:
This can be understood from the fact that the test are run in the sandboxed Docker environment. And this environment is defined in env_file:
- localapi_test.env Understanding this I found that I made two changes to the
So, I will need to revert the changes in the Automated Testing Environment and add those changes to the |
The changes in |
This is only failing on a tidy test now, so we can merge and tidy in a different PR. Thanks for your patience @bodo-hugo-barwich and thank you for the reviews @mickeyn. Happy New Year! |
Cool. Thanks the work and follow up @bodo-hugo-barwich and @oalders . Happy New Year! 😉 |
This implements the
--delete --all
functionality discussed at:Fix Corrupted Indices
which is needed to close definitely the issue of Index Corruption
Unexpected Index Corruption
by
Additionally it implements Exit with Error Code for unconfirmed Operations
as mentioned at:
ElasticSearch Availabilty Check
This is also part of the logic to prevent accidental Indices Corruption
To test the functionality it introduces several Mapping Script Tests.
These tests are required to check the "Verify Mappings" functionality developed at:
Verify Indices Mappings