Implement clonePath, update source code sync location#3907
Implement clonePath, update source code sync location#3907openshift-merge-robot merged 5 commits intoredhat-developer:masterfrom
Conversation
af3381e to
1c31cba
Compare
Codecov Report
@@ Coverage Diff @@
## master #3907 +/- ##
==========================================
+ Coverage 44.82% 44.86% +0.03%
==========================================
Files 143 143
Lines 13906 13919 +13
==========================================
+ Hits 6234 6245 +11
- Misses 7082 7083 +1
- Partials 590 591 +1
Continue to review full report at Codecov.
|
johnmcollier
left a comment
There was a problem hiding this comment.
LGTM.
As discussed on slack, I'll add a note to #3798 about properly supporting multiple projects once this is merged.
|
/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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1c31cba to
9fa5f3d
Compare
|
/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. |
5 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. |
159276a to
e807b1b
Compare
|
/hold cancel |
tests/examples/source/devfiles/nodejs/devfile-with-multiple-projects.yaml
Outdated
Show resolved
Hide resolved
e807b1b to
ad6f5f5
Compare
| // devfile with clonePath set in project field | ||
| helper.CopyExampleDevFile(filepath.Join("source", "devfiles", "nodejs", "devfile-with-projects.yaml"), filepath.Join(context, "devfile.yaml")) | ||
| // we do not need to check source code location inside the container, as the expected workingDir | ||
| // is already set in devfile.yaml, odo push would fail if it is not synced to correct location |
There was a problem hiding this comment.
I think odo push doesn't fail in case of nodejs components even if there is no package.json. I feel it's better to check for the presence of some files at the source location.
ad6f5f5 to
021a3b9
Compare
|
/retest |
|
/retest |
if project.clonePath is present sync to $PROJECTS_ROOT/clonePath if clonePath not set sync to $PROJECTS_ROOT/projectName if no project present sync to $PROJECTS_ROOT
914b329 to
d469775
Compare
What type of PR is this?
/kind feature
What does does this PR do / why we need it:
If a single project is present in devfile:
if no project or multiple project present in devfile
The value of $PROJECTS_ROOT is determined by
sourceMappingfield in devfile orPROJECTS_ROOTenv variable. if both are unset default is/projects.Which issue(s) this PR fixes:
Fixes #3729
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
kubectl exec -it <pod-name> -- ls $PROJECTS_ROOT/<clonePathValue>