Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 15, 2025

This PR creates a comprehensive .github/copilot-instructions.md file that provides detailed guidance for GitHub Copilot coding agents working with the PostgreSQL Chef cookbook. The instructions were created through exhaustive validation of commands and development workflows in the actual repository environment.

What's Included

The instructions provide validated guidance for:

Environment Setup

  • Ruby development environment configuration
  • Required gem installation (cookstyle, deepsort, inifile)
  • PATH configuration for user-installed gems

Development Workflows

  • Code linting with Cookstyle (validated at ~2-3 seconds for 52 files)
  • Ruby syntax validation for all cookbook files
  • Pre-commit validation procedures

Repository Navigation

  • Key directory structure (/resources/, /libraries/, /test/, /documentation/)
  • Important configuration files (metadata.rb, kitchen.yml, .rubocop.yml)
  • Resource usage patterns from test examples

Limitations Documentation

  • Network access restrictions preventing berks install and Test Kitchen execution
  • RSpec/ChefSpec gem conflicts preventing unit test execution
  • Alternative validation approaches for sandbox environments

Performance Expectations

  • Measured timing for common operations
  • CI/CD pipeline expectations and timeout guidance

Validation Process

Every command and workflow in the instructions was validated by:

  • Installing and testing all required Ruby gems
  • Running Cookstyle linting across the entire codebase
  • Syntax-checking all Ruby files in the cookbook
  • Testing repository exploration and navigation commands
  • Documenting actual performance timings

The instructions follow the imperative tone requirement ("Run this command", "Do not do this") and provide explicit fallback guidance when sandbox limitations prevent full functionality testing.

Fixes #798.

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:

  • supermarket.chef.io
    • Triggering command: /usr/bin/ruby3.2 /home/REDACTED/.local/share/gem/ruby/3.2.0/bin/berks install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] ✨ Set up Copilot instructions Create comprehensive GitHub Copilot instructions for PostgreSQL cookbook development Sep 15, 2025
Copilot AI requested a review from damacus September 15, 2025 15:45
Copilot finished work on behalf of damacus September 15, 2025 15:45
@damacus damacus marked this pull request as ready for review September 15, 2025 15:53
@damacus damacus requested a review from a team as a code owner September 15, 2025 15:53
@github-actions
Copy link

Slowest examples

Top 10 slowest examples (0.01 seconds, 49.2% of total time)
Example Description Time in seconds
spec/libraries/helpers_spec.rb:19 PostgreSQL::Cookbook::Helpers#data_dir(version) with rhel family and Postgres 11 from repo returns the correct path 0.01226
spec/libraries/helpers_spec.rb:27 PostgreSQL::Cookbook::Helpers#data_dir(version) with rhel family and Postgres 11 from os returns the correct path 0.00046
spec/libraries/helpers_spec.rb:65 PostgreSQL::Cookbook::Helpers#conf_dir(version) with rhel family and Postgres 11 from os returns the correct path 0.00042
spec/libraries/helpers_spec.rb:103 PostgreSQL::Cookbook::Helpers#default_platform_service_name(version) with rhel family and Postgres 12 from os returns the correct service name 0.00037
spec/libraries/helpers_spec.rb:111 PostgreSQL::Cookbook::Helpers#default_platform_service_name(version) with debian family and Postgres 15 from repo returns the correct service name 0.00036
spec/libraries/helpers_spec.rb:73 PostgreSQL::Cookbook::Helpers#conf_dir(version) with debian family and Postgres 11 from repo returns the correct path 0.00036
spec/libraries/helpers_spec.rb:95 PostgreSQL::Cookbook::Helpers#default_platform_service_name(version) with rhel family and Postgres 13 from repo returns the correct service name 0.00036
spec/libraries/helpers_spec.rb:35 PostgreSQL::Cookbook::Helpers#data_dir(version) with debian family and Postgres 11 from repo returns the correct path 0.00036
spec/libraries/helpers_spec.rb:81 PostgreSQL::Cookbook::Helpers#conf_dir(version) with debian family and Postgres 14 from os returns the correct path 0.00035
spec/libraries/helpers_spec.rb:103 PostgreSQL::Cookbook::Helpers#default_platform_service_name(version) with rhel family and Postgres 13 from os returns the correct service name 0.00035

@damacus damacus merged commit 3da5103 into main Sep 15, 2025
120 of 201 checks passed
@damacus damacus deleted the copilot/fix-798 branch September 15, 2025 16:03
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.

✨ Set up Copilot instructions

2 participants