-
Notifications
You must be signed in to change notification settings - Fork 52
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
Start workspace from default devfile on private repository SSH url #1286
Conversation
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1286 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1286", name: che-dashboard}]}}]" |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1286 +/- ##
==========================================
+ Coverage 91.58% 91.71% +0.12%
==========================================
Files 498 498
Lines 45590 45512 -78
Branches 3171 3167 -4
==========================================
- Hits 41754 41741 -13
+ Misses 3803 3740 -63
+ Partials 33 31 -2 ☔ View full report in Codecov by Sentry. |
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, could you please confirm that default devfile will be used not only for private SSH URL, but for every single case when devfile can not be resolved e.g. gerrit, gogs, gitea etc eclipse-che/che#21951
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
@dmytro-ndp please, review once you have time |
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.
Workspace created correctly using GitHub.com private repository SSH url in Eclipse Che with quay.io/eclipse/che-dashboard:pr-1286
Screencast: scrnli_GgaR048tsZvCNH.webm
SSH key was without pass phrase.
At the same time User Dashboard showed wrong default devfile content: eclipse-che/che#23301
This error reproduced with Dev Spaces 3.17.0 on Dev Sandbox and with Eclipse Che Next on Che dogfooding instance having configured GitHub OAuth.
I reworked the pull request so now default devfile is applied not only for private SSH repo but for other cases when the devfile cannot be resolved. |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1286 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1286", name: che-dashboard}]}}]" |
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.
Checked new changes with quay.io/eclipse/che-dashboard@sha256:ae9f5d50c4453ab133a74c271fd1c7ee39ace9410e10d1437a23277c33ceb96e
Test tun 1
Next workspaces have started successfully and devfile from test repo has applied correctly as well, having SSH key without passphrase added to the user preferences:
- from GitHub private repo using factory with SSH URL
- from GitHub public repo using factory with SSH URL
- from GitHub public repo using factory with HTTPS URL
- from in-build Maven Java sample
- Empty workspace
The issue eclipse-che/che#23301 has been reproduced as well.
Test run 2
I had also faced the misleading warning message WARNING: The Bitbucket integration is not configured properly and cannot be used at this moment.Please refer to docs to check the Bitbucket integration instructions
when tried to start workspace from the gogs public repo using HTTP URL, with the proposal to start workspace using default devfile.
After the clicking on "Continue with default devfile" link the workspace had started successfully, and devfile from the repo has been applied, instead of default devfile.
It looked unexpected, especially taking into account that User Dashboard showed wrong default devfile content of workspace.
In Eclipse Che Next I faced the same behavior, with the only difference - default devfile had been applied, not the actual devfile situated in the repo.
Screencast: scrnli_apfigF2g8ed08c.webm
I have opened a separate ticket: eclipse-che/che#23303
The issue eclipse-che/che#23301 has been reproduced.
Test run 3
Another test case - create workspace using factory SSH URL of gogs private repo ssh://[email protected]:10022/test/quarkus-api-example-private.git
- demonstrated different warning message WARNING: Cannot build factory with any of the provided parameters. Please check parameters correctness, and resend query.
this time without additional "Continue with default devfile" link:
Screencast: scrnli_D2FQdEJkQPkw2O.webm
I have opened a separate ticket: eclipse-che/che#23304
The issue eclipse-che/che#23301 has been reproduced.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dmytro-ndp, ibuziuk, olexii4, vinokurig The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@dmytro-ndp Thank you for the meticulous testing.
If those cases are reproduced regardless the pull request changes, could you please create separate issues? |
…1286) Remove the Devfile resolve from a privatre repositry via an SSH url is not supported warning and start workspace from the default devfile in this case.
What does this PR do?
Remove the
Devfile resolve from a privatre repositry via an SSH url is not supported
warning and start workspace from the default devfile in this case.Screenshot/screencast of this PR
What issues does this PR fix or reference?
eclipse-che/che#23277
Is it tested? How?
che-dashboard
pull request image:quay.io/eclipse/che-dashboard:pr-1286
See: workspace starts without interruption, local devfile is applied.
Release Notes
Docs PR