Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurring travis fail no such option 'with-pylons' #766

Merged
merged 5 commits into from
Nov 5, 2013

Conversation

vitorbaptista
Copy link
Contributor

For example in https://travis-ci.org/okfn/ckan/jobs/6243730

[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin main = ckan.ckan_nose_plugin:CkanNose: No module named paste.deploy
  RuntimeWarning)
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7/bin/nosetests", line 9, in <module>
    load_entry_point('nose==1.2.1', 'console_scripts', 'nosetests')()
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/core.py", line 118, in __init__
    **extra_args)
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/core.py", line 135, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/config.py", line 276, in configure
    options, args = self._parseArgs(argv, cfg_files)
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/config.py", line 264, in _parseArgs
    return parser.parseArgsAndConfigFiles(argv[1:], cfg_files)
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/config.py", line 132, in parseArgsAndConfigFiles
    self._applyConfigurationToValues(self._parser, config, values)
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/config.py", line 118, in _applyConfigurationToValues
    name=name, filename=filename)
  File "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/nose/config.py", line 261, in warn_sometimes
    raise ConfigError(msg)
nose.config.ConfigError: Error reading config file 'setup.cfg': no such option 'with-pylons'

@tobes
Copy link
Contributor

tobes commented May 31, 2013

This is due to pip-install failing like so

HTTP error 503 while getting https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-

We could catch this error and try again. In most instances this would fix the problem. It might be worth sleeping a short while and limiting the number of retries. This is hard to test :( but seems like it would fix the problem.

@nigelbabu
Copy link
Contributor

I wonder if it would help to add a second pip install line. If everything worked fine, that should be fine to do and would give a second chance in case something didn't work fine.

@vitorbaptista
Copy link
Contributor

I've asked in #travis, and opened an issue to try to find the best option to solve this in travis-ci/travis-ci#1521.

To do so, I needed to split our ./bin/travis-build in two files, one with the
deps install, and one with the test run. Doing so allows me to use the
"install" directive in Travis, and break the build as soon as something fails
with it.
@ghost ghost assigned vitorbaptista Oct 17, 2013
I was unable to run Jetty-Solr's configuration on travis-install-dependencies.
Probably something to do with Bash's "set -e", but I was unable to pinpoint
exactly, so I left it into travis-run-tests. No big deal.
Conflicts:
	bin/travis-install-dependencies
@vitorbaptista
Copy link
Contributor

I've split up Travis' installing dependencies and running tests into two files. With these patches, Travis will fail as soon as we get some error installing deps, and won't try to run the tests.

This solves this issue.

@vitorbaptista
Copy link
Contributor

@domoritz @nigelbabu Whenever you have some time, please review/merge this.

@domoritz
Copy link
Contributor Author

I might be wrong but I think there is an option to tell shell scripts to return if one line returns an exit code other than 0.

@vitorbaptista
Copy link
Contributor

Yep, that's what the set -e in the beginning of bin/travis-install-dependencies is for.

@domoritz
Copy link
Contributor Author

Cool, I tried to google it but couldn't find anything. Looks good to me.

@vitorbaptista
Copy link
Contributor

Yeah, I didn't even know that it existed, until @henrikhodne told me in travis-ci/travis-ci#1521. May you merge it, then? :-)

@vitorbaptista
Copy link
Contributor

@domoritz ping

domoritz added a commit that referenced this pull request Nov 5, 2013
…tall-fails

Recurring travis fail `no such option 'with-pylons'`
@domoritz domoritz merged commit be38950 into master Nov 5, 2013
@domoritz domoritz deleted the 766-stop-travis-build-when-deps-install-fails branch November 5, 2013 17:28
@vitorbaptista
Copy link
Contributor

👍

nigelbabu added a commit that referenced this pull request Nov 15, 2013
…deps-install-fails"

This reverts commit be38950, reversing
changes made to cba4e6c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants