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

[tests only] Improve TestRouterPortsCheck random failure, limit use of TestNodeJSVersions #5020

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

rfay
Copy link
Member

@rfay rfay commented Jun 25, 2023

The Issue

TestRouterPortsCheck fails often, especially on colima slow Github actions test
TestNodeJSVersions often fails due to upstream problems or network problems. Don't test it in most places.

How This PR Solves The Issue

  • Make sure that the port is actually occupied before continuing.
  • Introduce DDEV_SKIP_NODEJS_TEST, when "true", skip. It's set to true now for most test runners

@rfay rfay changed the title [tests only] Improve TestRouterPortsCheck random failure [tests only] Improve TestRouterPortsCheck random failure, limit use of TestNodeJSVerions Jun 25, 2023
@rfay rfay changed the title [tests only] Improve TestRouterPortsCheck random failure, limit use of TestNodeJSVerions [tests only] Improve TestRouterPortsCheck random failure, limit use of TestNodeJSVersions Jun 25, 2023
@github-actions
Copy link

github-actions bot commented Jun 25, 2023

@rfay
Copy link
Member Author

rfay commented Jun 26, 2023

TestProjectPortsOverride seems to have the exact same problem (Colima) likely for exact same reason.

},
}

containerID, out, err := dockerutil.RunSimpleContainer(versionconstants.GetWebImage(), t.Name()+"occupyport", nil, []string{}, []string{}, []string{"testnfsmount" + ":/nfsmount"}, "", false, true, nil, portBinding)
Copy link
Member Author

Choose a reason for hiding this comment

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

This must have a dockerutil.WaitContainer() or equivalent

@rfay rfay marked this pull request as ready for review June 26, 2023 16:02
@rfay rfay requested a review from a team as a code owner June 26, 2023 16:02
@rfay rfay requested a review from gilbertsoft June 26, 2023 16:03
@rfay rfay force-pushed the 20230625_fix_router_ports_test branch from 0519a35 to 2c37b01 Compare June 26, 2023 17:35
Copy link
Member

@gilbertsoft gilbertsoft left a comment

Choose a reason for hiding this comment

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

Looks good!

@rfay rfay merged commit 7452ba0 into ddev:master Jun 26, 2023
17 of 20 checks passed
@rfay rfay deleted the 20230625_fix_router_ports_test branch June 26, 2023 18:31
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.

None yet

2 participants