-
Notifications
You must be signed in to change notification settings - Fork 12k
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
fix(@angular/cli): Fixed e2e task to respect --publicHost setting as baseUrl for protractor #6266
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
@ReToCode Please rebase it against |
Done. |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
CLAs look good, thanks! |
Updated to the latest version of master. Hopefully this triggers the builds again. |
@sumitarora The builds seem to fail because of something unrelated to the code? Is this a known problem? |
@filipesilva Question for #4744. What is the idea behind the apiUrl as public-host in the live-reload test? My understanding is, that the public-host is set for the serve task to enable external clients to open the webpage. In our case
The test used to tell webpack where to reach the api, but the public-host should be the url for the browser-client, not webpack. Right, or do I miss something? |
@ReToCode the live-reload test in #4744 doesn't particularly care about the Before, it only really set the live-reload client for webpack, whereas now it sets both the live reload client and an accepted host for webpack. So that test only tries to ascertain if that option actually works by calling the live reload client and the api in a couple of different ways. |
Ok. So with this change, it's no longer possible to test it this way. For now I just removed the test. Any idea to test this another way without adding a new flag for the live-reload-url? |
Hm, I need to investigate this further but as a rule of thumb if you have to remove a test, you're breaking existing functionality. And that generally means the change cannot go in 1.x because it's a breaking change. |
I think what's happening is:
So what you're missing is to:
|
Good idea. I'll try it this way one. Thanks. |
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.
As Per above ☝️
@filipesilva I tried what we discussed above. Seems like webpack does not like to proxy it's own routes. I was not able to proxy As this calls This should still result in the test case you described above
BTW, I had to change another thing in serve.ts as well. Currently the
But webpack-dev-servers But this had another issue. Currently if on uses the |
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor #6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
@filipesilva Okay I updated the PR & changed the logic in e2e to the same solution as #6367. This also fixed most of the things I talked about above. |
@ReToCode LGTM, and sorry it took a while to re-review. |
Np. Thanks! |
…baseUrl for protractor (angular#6266) angular#6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor (angular#6266) angular#6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
…baseUrl for protractor (angular#6266) angular#6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl for protractor in the e2e-task. With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
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. |
#6173 added two new settings to the serve task. The --publicHost setting is not respected as baseUrl
for protractor in the e2e-task.
With this fix, if --publicHost is set, it will be used as baseUrl for protrator.
Not sure why 1.1.0-beta.1 is not yet on master, but this fix would be for that revision (https://github.com/angular/angular-cli/tree/v1.1.0-beta.1)