Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #17764

Closed (moved)
(moved)
Open
Created Dec 06, 2015 by Damian Johnson@atagar

Jenkins not finding test resources

Hi Peter. I pushed quite a few tests which has assertions against test data we provide...

  • test/unit/tor_man_example
  • test/integ/tor.1_with_unknown

When I run these tests they pass but on Jenkins they're failing due to being unable to find the test data...

======================================================================
ERROR: test_parsing_example_man_page
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/jenkins-workspace/workspace/stem-tor-ci/test/unit/manual.py", line 118, in test_parsing_example_man_page
    manual = stem.manual.Manual.from_man(EXAMPLE_MAN_PATH)
  File "/srv/jenkins-workspace/workspace/stem-tor-ci/stem/manual.py", line 342, in from_man
    raise IOError("Unable to run 'man --encoding=ascii -P cat %s': %s" % (man_path, exc))
IOError: Unable to run 'man --encoding=ascii -P cat /srv/jenkins-workspace/workspace/stem-tor-ci/test/unit/tor_man_example': [Errno 2] No such file or directory
======================================================================
ERROR: test_with_unknown_options
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/jenkins-workspace/workspace/stem-tor-ci/test/integ/manual.py", line 135, in test_with_unknown_options
    manual = stem.manual.Manual.from_man(os.path.join(os.path.dirname(__file__), 'tor.1_with_unknown'))
  File "/srv/jenkins-workspace/workspace/stem-tor-ci/stem/manual.py", line 342, in from_man
    raise IOError("Unable to run 'man --encoding=ascii -P cat %s': %s" % (man_path, exc))
IOError: Unable to run 'man --encoding=ascii -P cat /srv/jenkins-workspace/workspace/stem-tor-ci/test/integ/tor.1_with_unknown': [Errno 2] No such file or directory

This is interesting since I do this elsewhere (assert against test data) and I'm not spotting from the code if or where I'm buggering up. First guess is that maybe the 'git pull' is somehow not getting those files.

Do I have ssh access for the Jenkins host? I tried to reach it in a similar way I do for DocTor but no luck...

% cat ~/.ssh/config
host doctor
  hostname cappadocicum.torproject.org
  port 22
  identityfile ~/.ssh/torproject
  proxycommand ssh -W %h:22 perdulce.torproject.org

host jenkins
  hostname jenkins.torproject.org
  port 22
  identityfile ~/.ssh/torproject
  proxycommand ssh -W %h:22 perdulce.torproject.org

% ssh jenkins
Permission denied (publickey).

Maybe I'm screwing up or maybe I shouldn't have access. If the later could you please check if these two files exist on disk and if not why git isn't getting them?

Thanks! -Damian

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking