testing

Organize, execute, and manage unit and functional tests for Megatron Bridge.

852|445|Updated May 21, 2025
One-click install
npx skills add https://github.com/NVIDIA-NeMo/Megatron-Bridge --skill testing-nvidia-nemo
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/NVIDIA-NeMo/Megatron-Bridge/tree/main/skills/testing
Command: npx skills add https://github.com/NVIDIA-NeMo/Megatron-Bridge --skill testing-nvidia-nemo

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for organizing, executing, and managing unit and functional tests for Megatron Bridge, ensuring reliable deployment and maintenance.

Core Features & Use Cases

  • Test Organization: Facilitates structured placement of tests into unit tests and functional tests with clear tier semantics.
  • Test Execution: Offers standardized commands to run tests locally or on CI/CD pipelines across different GPU hardware.
  • Use Case: Use this Skill to quickly verify new code changes by running the relevant test suite, check test tiers, or manage flaky tests by relocating scripts.

Quick Start

Run pytest on the unit tests directory to validate code snippets or run a specific launch script for a functional test on H100 hardware.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize unit and functional tests for Megatron Bridge?โ–ผ

Organize Megatron Bridge tests by separating them into distinct unit and functional test directories with clear tier semantics. This structured placement ensures code quality and helps manage test execution across different environments.

How do I run pytest unit tests locally for Megatron Bridge?โ–ผ

Run pytest directly on the unit tests directory to validate code snippets locally. This allows developers to quickly verify new code changes before integrating them into larger CI/CD pipelines or GPU hardware environments.

Can I execute functional tests on specific GPU hardware like H100?โ–ผ

Yes, you can execute functional tests on specific GPU hardware like H100 by running a specific launch script. This supports validating code stability and performance across different target deployment environments.

Do I need pytest and shell scripting to automate Megatron Bridge testing?โ–ผ

Yes, you need pytest and shell scripting to implement test automation and CI integration for Megatron Bridge. These tools facilitate standardized commands to run tests locally or within CI/CD pipelines.

What is the best way to manage flaky tests in a Megatron Bridge workflow?โ–ผ

Manage flaky tests by relocating scripts between unit and functional test tiers based on their stability. This approach maintains robust testing procedures and ensures reliable deployment and maintenance.

How do CI/CD pipelines integrate with Megatron Bridge test execution?โ–ผ

CI/CD pipelines integrate with Megatron Bridge test execution through standardized commands and shell scripts. This enables automated test runs across different GPU hardware to ensure code quality and stability during deployment.