Improve release script#2558
Conversation
There was a problem hiding this comment.
Failed during WPAndroid PR again. Latest error:
==> Update strings
DEBUG:root:Parsing ./WordPress/src/main/res/values/strings.xml
DEBUG:root:Parsing ./libs/gutenberg-mobile/bundle/android/strings.xml
DEBUG:root:Section Gutenberg Native found, emptying...
DEBUG:root:Done emptying.
DEBUG:root:Filling section Gutenberg Native
On branch gutenberg/integrate_release_999.999.999
Changes not staged for commit:
modified: libs/gutenberg-mobile (modified content)
no changes added to commit
Failed during: git commit -m Release\ script:\ Update\ strings `
|
Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job! |
|
Thanks for the test run @cameronvoell! Seems like there were no changes to the strings in this case and trying to commit them failed. Updated the script to not commit when there are no changes. |
|
Errors on WPAndroid, didn't get a chance to troubleshoot today, but I'll leave errors here: ... script continues, then: And for WPiOS , at end of this step: I got this error: |
I wonder why the script continued instead of exiting when the submodule command failed. |
I think it's because it does not exit for failing commands from a command substitution
I'm curious about how did this happen though. It should've been ran with a brand new clone of
I think I know why: gutenberg-mobile/bin/release_automation.sh Line 259 in 80ccd7e It was looking to replace: |
Without I've had bad luck with unexpected behavior from |
That's right. I thought they were there to only give more meaningful error messages. But I think for the To fail the whole script when a command in or maybe we should bring back this code: But that means adding it to all the places that run code inside |
|
The two issues I recall are that sometimes I didn't mind if a command failed and it doesn't work well with |
|
@mchowning Maybe it could have happened because of one of the cases mentioned in the docs |
|
@cameronvoell I think this is ready for another round of review and testing |
|
Still failing at getting one solid run through all 4 PRs. Testing this evening I got caught up in the gb-mobile PR step with this error:
|
cameronvoell
left a comment
There was a problem hiding this comment.
Looking good now! Thanks Ceyhun!
This PR:
RELEASE-NOTES.txttextgutenberg/after_x.xx.xbranch in WPiOS and WPAndroidTo test:
gutenberg/after_x.xx.xbranches are created in WPiOS and WPAndroid reposgutenberg/after_x.xx.xbranchesPR submission checklist: