Skip to content

Conversation

@DanTup
Copy link
Contributor

@DanTup DanTup commented Jul 16, 2018

This isn't perfect, but it seems unlikely this behaviour will change (and if it does, this will likely just silently do nothing) but it does reliably result in Flutter quitting, whereas without this it hangs around until it's either forcefully killed at the end of the entire run, or the next app install forces it to quit.

Fixes #19208.

@DanTup DanTup changed the title In microbenchmarks, tell flutter to quit by sending q to stdin In microbenchmarks, ensure flutter quits by sending q to stdin Jul 16, 2018
Copy link
Contributor

Choose a reason for hiding this comment

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

the comment here seems wrong now? maybe "in case..."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure which bit you're referring to - do you mean the comment on the .kill()?

We could remove the kill, but I think ultimately we want to fix the issue (it may require a VM change to allow snapshot validation so we can change the shell script to use exec) and go back to the kill. I can remove it for now and add some comments if you think that might make more sense though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm all for leaving the kill, just changing the comment to "in case flutter run doesn't quit automatically" or some such. The comment is wrong, now that we do quit it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry, I see what you mean now. The original comment was referring to the behaviour of flutter run not quitting automatically, but I agree it was a bit misleading without context. I've updated now (and swapped the comment/ignore around to make it more readable).

@DanTup
Copy link
Contributor Author

DanTup commented Jul 23, 2018

I've rebased since there were conflicts from the constant change. @Hixie Happy for me to land this?

@Hixie
Copy link
Contributor

Hixie commented Jul 23, 2018

LGTM
this can land once the bots are green

@DanTup
Copy link
Contributor Author

DanTup commented Jul 23, 2018

Looks like a timeout in Gradle. I'll rebase on master since it was a week ago anyway, that'll probably make it go green. Thanks!

@DanTup DanTup merged commit 868d8c1 into flutter:master Jul 23, 2018
@DanTup DanTup deleted the kill-micro-benchmarks-more-reliably branch October 30, 2018 07:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microbenchmarks process.kill() does not work

3 participants