Skip to content

build: prevent binding BrowserSync UI server during test execution #23733

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

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

trik
Copy link

@trik trik commented Oct 12, 2021

Running e2e tests locally on macOS raises various EADDRINUSE errors due to browsersync UI server trying to bind multiple times on the same port. furthermore it's not really useful having ui server running in ci tests execution

@trik trik requested a review from a team as a code owner October 12, 2021 09:38
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 12, 2021
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

Thanks, that's a good idea. Just one suggestion on how to implement that

@trik trik force-pushed the disable-browser-sync-ui-listen branch from fd18f41 to 95272ba Compare October 12, 2021 13:17
Copy link
Member

@devversion devversion 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!

@@ -16,12 +16,12 @@ const {root_paths: _rootPathsRaw, port, historyApiFallback} =
minimist(args, {boolean: 'historyApiFallback'});
const rootPaths = _rootPathsRaw ? _rootPathsRaw.split(',') : ['/'];

const server = new DevServer(port, rootPaths, historyApiFallback);
const bindUi = process.env.TEST_TARGET === undefined;
Copy link
Member

Choose a reason for hiding this comment

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

Optional when you have time: A small comment would be good here, saying that for tests like e2e the UI is not reasonable to serve, and it could cause port conflicts.

@devversion devversion added action: merge The PR is ready for merge by the caretaker merge safe target: rc This PR is targeted for the next release-candidate target: patch This PR is targeted for the next patch release and removed target: rc This PR is targeted for the next release-candidate labels Oct 12, 2021
@zarend zarend merged commit 48836a8 into angular:master Oct 13, 2021
zarend pushed a commit that referenced this pull request Oct 13, 2021
zarend pushed a commit that referenced this pull request Oct 13, 2021
@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 Nov 13, 2021
@trik trik deleted the disable-browser-sync-ui-listen branch November 13, 2021 13:35
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 cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants