lisa
Copilot instructions334 starsChanged 9 months agoMITView on GitHub
This document provides comprehensive guidelines for generating test suggestions for pull requests (PRs) in the LISA project. These guidelines ensure thorough validation while maintaining cost efficiency and testing relevance. When reviewing or creating PRs, follow these three key areas of testing guidance: MANDATORY REQUIREMENT: Every code review must include a test suggestion using the Quick Reference Template provided below. This is required for all pull request reviews to ensure consistent test coverage guidance. When reviewing any pull request, you must:
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
When reviewing or creating PRs, follow these three key areas of testing guidance:
- Distinctive: line 15
MANDATORY REQUIREMENT: Every code review must include a test suggestion using the Quick Reference Template provided below.
- Distinctive: line 17
When reviewing any pull request, you must:
- Distinctive: line 36
Use Method Names: Always specify the exact test method names, never include class names or file paths
- Very specific: line 39
Multiple Test Format: When suggesting multiple tests, separate method names with a pipe (|) for easy copy-paste usage
- Distinctive: line 43
If your change targets specific functionality, choose tests that directly exercise that functionality
- Distinctive: line 44
If your change is broad or foundational, select representative tests that cover the most likely impact areas
- Distinctive: line 63
Use the exact feature class names as they appear in the codebase
- Distinctive: line 64
Consider both primary and secondary impacts of your changes
- Distinctive: line 70
Maximize Coverage: Ensure selected images cover the key scenarios affected by your PR
- Distinctive: line 71
Use Exact Strings: Always provide the complete image string exactly as listed below for direct copy-paste usage
- Distinctive: line 76
Generation Changes: Consider both Gen1 and Gen2 images if applicable
- Distinctive: line 127
Be Specific: Use exact method names, feature classes, and image strings
- Distinctive: line 130
Be Comprehensive: Consider all three areas (tests, features, images) for complete coverage
- Distinctive: line 135
When providing test suggestions, use this format:
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LISA Testing Guidelines for Pull Requests
This document provides comprehensive guidelines for generating test suggestions for pull requests (PRs) in the LISA project. These guidelines ensure thorough validation while maintaining cost efficiency and testing relevance.
Overview
When reviewing or creating PRs, follow these three key areas of testing guidance:
- Test Case Selection - Identify the essential test methods
- Feature Impact Analysis - Determine affected LISA features
- Image Selection - Choose appropriate Azure marketplace images
Copilot Instructions for Code Reviews
MANDATORY REQUIREMENT: Every code review must include a test suggestion using the Quick Reference Template provided below. This is required for all pull request reviews to ensure consistent test coverage guidance.
When reviewing any pull request, you must:
- Always generate and present the test suggestion block as part of your review
- Use the exact Quick Reference Template format (found at the bottom of this document) for copy-paste convenience
- Include all three required components:
- Essential integration/end-to-end test method names (using exact method names separated by
|) - Directly impacted LISA feature class names (using exact class names as they appear in codebase)
- Minimal set of Azure Marketplace images required for validation (using exact image strings from the provided list)
- Essential integration/end-to-end test method names (using exact method names separated by
This ensures every code review provides actionable, standardized test guidance that reviewers and contributors can immediately use for validation.
Test Case Selection Guidelines
Unit Tests
- Unit tests are automatically included and should not be listed in test suggestions
- Focus only on integration and end-to-end test recommendations
Key Test Cases
- Identify Essential Tests Only: Select the minimal set of test cases that validate your specific changes
- Use Method Names: Always specify the exact test method names, never include class names or file paths
- ✅ Correct:
verify_reboot_in_platform - ❌ Incorrect:
core.provisioningorTestProvisioning.verify_reboot_in_platform
- ✅ Correct:
- Multiple Test Format: When suggesting multiple tests, separate method names with a pipe (
|) for easy copy-paste usage- Example:
verify_reboot_in_platform|verify_stop_start_in_platform|verify_resize_operation
- Example:
Test Selection Strategy
- If your change targets specific functionality, choose tests that directly exercise that functionality
- If your change is broad or foundational, select representative tests that cover the most likely impact areas
LISA Features Impact Analysis
What are LISA Features?
LISA Features are platform-specific capability classes that represent testable functionality. They serve as requirements for test cases and help identify testing scope.
Common LISA Features
Examples include (but are not limited to):
Gpu- Graphics processing capabilitiesNvme- NVMe storage functionalityStartStop- VM start/stop operationsResize- VM resizing capabilitiesNetworkInterface- Network interface managementSerialConsole- Serial console accessHibernate- VM hibernation features
Feature Selection Guidelines
- List only features directly impacted by your changes
- Use the exact feature class names as they appear in the codebase
- Consider both primary and secondary impacts of your changes
Azure Marketplace Image Selection
Selection Principles
- Minimize Cost: Select only the essential images needed to validate your changes
- Maximize Coverage: Ensure selected images cover the key scenarios affected by your PR
- Use Exact Strings: Always provide the complete image string exactly as listed below for direct copy-paste usage
When to Select Images
- OS-Specific Changes: Choose images representing the affected operating systems
- Architecture Changes: Include both x64 and ARM64 variants if relevant
- Generation Changes: Consider both Gen1 and Gen2 images if applicable
- Distribution Changes: Select specific Linux distributions if your change is distribution-sensitive
Available Azure Marketplace Images
Copy the exact string for the images you need:
Ubuntu Images
canonical 0001-com-ubuntu-server-jammy 22_04-lts latestcanonical 0001-com-ubuntu-server-jammy 22_04-lts-arm64 latestcanonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latestcanonical ubuntu-24_04-lts server latestcanonical ubuntu-24_04-lts server-arm64 latestcanonical ubuntu-24_04-lts server-gen1 latest
Debian Images
debian debian-11 11 latestdebian debian-11 11-gen2 latestdebian debian-12 12 latestdebian debian-12 12-arm64 latestdebian debian-12 12-gen2 latest
Azure Linux Images
microsoftcblmariner azure-linux-3 azure-linux-3 latestmicrosoftcblmariner azure-linux-3 azure-linux-3-arm64 latestmicrosoftcblmariner azure-linux-3 azure-linux-3-gen2 latest
Oracle Linux Images
oracle oracle-linux ol810-arm64-lvm-gen2 latestoracle oracle-linux ol810-lvm latestoracle oracle-linux ol810-lvm-gen2 latestoracle oracle-linux ol94-arm64-lvm-gen2 latestoracle oracle-linux ol94-lvm latestoracle oracle-linux ol94-lvm-gen2 latest
Red Hat Enterprise Linux Images
redhat rhel 8_10 latestredhat rhel 810-gen2 latestredhat rhel 9_5 latestredhat rhel 95_gen2 latestredhat rhel-arm64 9_5-arm64 latest
SUSE Linux Enterprise Server Images
suse sles-12-sp5 gen1 latestsuse sles-12-sp5 gen2 latestsuse sles-15-sp6 gen1 latestsuse sles-15-sp6 gen2 latestsuse sles-15-sp6-arm64 gen2 latest
Best Practices Summary
- Be Specific: Use exact method names, feature classes, and image strings
- Be Minimal: Select only what's necessary to validate your changes
- Be Practical: Format suggestions for easy copy-paste usage
- Be Comprehensive: Consider all three areas (tests, features, images) for complete coverage
- Be Cost-Conscious: Remember that each image selection has cost implications
Quick Reference Template
When providing test suggestions, use this format:
**Key Test Cases:**
verify_reboot_in_platform|verify_stop_start_in_platform|smoke_test
**Impacted LISA Features:**
FeatureName1, FeatureName2, FeatureName3
**Tested Azure Marketplace Images:**
- exact image string 1
- exact image string 2
- exact image string 3Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

