-
Notifications
You must be signed in to change notification settings - Fork 236
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
fix(backup): find race and disable search in subdir, always test latest backup image in e2e, bump backup to 0.3.x #1011
fix(backup): find race and disable search in subdir, always test latest backup image in e2e, bump backup to 0.3.x #1011
Conversation
@brokenpip3 Could you please take a look. Probably I also need to add a tests for these cases. |
I will take a look as soon it will be possible, but before that: in PR #1000 you only changed the make tmp dir location, nothing else, why it could be an issue with find and max depth? |
(In general: don't worry it's not the default version in the chart/code, I was planning to ship it with a 0.8.1 version before merging the 0.9.0 PR that is ready, just need to fix the tests) |
Let me explain the TL;DR; After #1000 temp directory and new backup archives creating in /backup subfolders which is directly affected
Also I found another critical problem related to incomplete backup, in case of jenkins pods restarts current backup could be left in temp folder and This PR fix these 2 problems, but still need to implement automatic cleanup for incomplete backups. Also seems I found critical security problem in operator release pipeline. |
yes it make sense indeed, I remember we limited the find in the past with maxdepth, not sure why it's disappeared (will check the commits). |
Here the scripts to reproduce race condition in
find.sh
Probably need to add such test, but I'm not sure how to run several process in parallel, probably it is possible only with |
we can use gnu parallel, however we have several test around the backup in multiple forms, so I'm satisfied around the current coverage. |
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.
Thanks for your contribution 🙇
There were some issues in the tests, will take a look |
Sorry I lost this 2 comments:
what you mean? we have this trap for that
what you mean? you mean the vulnerabilities that the latest version of the operator contains? those are related to golang and operator version, for that I'm doing the necessary update here #954, it's done, I just need to fix some golang ci-lint issues and some tests. I'm planning to work on that and have something working by the end of June. |
I pushed another change: by default during the e2e tests that backup image used will be the latest one build from source. Beside this, if you can reply to the previous questions the PR looks good to me, I can merge it after that. |
@skillcoder gentle ping :) |
I'm going to merge it, thanks for your contribution! |
Changes
fix 2 problems after merge #1000
find
(read dir and stat of file) (avoid searching in subfolders)Also following changes in
run.sh
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS.
Release Notes