pocket-casts-android icon indicating copy to clipboard operation
pocket-casts-android copied to clipboard

Re-running release script has wrong version number message

Open mchowning opened this issue 1 year ago • 2 comments

Description

I recently ran the new_beta_release script, but the release "failed" on CI because Google rejected the upload, so I needed to run it again. The first time I ran it it created 7.24-rc-3(9037). I assumed that I would probably need to revert the version bumps that were committed during the first run, but when I ran the script a second time the message it printed the same message that it printed the first time, saying that it was creating the same 7.24-rc-3(9037) version.

image

Actually the script created a new 7.24-rc-4(9038) version. Let's update the message here so it always accurately reflects the beta release that will actually be generated.

I haven't looked into this, but I suspect the issue may be because the "first" 7.24-rc-3 release had not been committed to the main branch.

Step-by-step reproduction instructions

  1. Run the new_beta_release script, but make it so that the release fails on CI
  2. Re-run thenew_beta_release script
  3. Observe that the script advises that it is creating rc-N, but that it is actually creating rc-N+1

Screenshots or screen recording

No response

Did you search for existing bug reports?

  • [X] I have searched for existing bug reports.

Device, Operating system, and Pocket Casts app version

No response

mchowning avatar Oct 12 '22 20:10 mchowning

👋 @oguzkocer ! Just wanted to check and see if I'm understanding correctly how this should work. This is the first time I've used this script so I might just have something set up wrong.

Related question, I was curious to look at what things like the android_betabuild_prechecks(), android_bump_version_beta(), and android_get_app_version() were doing, but I'm not sure where those are defined. Would you mind pointing me in the right direction?

mchowning avatar Oct 12 '22 20:10 mchowning

I haven't looked into this, but I suspect the issue may be because the "first" 7.24-rc-3 release had not been committed to the main branch.

@mchowning This is correct. I think it is considered a feature and not a bug, or at least it used to be. If I remember correctly, the reasoning was that we are not supposed to create a new beta until the changes from the previous beta were merged to main. Although I might be wrong on both accounts.. 😓


All the helpers are located in the https://github.com/wordpress-mobile/release-toolkit/ repo: android_betabuild_prechecks, android_bump_version_beta, android_get_app_version


Let me know if you need anything else!

oguzkocer avatar Oct 31 '22 18:10 oguzkocer

Since committing the previous release to the main branch avoids this issue and that is a good practice in general so this might even be desireable behavior to a certain extent. I'll go ahead and close this for the time being. We can reopen this or open a new issue if we decide we want to do some improvements here.

mchowning avatar Nov 30 '23 14:11 mchowning