-
Notifications
You must be signed in to change notification settings - Fork 13
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
chore: update yarn to v3 #273
Conversation
@apupier I have the following situation whenever we link the latest Should we stay then in the released |
I guess you mean the When developing locally, there is a little trick to use another backend: https://github.com/KaotoIO/vscode-kaoto/blob/main/CONTRIBUTING.md#how-to-manually-test-latest-kaoto-backend |
df94c97
to
c92fe03
Compare
I agree, it would be nice to have the latest Kaoto backend. In this particular case, using the main branch for Kaoto UI won't work with the backend 1.0 because of the former using newer |
a01ba8f
to
2e41ab9
Compare
As [kaoto-ui](https://github.com/KaotoIO/kaoto-ui) migrated to yarn v3, it's time for vscode to do the same. Changes: * Upgrade yarn to v3 - berry * Remove installing global dependencies from CI workflows as those are deprecated in favor of the "yarn dlx" command * Add a local yarn plugin (.yarn/plugins/plugins-list.js) to bring the functionality from yarn v1 "yarn list --prod --json" since the "@vscode/vsce" depends on such functionality. more datails in [the following issue](microsoft/vscode-vsce#517) * Update the CONTRIBUTING.md file to reflect the new API for "yarn link" * Bump "@kie-tools-core/*" from "0.27.0" to "0.29.0" as it's required that the dependencies match from the root package and the linked package. * Add a resolution entry for "zundo" package to support both "[email protected]" and "kaoto-ui@main-branch" fixes: KaotoIO#270
fda8f5e
to
e699b53
Compare
bus: acquireVsCodeApi(), | ||
editorFactory: new KaotoEditorFactory(), | ||
editorFactory: new KaotoEditorFactory() as unknown as EditorFactory<Editor, KogitoEditorChannelApi>, |
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.
There's a mismatch between @kie-tools-core
from kaoto-ui
and vscode-kaoto
. This will be removed during the next release of kaoto-ui
.
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.
So related to the comment here https://github.com/KaotoIO/vscode-kaoto/pull/273/files?diff=split&w=1#r1229554845
if I understand well, this is a trick to avoid failure at compile time but in case a method that does not exists is called it will fail at runtime?
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.
this is a trick to avoid failure at compile time
yes
In case a method that does not exists is called it will fail at runtime
yes, it will be like that, but I proposed this change because in the newest version of @kie-tools-core
there were 2 properties added:
- kogitoGuidedTour_guidedTourUserInteraction
- kogitoGuidedTour_guidedTourRegisterTutorial
and we're not using them yet, so I assumed that we could move forward like that. I could remove it as well since even if we're supporting linking vscode-kaoto
with kaoto-ui@main
, at the test side still won't work with the latest kaoto-backend
.
@@ -159,14 +159,17 @@ | |||
"tsconfig-paths-webpack-plugin": "^4.0.1", | |||
"typescript": "^5.0.4", | |||
"url-loader": "^4.1.1", | |||
"vscode-extension-tester": "5.6.0", | |||
"vscode-extension-tester": "^5.7.1", |
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.
Upgraded this dependency as it has bigger timeouts
Signed-off-by: Dominik Jelinek <[email protected]>
"@kie-tools-core/patternfly-base": "^0.27.0", | ||
"@kie-tools-core/vscode-extension": "^0.27.0", | ||
"@kie-tools-core/workspace": "^0.27.0", | ||
"@kie-tools-core/backend": "^0.29.0", |
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.
This upgrade is needed to match the kaoto-ui
current dependencies, as it is a requirement from yarn link
to match dependencies.
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.
surprised that it is working with kaoto-ui 1.0.0.
await driver.wait(until.elementLocated(By.xpath("//div[@data-testid='viz-step-slot']"))); | ||
await driver.wait(until.elementLocated(By.xpath("//div[@data-testid='viz-step-slot']"))); | ||
} | ||
|
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.
Moved the workaround here to ensure that we have time after each workspace loading.
There's an open feature request in redhat-developer/vscode-extension-tester#854 that could help with this.
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.
- The jenkinsfile must be updated too given https://github.com/KaotoIO/vscode-kaoto/blob/main/Jenkinsfile
"@kie-tools-core/patternfly-base": "^0.27.0", | ||
"@kie-tools-core/vscode-extension": "^0.27.0", | ||
"@kie-tools-core/workspace": "^0.27.0", | ||
"@kie-tools-core/backend": "^0.29.0", |
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.
surprised that it is working with kaoto-ui 1.0.0.
bus: acquireVsCodeApi(), | ||
editorFactory: new KaotoEditorFactory(), | ||
editorFactory: new KaotoEditorFactory() as unknown as EditorFactory<Editor, KogitoEditorChannelApi>, |
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.
So related to the comment here https://github.com/KaotoIO/vscode-kaoto/pull/273/files?diff=split&w=1#r1229554845
if I understand well, this is a trick to avoid failure at compile time but in case a method that does not exists is called it will fail at runtime?
build success with slighlty modified script to test on Jenkins: https://studio-jenkins-csb-codeready.apps.ocp-c1.prod.psi.redhat.com/job/Fuse/job/VSCode/job/vscode-kaoto-release/104/console |
Context
Upgrade
yarn
to thev3
versionChanges
yarn
version@kie-tools-core/*
dependencies to match withkaoto-ui
versionKnown issues
kaoto-ui@main
is not working since it requires the latest version ofkaoto-backend
since it provides the new/v2
endpoints for the multiple routes support.fixes: #270