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.

ci: test suite failing in main branch

See original GitHub issue

There is a test failure in the main branch.

tests/unit/contentproviders/test_git.py test test_submodule_clone fails because its the first to request the fixture repo_with_submodule, which in turn fails to setup.

https://github.com/jupyterhub/repo2docker/blob/e0d5b9bb63a7908b4edd9e6b6d5ca51d47fd9aaf/tests/conftest.py#L124-L157

I’m not sure whats going on yet, help resolving this greatly appreciated as it distracts review of PRs.

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
minrkcommented, Oct 24, 2022

For the most part, I’ve found that git clone --recursive successfully clones any repo, whether it’s got submodules or not. I’m not aware of anything not working in repo2docker, and the failure here is only because we set up an unrealistic repo with local-file references in submodules, which is insecure. “Real” submodules should still work fine, I think.

1reaction
betatimcommented, Oct 24, 2022

Unrelated to the CI failure, but related to “can we remove submodule support?”: In my opinion submodules are only useful for a very niche set of use-cases, but are used a lot more often than that. They bring a whole host of subtle challenges with them, for users and for repo2docker maintainers. I think we started out with “no submodule support” because of that, but then added it because people who need/want submodules were vocal about it. And I think even with the status quo there are submodule use-cases that don’t work properly in repo2docker?!

Maybe this bit of history is useful in deciding what to do about sub-module support in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Continuous Integration, or How to Debug ...
Troubleshooting Continuous Integration, or How to Debug Tests That Fail on CI, but Pass Locally · Don't Relaunch the CI Build · Rebase...
Read more >
Debugging Failing Tests and Test Pipelines - GitLab
Guidelines for investigating end-to-end test pipeline failures. ... docker:push:nightly command in the Docker-branch job of the Package-and-image stage.
Read more >
Tests pass locally but "fail" on CI (i.e. test suites fail ... - GitHub
Tests are passing locally for me but don't pass on Travis. The output on Travis says 9/9 tests passed, but only 5/7 test...
Read more >
Why Do My Tests Pass Locally but Fail on CircleCI?
Some testing frameworks may not have timezone-aware modules. If the machine does not have a set timezone, some tests may fail.
Read more >
How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
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