-
Notifications
You must be signed in to change notification settings - Fork 2
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
Reset demo environment daily #125
Comments
I've reset the dev environment to a snapshot I made on Feb 14th. I thought the UIlicious test passed, but it hasn't. Argh. https://client-aysiq7n9tw8hfu5rvr6mzf.uilicious.com/studio/project/NAigEgKD6y8qeNMrAZ65oF/monitoring/job/9iYLSHxEJPPxRDQttVSZzz/testRun/list Reran and it worked. |
@kaihendry I just update the DB schema for the BZ database to the latest version (v4.33.1) it wasn't the correct version (was v4.31) Maybe you want to take another snapshot of the environment so we have an updated "Golden Image" until we figure out the right way to do the Reset. |
@kaihendry what makes you say that? Until proven wrong both version of the "clean" DB schema are always up to date to the latest version of the BZ DB schema. |
This issue is related unee-t/frontend#203 in the sense we need to document a baseline "fresh" demo environment. I just tried https://github.com/unee-t/bz-database/blob/master/db%20snapshots/unee-t_BZDb_clean_with_demo_users_and_unit_current.sql but I hit ERROR 1449 (HY000) at line 16391: The user specified as a definer ('unee_t_root'@'%') does not exist. Previously I removed them in #127 but I am not 100% sure that is the right approach. |
Removing the DEFINER is the right approach in that situation. |
Before I did a gnarly
However in this dump these role lines with:
50001 instead of 50017 🤷♂️ To avoid errors in the pipeline, couldn't https://github.com/unee-t/bz-database/blob/master/db%20snapshots/unee-t_BZDb_clean_with_demo_users_and_unit_current.sql just be ready to go and not need processing? I.e. what #127 asks of. |
After cleaning out the DEFINER lines, now I am hitting Duplicate column name 'visibility_value_id' |
My guess is that this is is because you are running the checksetup.pl BZ script. The DB seed script assumes that it's run on an existing BZ vanilla installation (I think). You should only restore the Seed DB script AFTER the BZ vanilla is setup. |
To create a Unee-T envo you need to: Is there a tried and tested documentation somewhere of how you setup a Unee-T environment from scratch? |
And now we have baseline bugzilla plus Unee-T customisations: https://media.dev.unee-t.com/2019-09-13/localhost-backup-2019-09-13.sql TODO
I just ran through the steps and restarted bugzilla & we still have the duplicate column issue as mentioned earlier #125 (comment) https://s.natalian.org/2019-09-13/dup-col-issue.mp4 This appears fixed by #142 |
Just tested https://media.dev.unee-t.com/2019-09-13/localhost-backup-1568357621.sql
And it works. So next steps for readying for demo table are to: 1 'arn:aws:lambda:ap-southeast-1:192458993663:function:ut_lambda2sqs_push' rewrite with appropriate account number 915001051872, done in https://media.dev.unee-t.com/2019-09-13/demo-baseline-2019-09-13.sql |
I managed to export a dump without
using adminer which worked in a restore here: https://media.dev.unee-t.com/2019-09-13/168-fix.sql I did the restore as root btw. |
I did a connect On restart meteor appeared to recreate the meteor collection. I created an account to check and also ran [CASE_DEMO] new-user-flow - user journey - chrome (demo laptop) which all passed. Next steps is try automate these steps. Not easy to co-ordinate restarting the ECS service |
Over the weekend I've noticed a lot of Delivery Status Notification (Failure) with bodies like so:
These are triggered by pre-seeded users getting alerts to new sign ins generated by https://uilicious.com of the demo environment. Solutions is to update https://media.dev.unee-t.com/2019-09-13/168-fix.sql with test emails that can handle the notifications. Or come up with some other procedure on how to handle notifications for the pre-existing users. |
I edited the emails and use https://media.dev.unee-t.com/2019-09-16/demo-baseline.sql to restore. I also created some scripts to stop/start the application:
|
We need to be able reset the {dev,demo} environments to a clean slate, with the correct username/passwords et al: https://media.dev.unee-t.com/2019-02-14/Users_we_need_in_a_sane_DEV_Staging_environment.txt
Approaches to achieve that:
1. Golden image
A snapshot is made of both the Meteor & Bugzilla database at the same time. We use that to restore.
Pros:
Cons:
2. Reset to clean schema
Pros:
Cons:
3. Have a system to clear out "bad data"
Pros:
Cons:
The text was updated successfully, but these errors were encountered: