ci: test suite failing in main branch
See original GitHub issueThere 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.
I’m not sure whats going on yet, help resolving this greatly appreciated as it distracts review of PRs.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.