Skip to content

Our Testing Server

Henne Vogelsang edited this page Oct 28, 2022 · 7 revisions

We have a test/staging server that continuously deploys: https://build-test.opensuse.org

Every time code is merged on master in the open-build-service git repository, rpm packages are built in https://build-test.opensuse.org/project/show/OBS:Server:Unstable on the test instance. Every time packages finished building and are published there is a publisher hook called that runs the script /usr/local/sbin/update_root.sh which does the deployment.

Stop the automatic deployment

In case you don't want the continuous deployment to mess with your testing you can disable it with

echo "Henne is testing something..." > /tmp/stop_deploy.txt

and enable it again by removing the file

rm /tmp/stop_deploy.txt

Deploy a PR instead

To deploy the PR with the number 12345

  1. Wait until our OBS workflow has finished building packages in home:bs-team:openSUSE:open-build-service:PR-12345
  2. Deploy the PR with the number 12345 /usr/local/sbin/update_root.sh -p 12345
  3. test what you want to test
  4. Once you are done, remove the PR with the number 12345 by running /usr/local/sbin/update_root.sh -d 12345

Publisher hook

This is defined in /usr/lib/obs/server/BSConfig.pm with the following code:

our $publishedhook = {
  'OBS:Server:Unstable/15.4' => '/usr/local/sbin/run_update.sh',
};

which then runs /usr/local/sbin/update_root.sh -u with sudo

Clone this wiki locally