Skip to content
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

fix: broken ci flow in Node 18 #947

Closed
wants to merge 20 commits into from

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Nov 1, 2023

Description

For now all CI flows failed as OSD upgrade Node version to v18, which use ipv6 by default. Add --server.host="0.0.0.0" to enforce CI to setup OSD server in ipv4.

Issues Resolved

#902

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
@SuZhou-Joe SuZhou-Joe marked this pull request as draft November 1, 2023 07:25
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Copy link
Member

@ruanyl ruanyl left a comment

Choose a reason for hiding this comment

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

Shall we make --dns-result-order=ipv4first the default option?

cypress.json Outdated
@@ -20,6 +20,7 @@
"VISBUILDER_ENABLED": true,
"DATASOURCE_MANAGEMENT_ENABLED": false,
"ML_COMMONS_DASHBOARDS_ENABLED": true,
"WAIT_FOR_LOADER_BUFFER_MS": 0
"WAIT_FOR_LOADER_BUFFER_MS": 0,
"NO_COMMAND_LOG": 1
Copy link
Member

Choose a reason for hiding this comment

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

Q: could you elaborate this change? seems not related to this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

On Chrome 117 the test will hang because of browser crash. According to the doc here it seems the only option we can choose.

It is better to leave a comment here but it seems we can not write comment in json file.

@@ -24,4 +24,20 @@
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
on('before:browser:launch', (browser = {}, launchOptions) => {
Copy link
Member

Choose a reason for hiding this comment

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

The same here, could you elaborate a bit? seems not related to this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, added comment above the code.

@SuZhou-Joe
Copy link
Member Author

Shall we make --dns-result-order=ipv4first the default option?

We should, and I moved the server="0.0.0.0" to NODE_OPTIONS env.

@ruanyl
Copy link
Member

ruanyl commented Nov 15, 2023

Shall we make --dns-result-order=ipv4first the default option?

We should, and I moved the server="0.0.0.0" to NODE_OPTIONS env.

I mean, shall we add it to config/node.options of OSD?

@SuZhou-Joe SuZhou-Joe closed this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants