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

chore(devfile): che-theia devfile to work on plugins #987

Merged
merged 4 commits into from
Feb 10, 2021
Merged

Conversation

sunix
Copy link
Contributor

@sunix sunix commented Feb 8, 2021

Signed-off-by: Sun Tan sutan@redhat.com

What does this PR do?

A devfile for dogfooding. At the moment it covers only the plugins dev flow.

Screenshot/screencast of this PR

Selection_208

What issues does this PR fix or reference?

Part of eclipse-che/che#18763

How to test this PR?

  • create a new workspace out of this url: https://github.com/eclipse/che-theia/tree/devfile-plugin
  • It should clone che-theia repo
  • choose any plugin to work on: for instance the welcome-plugin
  • open any file located in /projects/che-theia/plugins/welcome-plugin for instance src/welcome-plugin.ts
  • run the command build ... current yarn project: it should build the project (may take a while the first time)
  • run the command test-watch ... current yarn project: it should fail as there is no tests in this plugin. For plugins with tests, it should run the test in watch mode: any changes on files would restart the test and warn the developer if a test is failling.
  • do a change in src/welcome-plugin.ts, for instance:
    Selection_203
  • run the command build current plugin ... and run with che-theia it should build the plugin (without format/lint/test checks) and start che-theia. it should only take few seconds
  • see your changes in the welcome page
    Selection_204
  • Ctrl-C to stop the server
  • do a change in src/welcome-plugin.ts, for instance:
    Selection_205
  • rerun the command build current plugin ... and run with che-theia
  • see your changes in the welcome page
    Selection_206

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=stable

Signed-off-by: Sun Tan <sutan@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Feb 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 docker.io/maxura/che-theia:987
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:987

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.

@sunix sunix marked this pull request as ready for review February 9, 2021 15:18
devfile.yaml Outdated Show resolved Hide resolved
devfile.yaml Outdated Show resolved Hide resolved
exit 1;
fi
done
SKIP_TEST=true SKIP_FORMAT=true SKIP_LINT=true yarn --cwd=$project_folder
Copy link
Contributor

Choose a reason for hiding this comment

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

in one case (when of build it's doing tests/checks and here it's skipping checks
fine for me b/c I like TDD but I don't know if it's the flow for all devs ?

Copy link
Contributor Author

@sunix sunix Feb 9, 2021

Choose a reason for hiding this comment

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

Let's see if someone complains and we will figure out :)

devfile.yaml Outdated Show resolved Hide resolved
@che-bot
Copy link
Contributor

che-bot commented Feb 9, 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:987
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:987

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.

@che-bot
Copy link
Contributor

che-bot commented Feb 9, 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:987
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:987

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.

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.

I've just tested it - everything works well.
Thanks for making it unified for all plug-ins.

@sunix sunix merged commit 1079f0c into master Feb 10, 2021
@sunix sunix deleted the devfile-plugin branch February 10, 2021 10:04
@che-bot che-bot added this to the 7.26 milestone Feb 10, 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.

4 participants