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

Rewrite script #87

Merged
merged 33 commits into from Feb 27, 2023
Merged

Rewrite script #87

merged 33 commits into from Feb 27, 2023

Conversation

TingDaoK
Copy link
Contributor

@TingDaoK TingDaoK commented Feb 24, 2023

  • rewrite shell scripts to be python for multi-platform support

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@TingDaoK TingDaoK marked this pull request as ready for review February 27, 2023 16:43
@TingDaoK TingDaoK requested a review from graebm February 27, 2023 18:18
dev-scripts/cleanup_build.py Outdated Show resolved Hide resolved
dev-scripts/prepare_pecl_release.py Outdated Show resolved Hide resolved
Comment on lines 48 to 50
except subprocess.CalledProcessError as e:
print(f'ERROR PROCESSING review package.xml: {e}')
exit(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather we NOT try and catch the exception, so it's clear which line caused the error.

the cause/effect will be more clear if we print out the cmd being run (see above suggestion about run() helper)

or put the try/catch in the run() helper, and you can just sys.exit('FAILED') because who needs a stack trace, it's obvious which command failed, it's the one being run

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, just put a try/catch for prepare_pecl_package_xml.py for now to remind people check package.xml for error details.

Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

whatever and shipit

dev-scripts/cleanup_build.py Outdated Show resolved Hide resolved
@TingDaoK TingDaoK mentioned this pull request Feb 27, 2023
@TingDaoK TingDaoK merged commit ff20f95 into native-extension-rewrite Feb 27, 2023
@TingDaoK TingDaoK deleted the rewrite-script branch February 27, 2023 23:33
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.

None yet

2 participants