Project

General

Profile

Actions

Bug #19741

closed

Undefined method 'split' for nil on several tests

Added by Daniel Lobato Garcia almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Daniel Lobato Garcia almost 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
Actions #2

Updated by The Foreman Bot almost 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
Actions #3

Updated by Anonymous almost 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by The Foreman Bot almost 7 years ago

  • Pull request https://github.com/Katello/katello/pull/6811 added
Actions #5

Updated by Eric Helms almost 7 years ago

  • translation missing: en.field_release set to 250
Actions

Also available in: Atom PDF