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

[WIP] build: Align with the upstream's upgrade to Webpack 5#1105

Closed
azatsarynnyy wants to merge 22 commits intomasterfrom
upstream_aligh
Closed

[WIP] build: Align with the upstream's upgrade to Webpack 5#1105
azatsarynnyy wants to merge 22 commits intomasterfrom
upstream_aligh

Conversation

@azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented May 17, 2021

Signed-off-by: Artem Zatsarynnyi azatsary@redhat.com

What does this PR do?

Upstream Theia has been upgraded to Webpack 5 in eclipse-theia/theia#9451
It requires updating the format of the provided arguments: --env arg instead of --env.arg
More details are here eclipse-che/che#19804 (comment)

Screenshot/screencast of this PR

What issues does this PR fix or reference?

eclipse-che/che#19804

How to test this PR?

Build should pass - no error from Webpack anymore.

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: Artem Zatsarynnyi <azatsary@redhat.com>
@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #1105 (f7f50e6) into master (eeb4526) will increase coverage by 2.85%.
The diff coverage is 54.11%.

❗ Current head f7f50e6 differs from pull request most recent head 6c4c55b. Consider uploading reports for the commit 6c4c55b to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1105      +/-   ##
==========================================
+ Coverage   29.45%   32.30%   +2.85%     
==========================================
  Files         277      281       +4     
  Lines        9336     9564     +228     
  Branches     1380     1440      +60     
==========================================
+ Hits         2750     3090     +340     
+ Misses       6487     6378     -109     
+ Partials       99       96       -3     
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 68 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 f7fba8f...6c4c55b. Read the comment docs.

@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

@azatsarynnyy azatsarynnyy marked this pull request as ready for review May 20, 2021 18:34
THEIA_GITHUB_REPO="eclipse-theia/theia"
THEIA_VERSION="master"
THEIA_BRANCH="master"
THEIA_COMMIT_SHA="2eb4319fb459f30ad897e8467878154c6790aaef"
Copy link
Member Author

Choose a reason for hiding this comment

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

not the latest sha, as the latest commit brings another breaking changes
I'll look at it tomorrow

Copy link
Member Author

Choose a reason for hiding this comment

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

@azatsarynnyy azatsarynnyy changed the title [WIP] Align with upstream Align with the upstream's upgrade to Webpack 5 May 20, 2021
@azatsarynnyy azatsarynnyy changed the title Align with the upstream's upgrade to Webpack 5 [WIP] Align with the upstream's upgrade to Webpack 5 May 20, 2021
@azatsarynnyy
Copy link
Member Author

Still WIP. Some problems with loading the static resources
image

Continue the investigation...

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

@che-bot

This comment has been minimized.

@che-bot

This comment has been minimized.

@azatsarynnyy azatsarynnyy marked this pull request as draft May 21, 2021 07:14
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

@azatsarynnyy
Copy link
Member Author

[crw-ci-test --rebuild]

@che-bot

This comment has been minimized.

@che-bot

This comment has been minimized.

@che-bot

This comment has been minimized.

@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

@benoitf
Copy link
Contributor

benoitf commented May 31, 2021

@azatsarynnyy please update as well https://github.com/eclipse-che/che-theia/blob/upstream_aligh/generator/src/templates/assembly-package.mst#L71

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

@che-bot

This comment has been minimized.

@azatsarynnyy
Copy link
Member Author

fighting with the next problem:

    'ERROR in Template execution failed: ReferenceError: process is not defined\n' +
    '\n' +
    'ERROR in ReferenceError: process is not defined\n' +
    '  \n' +
    '  - custom-html.html:2946 Object.489\n' +
    '    /home/theia-dev/theia-source-code/examples/assembly/cdn/custom-html.html:294    6:15\n' +

@benoitf
Copy link
Contributor

benoitf commented Jun 1, 2021

you may try SimulatedGREG/electron-vue#871 (comment)

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot

This comment has been minimized.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Jun 7, 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:1105
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:1105

Test product:

  • 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.

Eclipse Che QE channel: https://mattermost.eclipse.org/eclipse/channels/eclipse-che-qe

@azatsarynnyy
Copy link
Member Author

azatsarynnyy commented Jun 8, 2021

The build is fixed. Now investigating runtime problem
image

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Jun 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:1105
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:1105

Test product:

  • 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.

Eclipse Che QE channel: https://mattermost.eclipse.org/eclipse/channels/eclipse-che-qe

@benoitf
Copy link
Contributor

benoitf commented Jun 10, 2021

ready to merge ,?

@che-bot
Copy link
Contributor

che-bot commented Jun 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:1105
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:1105

Test product:

  • 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.

Eclipse Che QE channel: https://mattermost.eclipse.org/eclipse/channels/eclipse-che-qe

@azatsarynnyy
Copy link
Member Author

ready to merge ,?

Something went wrong with the PR status checks here, so I opened another one #1134
I want to check the build images and then will open it for a review. Today or tomorrow.

@benoitf
Copy link
Contributor

benoitf commented Jun 10, 2021

Ok thx

@azatsarynnyy
Copy link
Member Author

superseded by #1134

@azatsarynnyy azatsarynnyy deleted the upstream_aligh branch June 11, 2021 06:48
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