Skip to content
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

Updated Dart autoroller scripts #234

Merged
merged 1 commit into from
Apr 22, 2019
Merged

Updated Dart autoroller scripts #234

merged 1 commit into from
Apr 22, 2019

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Apr 16, 2019

Updated Dart autoroller scripts to:

  • Respect TERM=dumb (don't print colors)
  • Kill child processes properly if the roller is stopped
  • Unbuffer output for better logging
  • Allow for skipping the creation of a pull request
  • Handle failing engine builders while waiting for pull request checks to pass
  • Other mysterious features and bug fixes!

- Respect TERM=dumb (don't print colors)
- Kill child processes properly if the roller is stopped
- Unbuffer output for better logging
- Allow for skipping the creation of a pull request
- Other mysterious features and bug fixes!
@bkonyi bkonyi requested a review from a-siva April 16, 2019 20:23
@@ -272,7 +293,9 @@ def wait_for_status(commit):
status = commit.get_combined_status().state
if status == GITHUB_STATUS_SUCCESS:
break
elif status == GITHUB_STATUS_FAILURE:
# If the only the engine builders are red, keep trying.
Copy link
Contributor

Choose a reason for hiding this comment

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

if only the engine ....

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python -u
Copy link
Member

Choose a reason for hiding this comment

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

Why hardcode the path? Not that we build on FreeBSD, and yes this is super specific to our infra, but this would break people whose python is at e.g. /usr/local/bin/python

https://stackoverflow.com/questions/2429511/why-do-people-write-the-usr-bin-env-python-shebang-on-the-first-line-of-a-pyt

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 think the existing string was breaking things with the '-u' option, but it seems fine now... I'll change it back.

@bkonyi bkonyi merged commit 5ae8c39 into master Apr 22, 2019
@bkonyi bkonyi deleted the autoroller_update branch April 22, 2019 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants