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.

test_rebuild and test_error_messages failing on travis

See original GitHub issue

test_rebuild is failing here: https://github.com/sphinx-gallery/sphinx-gallery/blob/ce5a58cfde1c030364c0bd34b21f2ba00b83896f/sphinx_gallery/tests/test_full.py#L636

when checking that the example plot_numpy_matplotlib which we modify above, has a different mtime:

sphinx_gallery/tests/test_full.py:387: in _assert_mtimes

    assert np.abs(op.getmtime(orig) - op.getmtime(new)) > 0.1

E   AssertionError: assert 0.0 > 0.1

E    +  where 0.0 = <ufunc 'absolute'>((1607961214.223356 - 1607961214.223356))

test_error_messages failing here:

_ test_error_messages[plot_scraper_broken-.*ValueError.*zero-size array to reduction.*] _

sphinx_gallery/tests/test_full.py:661: in test_error_messages

    assert re.match(want, rst) is not None

E   AssertionError: assert None is not None

@larsoner you probably know more about this but otherwise I can take a look next week.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Dec 23, 2020

Azure has better single job restart control and we already have some YAML so let’s just do that.

0reactions
lucyleeowcommented, Jan 24, 2021

Closing as it seems it’s due to this test not being reliable in CI

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Build Problems - Travis CI Docs
A very common cause when a test is suddenly breaking without any major code changes involved is a change in upstream dependencies. This...
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. ... My builds started failing out of the blue with...
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
The error displays "secure" in the path which am not sure if it's supposed to be there, I think it should have been...
Read more >
Send an SMS When Your Build Fails on Travis CI - Twilio
When the build fails, we will send a Twilio SMS to notify team members of the failure.
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