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

Add Multipass Setup for user_events metrics testing on Ubuntu 24.04 VM #127

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Nov 14, 2024

Changes

Note: I found this setup helpful for testing my latest user_events metrics PR, so thought of adding it. Feel free to reject the PR if this doesn't seem helpful :)

Setting up the Linux kernel with user_events enabled can be challenging, especially since the latest WSL images do not yet support it. An easier alternative is to use an Ubuntu 24.04 (or greater) VM, which can be run on Hyper-V, VirtualBox, or other virtualization platforms.

This PR introduces a cloud-init.yaml configuration file for creating an Ubuntu VM using multipass, with user_events support and other required configurations for decoding proto packets. This setup is cross-platform, allowing developers to run it on Windows, macOS, or Linux, simplifying the environment setup process for consistent testing.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@lalitb lalitb requested a review from a team as a code owner November 14, 2024 08:25
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.4%. Comparing base (1cb39ed) to head (e82df54).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #127   +/-   ##
=====================================
  Coverage   55.4%   55.4%           
=====================================
  Files         39      39           
  Lines       6098    6098           
=====================================
  Hits        3381    3381           
  Misses      2717    2717           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

1 participant