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

test: use random ports for local verdaccio npm servers #23114

Merged
merged 1 commit into from May 11, 2022

Conversation

jbedard
Copy link
Contributor

@jbedard jbedard commented May 10, 2022

Best viewed ignoring whitespace.

When working on the bazel e2e tests (#23074) we might run tests in parallel such as bazel + non-bazel, npm + yarn etc.

Unfortunately the verdaccio --listen only sets the primary port and not the fallback which we need to also set, so we need to do the .replace thing :(

@jbedard jbedard force-pushed the random-npm-port branch 4 times, most recently from 7e25895 to c02fdca Compare May 10, 2022 19:43
@jbedard jbedard marked this pull request as ready for review May 10, 2022 20:05
@jbedard jbedard requested review from clydin and alan-agius4 and removed request for clydin May 10, 2022 20:39
Comment on lines +19 to +20
configContent = configContent.replace(/\$\{HTTP_PORT\}/g, String(port));
configContent = configContent.replace(/\$\{HTTPS_PORT\}/g, String(httpsPort));
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT

Suggested change
configContent = configContent.replace(/\$\{HTTP_PORT\}/g, String(port));
configContent = configContent.replace(/\$\{HTTPS_PORT\}/g, String(httpsPort));
configContent = configContent
.replace(/\$\{HTTP_PORT\}/g, String(port))
.replace(/\$\{HTTPS_PORT\}/g, String(httpsPort));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 but looks like it's too late...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah sorry, didn't notice there was a change still pending. Not sure if you care enough to justify another PR for this cleanup @alan-agius4?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@jbedard, feel free to include this suggested change in on of your upcoming PRs.

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@alan-agius4 alan-agius4 added target: rc This PR is targeted for the next release-candidate action: merge The PR is ready for merge by the caretaker labels May 11, 2022
@alan-agius4 alan-agius4 removed the request for review from clydin May 11, 2022 07:07
@dgp1130 dgp1130 merged commit aa30bb1 into angular:main May 11, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants