Opened 12 years ago

Closed 11 years ago

#20553 closed Cleanup/optimization (fixed)

Useless checks in loadddata [fix in 1.7]

Reported by: Florian Apolloner Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Since [51aa000378c00a442273f01142acdebc94dec68d] Jenkins is failing with:

Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/tests/fixtures_regress/tests.py", line 155, in test_absolute_path
    commit=False
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/base.py", line 283, in execute
    output = self.handle(*args, **options)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/loaddata.py", line 54, in handle
    self.loaddata(fixture_labels)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/loaddata.py", line 83, in loaddata
    self.load_label(fixture_label)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/loaddata.py", line 118, in load_label
    for fixture_file, fixture_dir, fixture_name in self.find_fixtures(fixture_label):
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/utils/functional.py", line 32, in wrapper
    result = func(*args)
  File "/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2.7/django/core/management/commands/loaddata.py", line 178, in _find_fixtures
    "serialization format." % tuple(fixture_name.rsplit('.')))
CommandError: Problem installing fixture '/var/lib/jenkins/jobs/Django/workspace/database/sqlite3/python/python2': 7/tests/fixtures_regress/fixtures/absolute is not a known serialization format.

It's currently fixed via [6900cb79dcbc502e0b18476e53ad493b7069ffb8], but this check should really go aways since it prevents me from naming my fixture 'myfixture.v3' or 'myfixture.v3.xml.gz'.

Since we don't want to introduce any backwards incompatible changes post-alpha this will be fixed in 1.7 and this ticket acts as a reminder.

Change History (2)

comment:1 by Anssi Kääriäinen, 12 years ago

Triage Stage: UnreviewedAccepted

#20551 is somewhat related. If we change loaddata, then #20551 contains some ideas for even larger changes than this ticket's proposal.

comment:2 by Claude Paroz, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top