Bug #19741
closedUndefined method 'split' for nil on several tests
Description
11 tests have been failing when the Jenkins job that tests Foreman + Katello triggers:
Katello::ActivationKeyTest.test_0006_key can be copied Katello::Api::V2::ContentViewsControllerTest.test_available_puppet_modules_with_use_latest Katello::CapsuleContentTest::task related queries.test_0004_last sync time is nil when there's no successful sync Katello::ContentViewPuppetModuleTest.test_computed_version_nil Katello::ContentViewTest.test_copy Katello::GlueCandlepinOwnerTestSLA.test_update_candlepin_owner_service_level Katello::HostgroupExtensionsTest.test_inherited_content_view_with_ancestry_nill Katello::HostgroupExtensionsTest.test_inherited_lifecycle_environment_with_ancestry_nil Katello::RepositoryInstanceTest.test_capsule_download_policy Katello::RepositoryInstanceTest.test_nil_url_url Katello::SyncPlanTest.test_sync_date_if_bad_interval
All of them fail with the same error, which is surprising given that the lines they fail at have no 'split' or anything similar (nor they call the same method). Running tests individually or all Katello tests via rake test:katello does not reproduce the issue. I think it's only happening with 'bundle exec rake jenkins:katello' (although that just runs 'test:katello'). Removing the db and running tests without db doesn't change anything.
Updated by Daniel Lobato Garcia over 7 years ago
There is also this at the beginning of these jobs (http://ci.theforeman.org/job/test_develop_pr_katello/2888/database=postgresql,ruby=2.2,slave=fast/consoleFull), which might have to do with these errors or not - I don't think so because other tests pass just fine but just in case I'll leave it here:
[0m] [D] There are 368 pending migrations: CreateHosts, AddAuditsTable, CreateArchitectures, CreateMedia, CreateDomains... 10:54:56 [32m2017-06-01T10:54:56[0m [[36mapp[0m] [D] There are 368 pending migrations: CreateHosts, AddAuditsTable, CreateArchitectures, CreateMedia, CreateDomains... 10:54:56 [32m2017-06-01T10:54:56[0m [[36mapp[0m] [D] Could not extend role 'Manager': PG::UndefinedTable: ERROR: relation "roles" does not exist 10:54:56 | LINE 5: WHERE a.attrelid = '"roles"'::regclass 10:54:56 | ^ 10:54:56 | : SELECT a.attname, format_type(a.atttypid, a.atttypmod), 10:54:56 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod 10:54:56 | FROM pg_attribute a LEFT JOIN pg_attrdef d 10:54:56 | ON a.attrelid = d.adrelid AND a.attnum = d.adnum 10:54:56 | WHERE a.attrelid = '"roles"'::regclass 10:54:56 | AND a.attnum > 0 AND NOT a.attisdropped 10:54:56 | ORDER BY a.attnum 10:54:56 | 10:54:56 | ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "roles" does not exist 10:54:56 | LINE 5: WHERE a.attrelid = '"roles"'::regclass 10:54:56 | ^ 10:54:56 | : SELECT a.attname, format_type(a.atttypid, a.atttypmod), 10:54:56 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod 10:54:56 | FROM pg_attribute a LEFT JOIN pg_attrdef d 10:54:56 | ON a.attrelid = d.adrelid AND a.attnum = d.adnum 10:54:56 | WHERE a.attrelid = '"roles"'::regclass 10:54:56 | AND a.attnum > 0 AND NOT a.attisdropped 10:54:56 | ORDER BY a.attnum
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/Katello/katello/pull/6807 added
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|885e3f2e487a99dd0cdc5948d3e4353ec4cd382f.
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello/pull/6811 added
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release set to 250