-
Notifications
You must be signed in to change notification settings - Fork 243
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
Implement clonePath, update source code sync location #3907
Implement clonePath, update source code sync location #3907
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.
|
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.
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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1c31cba
to
9fa5f3d
Compare
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
/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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
Done.
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
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
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
sourceMapping
field in devfile orPROJECTS_ROOT
env 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>