question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Travis tests are failing

See original GitHub issue

Travis tests have started to fail. It looks like this is due to a string-formatting issue:

======================================================================
ERROR: Testing reference/alchemical overlap for no alchemical dispersion LennardJonesFluid with dispersion correction, annihilated sterics
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/choderalab/openmmtools/openmmtools/tests/test_alchemy.py", line 1164, in overlap_check
    'du mean {:.3f} kT stddev {:.3f} kT').format(DeltaF, dDeltaF, Neff, g, du_n.mean(), du_n.std())
ValueError: Unknown format code 'f' for object of type 'str'
-------------------- >> begin captured logging << --------------------

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jchoderacommented, Dec 1, 2019

@jaimergp : Thanks for catching this!

Yikes! There’s no way we should have broken the API in a non-backward-compatible manner in a minor bugfix release! I’ll create an issue on the pymbar issue tracker and we can revert that ASAP.

0reactions
jaimergpcommented, Dec 1, 2019

Yes, I think that could be indeed the reason.

This is the test code that is failing. As suspected, this will unpack the dictionary keys, instead of the values. That’s why you get str objects:

In [2]: d = {'a': 0, 'b': 1}

In [3]: x, y = d

In [4]: x
Out[4]: 'a'

In [5]: y
Out[5]: 'b'

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Build Problems - Travis CI Docs
One possible cause for builds failing unexpectedly can be calling set -e (also known as set errexit ), either directly in your .travis.yml...
Read more >
Tests are failing on travis, TypeError but works fine locally
I am running my test on Travis, but I'm currently facing this issue. I have no idea where the problem is coming from....
Read more >
Travis build passes, but a test fails · Issue #1006 - GitHub
Found the cause of the bug, the tests exited with exit code 0. ... // process.exit(code || exitCode);. and make a test to...
Read more >
Build test failing on Travis - Stack Overflow
We've set up Travis on our GitHub repo to test every pull request made, one test out of 73 is failing with a...
Read more >
I don't know how to tackle "The Travis CI build failed"
Basing on the travis ci error log, the is a test failure on apps/concepts/pages/tests/e2e/CreateOrEditConceptPage.test.ts Does the test pass ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found