Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14630 closed (fixed)

Oracle test tablespace disk datafile not big enough for running full Django test suite

Reported by: ramiro Owned by: nobody
Component: Testing framework Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by ramiro)

While setting up Oracle XE to run the Django tests I found that individual tests or a small subgroup of them can be run without major problems. But while trying to run the entire suite this error happens:

Creating test database 'default'...
Creating test user...
Traceback (most recent call last):
  File "./runtests.py", line 314, in <module>
    failures = django_tests(int(options.verbosity), options.interactive, options.failfast, args)
  File "./runtests.py", line 183, in django_tests
    failures = test_runner.run_tests(test_labels, extra_tests=extra_tests)
  File "django/upstream/django/test/simple.py", line 276, in run_tests
    old_config = self.setup_databases()
  File "django/upstream/django/test/simple.py", line 232, in setup_databases
    connection.creation.create_test_db(self.verbosity, autoclobber=not self.interactive)
  File "django/upstream/django/db/backends/creation.py", line 357, in create_test_db
    call_command('syncdb', verbosity=max(verbosity - 1, 0), interactive=False, database=self.connection.alias)
  File "django/upstream/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "django/upstream/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "django/upstream/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "django/upstream/django/core/management/commands/syncdb.py", line 97, in handle_noargs
    cursor.execute(statement)
  File "django/upstream/django/db/backends/oracle/base.py", line 522, in execute
    return self.cursor.execute(query, self._param_generator(params))
django.db.utils.DatabaseError: ORA-01658: unable to create INITIAL extent for segment in tablespace TEST_XE

The TEST_XE tablespace left shows when seen through the Oracle XE Web administrative interface the Django test suite currently needs 140/150 MB of space.

Attachments (1)

14630.diff (577 bytes) - added by ramiro 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 3 years ago by ramiro

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Changed 3 years ago by ramiro

comment:2 Changed 3 years ago by ramiro

  • Has patch set

comment:3 Changed 3 years ago by ramiro

  • Resolution set to fixed
  • Status changed from new to closed

(In [14468]) Fixed #14630 -- Increased maximum size of the Oracle tablespace datafile used for tests from 100MB to 200MB.
This allows the execution of the full Django test suite without running out of allocated space.

comment:4 Changed 3 years ago by ramiro

(In [14469]) [1.2.X] Fixed #14630 -- Increased maximum size of the Oracle tablespace datafile used for tests from 100MB to 200MB.
This allows the execution of the full Django test suite without running out of allocated space.

Backport of [14468] from trunk

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.