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

chore(ci): addresses issue about archiving in releases the APK (cycle 4.4) #2473

Merged
merged 17 commits into from Nov 28, 2023

Conversation

yamilmedina
Copy link
Contributor


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Address issue to have APKs on GH releases.
wireapp/wire#396

Causes (Optional)

Whenever a new tag is created, it will run on Jenkins the tag workflow to upload the APK to the latest release.
This only considers semantic tags and named fixed versions, to be consistent with our GH Release action.

Solutions

Use GH API to upload a release asset to a release.

Testing

Manually tested

https://10.10.124.134/blue/organizations/jenkins/AR-build-pipeline/detail/AR-build-pipeline/2021/pipeline


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@yamilmedina yamilmedina requested review from tmspzz, MohamadJaara and a team November 26, 2023 13:08
@yamilmedina yamilmedina self-assigned this Nov 26, 2023
@yamilmedina yamilmedina requested review from typfel, alexandreferris, vitorhugods and Garzas and removed request for a team November 26, 2023 13:08
}

sh './gradlew jacocoReport'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not needed at all in Jenkins. Confirmed with QA.
We only run coverage in GH actions.

Copy link
Contributor

Test Results

599 tests   598 ✔️  5m 18s ⏱️
  85 suites      1 💤
  85 files        0

Results for commit df36a15.

Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!


// building gh api request
def apiUrl = shellQuote("https://api.github.com/repos/wireapp/wire-android/releases/latest")
def releaseId = sh(script: "curl -s ${apiUrl} | grep -m 1 \"id.:\" | grep -w id | tr : = | tr -cd '[[:alnum:]]=' | cut -d'=' -f2", returnStdout: true).trim()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In an ideal world, this can be simplified if ./jq would be available.
But grep, tr and cut can also manage to do it.

@yamilmedina yamilmedina changed the title chore(ci): addresses issue about archiving in releases the APK (4.4) chore(ci): addresses issue about archiving in releases the APK (cycle 4.4) Nov 27, 2023
@yamilmedina yamilmedina merged commit b653768 into release/cycle-4.4 Nov 28, 2023
14 checks passed
@yamilmedina yamilmedina deleted the y/chore/apk-to-release branch November 28, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants