-
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
FUSETOOLS2-2201: Testing with productized versions of Camel #1611
Conversation
e5fd64f
to
d1dc467
Compare
d1dc467
to
76faaf5
Compare
50ff61a
to
79791ad
Compare
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 cool to have tests with productized version
it would be convenient to have the camel version used visible in the log in some ways (console.log? the name of the tests ?) https://github.com/camel-tooling/camel-lsp-client-vscode/actions/runs/7395686841/job/20119333839?pr=1611 It will help to ensure that we are really testing with another version and when investigating a log to be sure which version is used.
6f3e2c5
to
5a0714f
Compare
The used version is included in the job's name for clarity, and there is a check implemented in '00_set.camel.version.test.ts'. This check ensures that the used version aligns with the required version, which is exported as an environmental variable. Using console.log() could potentially reduce the readability of the test result log. Although I have the option to add a step in the 'productized.yaml' pipeline to echo the global variable value. What do you think? |
I would like to see it directly in the log when playing the test suite even locally. Consequently, another step in the GitHub Actions won't cover this use case. Maybe providing a name of test for 00_set.camel.version.test.ts making it clear which version is used could be a good place. |
6ba249a
to
6401982
Compare
Implemented. |
cd5c410
to
5ec4dbd
Compare
5ec4dbd
to
3a63bde
Compare
@apupier is this something you were looking for? cc @pospisilf |
this is nice for version matrix on GitHub action. |
3a63bde
to
f3d7dc8
Compare
} | ||
|
||
// set version in ui | ||
const settings = await new Workbench().openSettings(); |
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.
could you please investigate option how to set this property directly in setting.json using filesystem, not using UI?
@pospisilf I have pushed here one commit with some suggestions to make this approach more "clear" |
f3d7dc8
to
6cb5627
Compare
} | ||
|
||
// set version directly | ||
await setUserSettingsDirectly(CATALOG_VERSION_ID, process.env.CAMEL_VERSION); |
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.
no need of await
if setUserSettingsDirectly is using sync methods
src/ui-test/utils/testUtils.ts
Outdated
* @param id ID of setting. | ||
* @param value Value of setting. | ||
*/ | ||
export async function setUserSettingsDirectly(id: string, value: string): Promise<void> { |
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.
no need to use async function returning promise
ba80328
to
79df18e
Compare
|
bigger improvements were made, requesting new reviews |
Pull Request informations
Rebase & Merge default requirements
PR labels default process
Tests
PR workflow progress