upload-google-play icon indicating copy to clipboard operation
upload-google-play copied to clipboard

When userFraction is not set, PlayStore console sets the rollout percentage to 1%

Open rafaelvcaetano opened this issue 1 year ago • 3 comments

Describe the bug When the userFraction parameter is not set, the release overview in PlayStore shows a default rollout percentage of 1% instead of the expected 100% (see image below).

image

Workflow Step Configuration

- name: Create Play Store Release
  uses: r0adkll/[email protected]
  with:
    serviceAccountJsonPlainText: ${{ <<REDACTED>> }}
    packageName: <<REDACTED>>
    releaseName: ${{ steps.release_params.outputs.VERSION }}
    releaseFiles: <<REDACTED>>
    track: beta
    inAppUpdatePriority: 2
    status: draft
    whatsNewDirectory: <<REDACTED>>
    mappingFile: <<REDACTED>>
    debugSymbols: <<REDACTED>>

Step Debugging

rafaelvcaetano avatar Nov 06 '23 16:11 rafaelvcaetano

That's an interesting one. In theory, that's impossible, since we default to a "complete" rollout, which cannot have a user fraction set (Google Play forces 100%, it's an error to even specify it).

Does this happen consistently? If so, please try enabling debug logging and share the output

boswelja avatar Feb 07 '24 11:02 boswelja

Sorry for leaving this here for so long. So, it turns out that the userFraction parameter is ignored by Play Developer API if the release status is set to draft, which is what I had. It seems to default to 1%. If set to completed, everything works fine. It was just a misunderstanding from my part that I only got clarified once I read the API's documentation. Maybe it's a good idea to leave that clear in the README to remove any confusion from future users, but I'll leave that up to you 🙂

rafaelvcaetano avatar Mar 11 '24 14:03 rafaelvcaetano

Sounds like a good idea to me, I didn't know about that behaviour either 😆

boswelja avatar Mar 11 '24 21:03 boswelja