Skip to content

Conversation

@devversion
Copy link
Member

  • Instead of manually exiting the process we should just ensure that everything is properly cleaned up and then gulp can take care of the exit codes.

  • If we have the e2e:done task at the end of the sequence it will be never called when an error occurred before (will cause things like https://travis-ci.org/angular/material2/jobs/180782730)

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 2, 2016
@devversion devversion force-pushed the chore/e2e-properly-exit branch from 3a8ec56 to c6189b3 Compare December 2, 2016 22:18
const PROTRACTOR_CONFIG_PATH = path.join(PROJECT_ROOT, 'test/protractor.conf.js');

/** Method to stop a running e2e web server, which may have not exited properly */
let stopE2eServer: () => void = null;
Copy link
Member

Choose a reason for hiding this comment

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

You could do

let stopE2eServer = () => {};

And then just call stopE2eServer directly without cleanupTasks

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good. I had the cleanupTasks method because I thought that it would be good in the future to just have all cleanups at one place.

* Instead of manually exiting the process we should just ensure that everything is properly cleaned up and then gulp can take care of the exit codes.
* If we have the `e2e:done` task at the end of the sequence it will be never called when an error occurred before
@devversion devversion force-pushed the chore/e2e-properly-exit branch from c6189b3 to 1939dca Compare December 2, 2016 23:00
@jelbourn
Copy link
Member

jelbourn commented Dec 6, 2016

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Dec 6, 2016
@mmalerba mmalerba merged commit bdb2958 into angular:master Dec 6, 2016
@devversion devversion deleted the chore/e2e-properly-exit branch December 6, 2016 07:53
@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 Sep 6, 2019
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants