-
Notifications
You must be signed in to change notification settings - Fork 461
Our Testing Server
Henne Vogelsang edited this page Oct 27, 2022
·
7 revisions
We have a test instance at our disposal to test the master branch of the open-build-service git repository: https://build-test.opensuse.org
Every time code is merged on master in the open-build-service git repository, rpm packages are built locally, in the test instance.
There is a publisher hook which triggers the script /usr/local/sbin/run_update.sh every time the packages are (first built, and then) published. 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',
};The script /usr/local/sbin/run_update.sh installs the new packages.
Wait until our workflow has created packages.
- Add
exit 0as first command in/usr/local/sbin/run_update.shto disable the script - export PR_TO_DEPLOY=12345
zypper ar -f -p 98 -n PR-$PR_TO_DEPLOY https://download.opensuse.org/repositories/home:/bs-team:/openSUSE:/open-build-service:/PR-$PR_TO_DEPLOY/15.4/home:bs-team:openSUSE:open-build-service:PR-$PR_TO_DEPLOY.repozypper up --allow-vendor-change -r PR-$PR_TO_DEPLOY obs-api- Run
run_in_api bin/rake db:migrate:with_dataor anything else you need to - test...
Once you are done testing
zypper rr PR-$PR_TO_DEPLOY- remove
exit 0as first command in/usr/local/sbin/run_update.shto enable the script - run the script
/usr/local/sbin/run_update.sh
- Development Environment Overview
- Development Environment Tips & Tricks
- Spec-Tips
- Code Style
- Rubocop
- Testing with VCR
- Test in kanku
- Authentication
- Authorization
- Autocomplete
- BS Requests
- Events
- ProjectLog
- Notifications
- Feature Toggles
- Build Results
- Attrib classes
- Flags
- The BackendPackage Cache
- Maintenance classes
- Cloud uploader
- Delayed Jobs
- Staging Workflow
- StatusHistory
- OBS API
- Owner Search
- Search
- Links
- Distributions
- Repository
- Data Migrations
- Package Versions
- next_rails
- Ruby Update
- Rails Profiling
- Remote Pairing Setup Guide
- Factory Dashboard
- osc
- Setup an OBS Development Environment on macOS
- Run OpenQA smoketest locally
- Responsive Guidelines
- Importing database dumps
- Problem Statement & Solution
- Kickoff New Stuff
- New Swagger API doc
- Documentation and Communication
- GitHub Actions
- Brakeman
- How to Introduce Software Design Patterns
- Query Objects
- Services
- View Components
- RFC: Core Components
- RFC: Decorator Pattern
- RFC: Backend models
- RFC: Hotwire Turbo Frames Pattern