-
Notifications
You must be signed in to change notification settings - Fork 12k
test: use random ports for local verdaccio npm servers #23114
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
Conversation
7e25895
to
c02fdca
Compare
configContent = configContent.replace(/\$\{HTTP_PORT\}/g, String(port)); | ||
configContent = configContent.replace(/\$\{HTTPS_PORT\}/g, String(httpsPort)); |
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.
NIT
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)); |
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.
👍 but looks like it's too late...
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.
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?
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.
@jbedard, feel free to include this suggested change in on of your upcoming PRs.
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.
LGTM, thanks
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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 :(