Integration test failure: "ImportError: No module named ci_utils.file_handler" in test_create_ticket_via_cli (__main__.IntegrationTest)

Bug #1332018 reported by Para Siva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
High
Vincent Ladeuil

Bug Description

This failure is still present in the integration tests in,

========================================
Testing ./tests/test_integration.py
========================================
...
...

======================================================================
FAIL: test_create_ticket_via_cli (__main__.IntegrationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./tests/test_integration.py", line 112, in test_create_ticket_via_cli
    ticket_id = self.create_new_ticket(ticket_title, ci_url)
  File "./tests/test_integration.py", line 98, in create_new_ticket
    0, proc.returncode, '{} failed:\n{}'.format(args, out))
AssertionError: ('python', '/var/lib/jenkins/jobs/uci-engine-integration-test/workspace/uci-engine/tests/../cli/ubuntu-ci', '-c', '/tmp/tmpuNwe9c', 'create_ticket', '-t', 'Bazinga!', '-d', 'This is a cool new feature', '-b', '1234', '-o', '<email address hidden>', '-a', 'foo', '-s', '/var/lib/jenkins/jobs/uci-engine-integration-test/workspace/uci-engine/ci-utils/ci_utils/testing/data/foobar_0.1-1_source.changes') failed:
Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/uci-engine-integration-test/workspace/uci-engine/tests/../cli/ubuntu-ci", line 25, in <module>
    from ci_cli import (
  File "/var/lib/jenkins/jobs/uci-engine-integration-test/workspace/uci-engine/cli/ci_cli/ticket.py", line 22, in <module>
    from ci_utils.file_handler import ChangesProcessor
ImportError: No module named ci_utils.file_handler

There was an attempt thanks to cprov at: http://bazaar.launchpad.net/~canonical-ci-engineering/uci-engine/trunk/revision/590
but unfortunately the issue still present.

Tags: airline

Related branches

Revision history for this message
Vincent Ladeuil (vila) wrote :

The latest fix attempted to address the issue by adding'ci_utils' to sys.apth. But since the command is called via a s subprocess, that didn't work.

Vincent Ladeuil (vila)
Changed in uci-engine:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → High
milestone: none → uce-0
status: New → In Progress
Vincent Ladeuil (vila)
Changed in uci-engine:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in uci-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.