Add GitHub Copilot instructions for infrastructure repository#4038
Open
Add GitHub Copilot instructions for infrastructure repository#4038
Conversation
Co-authored-by: karianna <180840+karianna@users.noreply.github.com>
…epository Co-authored-by: karianna <180840+karianna@users.noreply.github.com>
…leshooting Co-authored-by: karianna <180840+karianna@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] ✨ Set up Copilot instructions
Add GitHub Copilot instructions for infrastructure repository
Aug 21, 2025
Fix jinja warning on spacing
There was a problem hiding this comment.
A block has been put on this Pull Request as this repository is temporarily under a code freeze due to an ongoing release cycle.
If this pull request needs to be merged during the release cycle then please comment /merge and a PMC member will be able to remove the block.
If the code freeze is over you can remove this block by commenting /thaw.
|
karianna
approved these changes
Oct 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds comprehensive instructions for GitHub Copilot coding agents working in the Adoptium infrastructure repository. The instructions provide essential guidance for understanding and working with this Infrastructure-as-Code project.
Key Features
Firm Directive Structure: The instructions start with a clear directive to always reference the provided information first before falling back to additional search or context gathering, as requested in the issue.
Exhaustively Validated Commands: Every command documented in the instructions has been tested and validated to work correctly:
yamllint .- YAML linting (~2 seconds)ansible-lint --offline- Ansible linting (~60 seconds, with expected offline warnings)ansible localhost -m ping -i ansible/hosts- Basic connectivity testingCritical Timing Requirements: The instructions include measured build times and explicit "NEVER CANCEL" warnings for long-running operations:
Comprehensive Repository Coverage: The instructions cover all major aspects of the infrastructure repository:
Real-World Troubleshooting: Based on actual testing, the instructions document common issues and limitations in offline/restricted environments, including network connectivity issues with older base images and missing Galaxy collections.
Validation Scenarios
The instructions provide specific validation steps for different types of changes:
Repository Context
This infrastructure repository is fundamentally different from traditional software projects - it's Infrastructure-as-Code using Ansible, Docker, and automated testing rather than traditional build tools. The instructions make this distinction clear and provide appropriate guidance for this context.
Fixes #4037.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
galaxy.ansible.com/usr/bin/python3 /home/REDACTED/.local/bin/ansible-galaxy collection install -r /home/REDACTED/work/infrastructure/infrastructure/collections/requirements.yml(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.