See http://ci.opensuse.org/job/obs_master_testsuite_webui-testsuite/93/changes
Changes:
[adrian] [api] validate access to host project
------------------------------------------
Started by an SCM change
Building in workspace http://ci.opensuse.org/job/obs_master_testsuite_webui-testsuite/ws/
Checkout:workspace / http://ci.opensuse.org/job/obs_master_testsuite_webui-testsuite/ws/ - hudson.remoting.LocalChannel@202e202e
Using strategy: Default
Last Built Revision: Revision 3b425607396e56fb453a59cc37f55c5a1dee9ae7 (origin/master)
Checkout:workspace / http://ci.opensuse.org/job/obs_master_testsuite_webui-testsuite/ws/ - hudson.remoting.LocalChannel@202e202e
Fetching changes from 1 remote Git repository
Fetching upstream changes from git://github.com/openSUSE/open-build-service.git
Commencing build of Revision e43cf8c50bd0e8610f4c41ddcf92574974d3e823 (origin/master)
Checking out Revision e43cf8c50bd0e8610f4c41ddcf92574974d3e823 (origin/master)
[locks-and-latches] Checking to see if we really have the locks
[locks-and-latches] Have all the locks, build can start
[workspace] $ /bin/sh -xe /tmp/hudson1878293482413387963.sh
+ sh dist/ci/obs_testsuite_webui-testsuite.sh
++ dirname dist/ci/obs_testsuite_webui-testsuite.sh
+ . dist/ci/obs_testsuite_common.sh
+ setup_git
+ echo 'Checking status'
Checking status
+ git status
# Not currently on any branch.
nothing to commit (working directory clean)
+ echo 'Setup git submodules'
Setup git submodules
+ git submodule init
+ git submodule update
+ echo 'Setup backend configuration template'
Setup backend configuration template
+ sed -i -e 's|my $hostname = .*$|my $hostname = '\''localhost'\'';|' -e 's|our $bsuser = '\''obsrun'\'';|our $bsuser = '\''jenkins'\'';|' -e 's|our $bsgroup = '\''obsrun'\'';|our $bsgroup = '\''jenkins'\'';|' src/backend/BSConfig.pm.template
+ cp src/backend/BSConfig.pm.template src/backend/BSConfig.pm
+ echo 'Set environment variables'
Set environment variables
+ export RAILS_ENV=test
+ RAILS_ENV=test
+ ret=0
+ setup_api
+ echo 'Enter API rails root'
Enter API rails root
+ cd src/api
+ echo 'Setup database configuration'
Setup database configuration
+ cp config/database.yml.example config/database.yml
+ sed -i 's|database: api|database: ci_api|' config/database.yml
+ echo 'Setup additional configuration'
Setup additional configuration
+ cp config/options.yml.example config/options.yml
+ echo 'Install missing gems locally'
Install missing gems locally
+ rm Gemfile.lock
+ bundle list
Gems included by the bundle:
* actionmailer (3.2.3)
* actionpack (3.2.3)
* activemodel (3.2.3)
* activerecord (3.2.3)
* activeresource (3.2.3)
* activesupport (3.2.3)
* arel (3.0.2)
* builder (3.0.0)
* bundler (1.1.3)
* ci_reporter (1.7.0)
* delayed_job (3.0.2)
* delayed_job_active_record (0.3.2)
* erubis (2.7.0)
* exception_notification (2.5.2)
* fast_xs (0.8.0)
* hike (1.2.1)
* i18n (0.6.0)
* journey (1.0.3)
* json (1.6.6)
* mail (2.4.4)
* memcache-client (1.8.5)
* mime-types (1.18)
* multi_json (1.2.0)
* mysql2 (0.3.11)
* nokogiri (1.5.2)
* polyglot (0.3.3)
* rack (1.4.1)
* rack-cache (1.2)
* rack-ssl (1.3.2)
* rack-test (0.6.1)
* rails (3.2.3)
* railties (3.2.3)
* rake (0.9.2.2)
* rdoc (3.12)
* simplecov (0.6.1)
* simplecov-html (0.5.3)
* simplecov-rcov (0.2.3)
* sprockets (2.1.2)
* test-unit (2.4.8)
* thor (0.14.6)
* tilt (1.3.3)
* treetop (1.4.10)
* tzinfo (0.3.32)
* xmlhash (1.2.1)
* yajl-ruby (1.1.0)
+ git diff Gemfile.lock
diff --git a/src/api/Gemfile.lock b/src/api/Gemfile.lock
index e09ea7f..77013d5 100644
--- a/src/api/Gemfile.lock
+++ b/src/api/Gemfile.lock
@@ -96,7 +96,7 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.33)
+ tzinfo (0.3.32)
xmlhash (1.2.1)
yajl-ruby (1.1.0)
+ chmod a+x script/start_test_backend
+ echo 'Initialize test database, run migrations, load seed data'
Initialize test database, run migrations, load seed data
+ rake --trace db:drop db:create db:setup db:migrate
** Invoke db:drop (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:drop
** Invoke db:create (first_time)
** Invoke db:load_config
** Execute db:create
** Invoke db:setup (first_time)
** Execute db:setup
** Invoke db:structure:load (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config
** Execute db:structure:load
rake aborted!
Mysql2::Error: Key column 'hostsystem' doesn't exist in table: CREATE TABLE `repositories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`db_project_id` int(11) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`remote_project_name` varchar(255) DEFAULT NULL,
`rebuild` enum('transitive','direct','local') DEFAULT NULL,
`block` enum('all','local','never') DEFAULT NULL,
`linkedbuild` enum('off','localdep','all') DEFAULT NULL,
`hostsystem_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `projects_name_index` (`db_project_id`,`name`,`remote_project_name`),
KEY `remote_project_name_index` (`remote_project_name`),
KEY `hostsystem` (`hostsystem`),
KEY `hostsystem_id` (`hostsystem_id`),
CONSTRAINT `repositories_ibfk_1` FOREIGN KEY (`db_project_id`) REFERENCES `db_projects` (`id`),
CONSTRAINT `repositories_ibfk_2` FOREIGN KEY (`hostsystem_id`) REFERENCES `repositories` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:243:in `query'
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:243:in `block in execute'
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/usr/lib64/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:243:in `execute'
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
/usr/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/railties/databases.rake:424:in `block (4 levels) in