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

Android Staging Deploys Failing #35039

Closed
thienlnam opened this issue Jan 24, 2024 · 8 comments
Closed

Android Staging Deploys Failing #35039

thienlnam opened this issue Jan 24, 2024 · 8 comments
Assignees
Labels
Daily KSv2

Comments

@thienlnam
Copy link
Contributor

thienlnam commented Jan 24, 2024

Expected Result:

Android deploys such as this one
should succeed

cc @Expensify/mobile-deployers

Actual Result:

Android deploys are failing with the following error message:
Track 'internal' doesn't have any releases

Action Performed:

This happens during the Run Fastlane step of the Build and Deploy Android
action

Platform:

Where is this issue occurring?

  • Android

Here's a full set of logs

bundle exec fastlane android production
  shell: /usr/bin/bash -e {0}
  env:
    SHOULD_DEPLOY_PRODUCTION: true
    JAVA_HOME: /opt/hostedtoolcache/Java_Oracle_jdk/17/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Oracle_jdk/17/x64
    VERSION_CODE: 100104[3](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:3)001
    VERSION: 10010[4](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:4)3001
+-------------------------------------------+
|               Used plugins                |
+------------------------+---------+--------+
| Plugin                 | Version | Action |
+------------------------+---------+--------+
| fastlane-plugin-aws_s3 | 2.1.0   | aws_s3 |
+------------------------+---------+--------+

[0[7](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:7):42:22]: Sending anonymous analytics information
[07:42:22]: Learn more at https://docs.fastlane.tools/#metrics
[07:42:22]: No personal or sensitive data is sent.
[07:42:22]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[07:42:22]: ---------------------------
[07:42:22]: --- Step: opt_out_usage ---
[07:42:22]: ---------------------------
[07:42:22]: Disabled upload of used actions
[07:42:22]: Driving the lane 'android production' 🚀
[07:42:22]: ---------------------------------------------
[07:42:22]: --- Step: google_play_track_version_codes ---
[07:42:22]: ---------------------------------------------
[07:42:22]: Found '1001043000' version codes in track 'internal'
[07:42:22]: ----------------------------------
[07:42:22]: --- Step: upload_to_play_store ---
[07:42:22]: ----------------------------------

+-----------------------------------------------------------------------------------+
|                            Summary for supply 2.21[9](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:9).0                             |
+------------------------------------+----------------------------------------------+
| package_name                       | com.expensify.chat                           |
| json_key                           | ./android/app/android-fastlane-json-key.json |
| version_code                       | [10](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:11)01043001                                   |
| track                              | internal                                     |
| track_promote_to                   | production                                   |
| rollout                            | 1.0                                          |
| skip_upload_apk                    | true                                         |
| skip_upload_aab                    | true                                         |
| skip_upload_metadata               | true                                         |
| skip_upload_changelogs             | true                                         |
| skip_upload_images                 | true                                         |
| skip_upload_screenshots            | true                                         |
| release_status                     | completed                                    |
| sync_image_upload                  | false                                        |
| track_promote_release_status       | completed                                    |
| validate_only                      | false                                        |
| check_superseded_tracks            | false                                        |
| timeout                            | 300                                          |
| deactivate_on_promote              | true                                         |
| changes_not_sent_for_review        | false                                        |
| rescue_changes_not_sent_for_review | true                                         |
| ack_bundle_installation_warning    | false                                        |
+------------------------------------+----------------------------------------------+

+------------------------------------+
|            Lane Context            |
+---------------+--------------------+
| PLATFORM_NAME | android            |
| LANE_NAME     | android production |
+---------------+--------------------+
[07:42:23]: Track 'internal' doesn't have any releases

+------------------------------------------------------+

[!] Track 'internal' doesn't have any releases
|                   fastlane summary                   |
+------+---------------------------------+-------------+
| Step | Action                          | Time (in s) |
+------+---------------------------------+-------------+
| 1    | opt_out_usage                   | 0           |
| 2    | google_play_track_version_codes | 0           |
| 💥   | upload_to_play_store            | 0           |
+------+---------------------------------+-------------+

[07:42:[23](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:24)]: fastlane finished with errors
Error: Process completed with exit code 1.

It appears to be a mismatch of version numbers, it's looking for 1001043001

Found '1001043000' version codes in track 'internal'

But the latest version code found is 1001043000

@thienlnam thienlnam added the Daily KSv2 label Jan 24, 2024
@roryabraham
Copy link
Contributor

This failed because the android staging deploy for 1.4.30-1 failed. Therefore, the production deploy was trying to promote an internal build w/ the latest version on staging 1.4.30-1, but that build was never uploaded.

@roryabraham
Copy link
Contributor

The PR that was CP'd to create 1.4.30-1 was #34995. Given that it doesn't actually change any application code for the Android app, we should be fine to just manually deploy 1.4.30-0 in its place in the Google Play Store.

I'll do that now, but then this issue should be renamed to "Android Staging Deploys Failing"

@thienlnam thienlnam changed the title Android Production Deploys Failing Android Staging Deploys Failing Jan 24, 2024
Copy link

melvin-bot bot commented Jan 29, 2024

Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Feb 2, 2024

8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Copy link

melvin-bot bot commented Feb 6, 2024

12 days overdue now... This issue's end is nigh!

@AndrewGable
Copy link
Contributor

@thienlnam - Can you see if this is still happening?

@thienlnam
Copy link
Contributor Author

We can close, seems like the original build just failed because the staging deploy failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2
Projects
None yet
Development

No branches or pull requests

3 participants