-
Notifications
You must be signed in to change notification settings - Fork 244
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
Use example from the repo instead of downloading it #4207
Use example from the repo instead of downloading it #4207
Conversation
Sub modules are hard to maintain, are you sure about it? |
We would need to add a git submodule init & sync step in the readme |
I'm not. That's why I am seeking thoughts from others.
I think it's more like we'll have to sync if there's any change in the submodule repo that we want to use on our side. But I get what you're suggesting. It's not as straightforward as, maybe, cloning the code somewhere and doing a EDIT: I would, personally, put maintainability of the code above everything else. If we're not comfortable maintaining something in the long run, we should avoid it and make it more maintainable. |
We are storing some external dependencies here https://github.com/openshift/odo/tree/master/tests/examples/source/devfiles/nodejs We can add this one too, but i am not sure how maintainable it is to store all dependencies in odo. |
This issue is reported before we started caching devfile registry, then it could be due to hitting github API rate limits. |
I don't think that there is any reason why it needs to be a submodule. We can simply copy the samples we are already doing that it some examples. |
Codecov Report
@@ Coverage Diff @@
## master #4207 +/- ##
=======================================
Coverage 42.57% 42.57%
=======================================
Files 156 156
Lines 13258 13258
=======================================
Hits 5645 5645
Misses 7012 7012
Partials 601 601 Continue to review full report at Codecov.
|
It looks like we're unanimously sceptical of using submodule. 😄 |
/lgtm |
It might also be a good idea to add a script that updates the examples from its source, for when we need to. |
That would be over engineering things here, IMHO. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: girishramnani The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
12 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind cleanup
What does this PR do / why we need it:
We need this to remove external dependency of downloading the code from GitHub each time in the test
Which issue(s) this PR fixes:
Fixes #3020
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
Tests should pass.