Skip to content

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

Merged
dgp1130 merged 1 commit into
angular:mainfrom
jbedard:random-npm-port
May 11, 2022
Merged

test: use random ports for local verdaccio npm servers#23114
dgp1130 merged 1 commit into
angular:mainfrom
jbedard:random-npm-port

Conversation

@jbedard

@jbedard jbedard commented May 10, 2022

Copy link
Copy Markdown
Contributor

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 force-pushed the random-npm-port branch from 9d53550 to 3ee7c5b Compare May 10, 2022 20:17
@jbedard
jbedard force-pushed the random-npm-port branch from 3ee7c5b to 5e3bb40 Compare May 10, 2022 20:22
@jbedard
jbedard requested review from alan-agius4 and clydin 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@alan-agius4 alan-agius4 left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown

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.

3 participants