-
Notifications
You must be signed in to change notification settings - Fork 41
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
Validate release date on continuous queues manager #294
Validate release date on continuous queues manager #294
Conversation
Thanks @junpataleta , and covered with tests, yay! It looks perfect, will merge as soon as all checks are done, hopefully green. Ciao :-) |
As commented via chat, I think that we have to remove the 2 "dry-run" tests. We cannot test that because they require the tracker to be available (for querying). And it's not, so they are failing, and bats is warning us about that (because they don't have any So, the 2 solutions are:
Personally, I'd remove them, because we are not going to be able to test the script without a real tracker, so no query or update can be tried ever. Ciao :-) |
07591e5
to
015997d
Compare
Thanks, @stronk7. I went with the approach of moving the parameter validation to its own function so it can be tested separately. I tidied up the patch. Please have another look. |
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.
We are 99% there, great refactor and tests! I've added a couple of comments in the patch...
tracker_automations/continuous_manage_queues/continuous_manage_queues.sh
Show resolved
Hide resolved
015997d
to
07baa8f
Compare
Before performing the job tasks, we need to make sure that the release date is properly configured. This can be simply done by making sure that the current date is not well past the end of the on-sync date, which is calculated by adding 4 weeks to the configured release date. (Normally, on-sync ends 2 weeks after the release, but it's set to 4 weeks in this patch just in case we have an unusually longer on-sync period.) This commit also moves the parameter validation part to its own function, so it can be tested on its own. Additional validation to ensure that the `lastweekdate` is not set after the `releasedate` has also been added.
07baa8f
to
fc09900
Compare
Thanks for your patience to a bash/bats naab like me, @stronk7 😅. I have made the changes you mentioned. I also added validation to ensure that I hope this is good to go. |
Thanks, @junpataleta both for the PR and your patience! Hope it has been a good experience, heh! About to merge this now, yay! PS: We still have to discuss if we want, before enabling this script, to have a job to do both:
Notes:
Just using this PR to have my thoughts shared, heh. Ciao :-) |
Yay! Thanks, @stronk7! I think that the the continuous queues manager should be handling this task of holding or keeping waiting for CLR issues. About preventing CLR issues from being held, would it be possible to get the date when the waiting for CLR issue has been sent to integration? For example, fetch the date when the issue's status changed from Then if it's determined that the date/time the issue was sent to integration falls before the code freeze, it will not be held. Otherwise, it will be held by the continuous queues manager. What do you think? |
After a chat with Jun, we have agreed about:
Current proposals are about to:
So, next:
Ciao :-) |
This fixes #293