Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

16502 refactor rpcprotocol#971

Merged
tsmaeder merged 5 commits intoeclipse-che:masterfrom
tsmaeder:16502_refactor_rpcprotocol
Apr 23, 2021
Merged

16502 refactor rpcprotocol#971
tsmaeder merged 5 commits intoeclipse-che:masterfrom
tsmaeder:16502_refactor_rpcprotocol

Conversation

@tsmaeder
Copy link
Contributor

@tsmaeder tsmaeder commented Jan 26, 2021

What does this PR do?

This PR adapts che-theia to the upstream PR eclipse-theia/theia#8972. As such, I'll leave it in draft PR staus until upstream is merged. It is still open for review.

What issues does this PR fix or reference?

This is a refactoring and as such not related to a PR. See upstream PR for justification.

How to test this PR?

Use local and remote plugins in a workspace based on the results of this PR build. (self-hosting or via the image built for the happy-path tests.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Happy Path Channel

HAPPY_PATH_CHANNEL=next

@tsmaeder tsmaeder marked this pull request as draft January 26, 2021 09:26
@che-bot
Copy link
Contributor

che-bot commented Jan 26, 2021

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:971
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder tsmaeder force-pushed the 16502_refactor_rpcprotocol branch from 6f79c05 to e6d147d Compare February 4, 2021 14:19
@che-bot
Copy link
Contributor

che-bot commented Feb 4, 2021

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:971
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder tsmaeder marked this pull request as ready for review February 8, 2021 08:54
@tsmaeder
Copy link
Contributor Author

tsmaeder commented Feb 8, 2021

Since I have two thumbs up on the upstream PR, I'm removing the "draft" status, Reviewers, please review!

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me, as it's just an adaptation to the upstream refactoring.
Let us know once a Che-Theia image is ready for testing the PR.


@postConstruct()
protected postConstruct(): void {
console.log('hosted plugin remote postconstruct');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep this log or it's just a leftover?

@tsmaeder
Copy link
Contributor Author

tsmaeder commented Feb 9, 2021

Let us know once a Che-Theia image is ready for testing the PR.

I honestly don't know how to create one: the Github action PR checks don't publish images and the "happy path" CI job doesn't have the ability to work with Theia branches. 🤷 I guess self-hosting is the process to test in this case.

@benoitf
Copy link
Contributor

benoitf commented Feb 9, 2021

@tsmaeder you could change in build.include file the branch used

@tsmaeder
Copy link
Contributor Author

tsmaeder commented Feb 9, 2021

Hmh...does the plugin-host executable get rebuilt when we rebuild the che-theia image? Not sure anymore. Because the protocol between back-end and plugin host changed. @benoitf what would be the right way to test that?

@benoitf
Copy link
Contributor

benoitf commented Feb 9, 2021

@tsmaeder yes it builds the endpoint image as well

Right way: tune build.include to include remote upstream theia branch/fork instead of eclipse-theia/theia + master so Happy path will deploy both custom theia and custom theia endpoint (so it will validate if communication across containers/VS Code extensions works fine)

@tsmaeder tsmaeder force-pushed the 16502_refactor_rpcprotocol branch from e6d147d to 20976ee Compare March 10, 2021 14:28
@che-bot
Copy link
Contributor

che-bot commented Mar 10, 2021

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder
Copy link
Contributor Author

[crw-ci-test]

@che-bot
Copy link
Contributor

che-bot commented Mar 10, 2021

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder
Copy link
Contributor Author

[crw-ci-test --rebuild]

@che-bot
Copy link
Contributor

che-bot commented Mar 10, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder
Copy link
Contributor Author

@benoitf @azatsarynnyy we have an image being built now. Could you test, please?

@benoitf
Copy link
Contributor

benoitf commented Mar 15, 2021

let's merge it after 7.28.0 is tagged (ie: for 7.29.0 so it'll be a new CRW/Che lifecycle)

@tsmaeder tsmaeder force-pushed the 16502_refactor_rpcprotocol branch from 20976ee to 939dce4 Compare March 19, 2021 15:41
@che-bot
Copy link
Contributor

che-bot commented Mar 19, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@ericwill
Copy link
Contributor

ericwill commented Apr 6, 2021

@tsmaeder what's the status of this PR?

@tsmaeder
Copy link
Contributor Author

tsmaeder commented Apr 6, 2021

When I get a moment, I need to rebase the upstream PR before I can merge both.

@benoitf
Copy link
Contributor

benoitf commented Apr 6, 2021

now, we're at 2/3 of the sprint (my previous comment was 3 weeks ago) so it's not becoming a good time to merge refactoring upstream/downstream stuff

@tsmaeder tsmaeder force-pushed the 16502_refactor_rpcprotocol branch from 939dce4 to 0fc4429 Compare April 8, 2021 13:05
@che-bot
Copy link
Contributor

che-bot commented Apr 8, 2021

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder tsmaeder force-pushed the 16502_refactor_rpcprotocol branch from 250ef27 to 52d25d9 Compare April 8, 2021 14:48
@che-bot
Copy link
Contributor

che-bot commented Apr 8, 2021

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

Signed-off-by: Thomas Mäder <tmader@redhat.com>
Signed-off-by: Thomas Mäder <tmader@redhat.com>
@tsmaeder tsmaeder force-pushed the 16502_refactor_rpcprotocol branch from 52d25d9 to 467ae97 Compare April 23, 2021 09:50
@che-bot
Copy link
Contributor

che-bot commented Apr 23, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

Signed-off-by: tsmaeder <tmader@redhat.com>
@tsmaeder
Copy link
Contributor Author

[crw-ci-test --rebuild]

@che-bot
Copy link
Contributor

che-bot commented Apr 23, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

Signed-off-by: tsmaeder <tmader@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Apr 23, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

Signed-off-by: tsmaeder <tmader@redhat.com>
@codecov
Copy link

codecov bot commented Apr 23, 2021

Codecov Report

Merging #971 (2c0c94c) into master (eeb4526) will increase coverage by 2.04%.
The diff coverage is 42.40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #971      +/-   ##
==========================================
+ Coverage   29.45%   31.50%   +2.04%     
==========================================
  Files         277      278       +1     
  Lines        9336     9469     +133     
  Branches     1380     1419      +39     
==========================================
+ Hits         2750     2983     +233     
+ Misses       6487     6484       -3     
+ Partials       99        2      -97     
Impacted Files Coverage Δ
...theia-about/src/browser/about-che-theia-dialog.tsx 0.00% <ø> (ø)
...ovisioner/src/node/git-configuration-controller.ts 0.00% <0.00%> (ø)
...eia-plugin-remote/src/node/hosted-plugin-remote.ts 0.00% <0.00%> (ø)
...theia-plugin-remote/src/node/plugin-host-custom.ts 0.00% <0.00%> (ø)
...in-remote/src/node/plugin-remote-backend-module.ts 0.00% <0.00%> (ø)
...theia-plugin-remote/src/node/plugin-remote-init.ts 0.00% <0.00%> (ø)
...-che-theia-plugin-remote/src/node/plugin-remote.ts 0.00% <0.00%> (ø)
...ugin-remote/src/node/server-plugin-proxy-runner.ts 0.00% <0.00%> (ø)
...plugin-remote/src/node/terminal-container-aware.ts 0.00% <0.00%> (ø)
...a-plugin-remote/src/node/webviews-content-aware.ts 0.00% <0.00%> (ø)
... and 90 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e38b437...2c0c94c. Read the comment docs.

@che-bot
Copy link
Contributor

che-bot commented Apr 23, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:971
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:971

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@tsmaeder tsmaeder merged commit 534cfad into eclipse-che:master Apr 23, 2021
@che-bot che-bot added this to the 7.30 milestone Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants