Jump to content

Nova Resource:Codereview/HowTo

From Wikitech

HowTo...

Test a change

  1. login into the instance: ssh to primary.bastion.wmflabs.org, then ssh cr1
  2. cd /srv/mediawiki-vagrant
  3. verify that the instance is offline: vagrant status
    • If the instance status is not "running (lxc)", someone other may be currently testing a change or forget to halt the instance. Please take a look at Nova Resource:Codereview/SAL and ask the latest tester, if he is currently testing
    • If the instance status is "stopped (lxc)", you can continue
    • Start the instance vagrant up
  4. Update the repos: vagrant git-update
  5. Switch to the repo, where you want to test a change: /srv/mediawiki-vagrant/mediawiki for core, /srv/mediawiki-vagrant/mediawiki/extensions/<name of the extension> for a extension
  6. fetch the change from gerrit with the fetch link
  7. Go to #wikimedia-cloudconnect at IRC, and log that you're testing like this: !log codereview fetching <link to gerrit patch> to make tests
  8. Make you're tests. You can use the admin account (Luke081515 will give you the password for the admin account), if you need more usersrights. Feel free to modify global groups for testing combinations, but please revert everything, if you finished you're testing. The next tester don't want to change a lot, before he can start.
  9. Log that you're finished: !log codereview finished tests, Result <Ok/Not ok>
  10. shutdown the vagrant-instance to prevent spam and other things: vagrant halt
  11. now you can diconnect from the instance