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

ci: enable KVM for faster emulator #2390

Merged
merged 7 commits into from
Jan 30, 2024

Conversation

vitorhugods
Copy link
Member


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

GitHub is now providing faster hardware for open-source projects.

We should be able to use the free 4vCPU runners + KVM to run the emulator faster, which is sometime taking >10min to boot, leading to timeouts.

Solutions

Replace BuildJet with GitHub runner + enable KVM and caching.

Side note:

  • Also bump some actions from v3 to v4

Testing

This PR will test things :)


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.

Copy link
Contributor

github-actions bot commented Jan 22, 2024

Test Results

2 764 tests   2 622 ✔️  28s ⏱️
   479 suites     142 💤
   479 files           0

Results for commit 637a6fb.

♻️ This comment has been updated with latest results.

@vitorhugods
Copy link
Member Author

INFO | Boot completed in 5437 ms

wtf 🏎️🚀

TuyrboHackGIF

@datadog-wireapp
Copy link

datadog-wireapp bot commented Jan 22, 2024

Datadog Report

Branch report: ci/enable-kvm-for-faster-emulator
Commit report: b40b0aa
Test service: kalium-jvm

✅ 0 Failed, 2745 Passed, 137 Skipped, 8m 36.05s Wall Time

@vitorhugods vitorhugods changed the base branch from develop to release/candidate January 22, 2024 14:28
@vitorhugods
Copy link
Member Author

Now the tests and emulator run fast. But the emulator is failing to shutdown xD

@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (release/candidate@973838d). Click here to learn what that means.

Additional details and impacted files
@@                 Coverage Diff                  @@
##             release/candidate    #2390   +/-   ##
====================================================
  Coverage                     ?   57.98%           
  Complexity                   ?       21           
====================================================
  Files                        ?     1164           
  Lines                        ?    45008           
  Branches                     ?     4230           
====================================================
  Hits                         ?    26096           
  Misses                       ?    17029           
  Partials                     ?     1883           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 973838d...631634d. Read the comment docs.

@yamilmedina yamilmedina enabled auto-merge (squash) January 30, 2024 09:00
@yamilmedina yamilmedina disabled auto-merge January 30, 2024 09:00
@vitorhugods vitorhugods enabled auto-merge (squash) January 30, 2024 09:25
@vitorhugods vitorhugods merged commit 4a00d18 into release/candidate Jan 30, 2024
17 checks passed
@vitorhugods vitorhugods deleted the ci/enable-kvm-for-faster-emulator branch January 30, 2024 09:51
github-actions bot pushed a commit that referenced this pull request Jan 30, 2024
* ci: enable KVM for faster emulator

* ci: upgrade actions to v4

* ci: fix wrong action name

---------

Co-authored-by: Yamil Medina <[email protected]>
@github-actions github-actions bot mentioned this pull request Jan 30, 2024
5 tasks
github-merge-queue bot pushed a commit that referenced this pull request Jan 30, 2024
* ci: enable KVM for faster emulator

* ci: upgrade actions to v4

* ci: fix wrong action name

---------

Co-authored-by: Vitor Hugo Schwaab <[email protected]>
Co-authored-by: Yamil Medina <[email protected]>
mchenani added a commit that referenced this pull request Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants