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

Merged
merged 9 commits into from
Feb 7, 2025

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 53.6%. Comparing base (5308844) to head (5e71802).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #127   +/-   ##
=====================================
  Coverage   53.6%   53.6%           
=====================================
  Files         43      43           
  Lines       6166    6166           
=====================================
  Hits        3306    3306           
  Misses      2860    2860           

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

Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

Thanks for the extremely detailed steps!
Validated in Mac now. Will do in windows later.

@cijothomas cijothomas merged commit f7c24ca into open-telemetry:main Feb 7, 2025
11 checks passed
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.

2 participants