Skip to content

Conversation

Copy link

Copilot AI commented Sep 3, 2025

This PR adds a comprehensive .github/copilot-instructions.md file that provides GitHub Copilot coding agents with detailed guidance on how to work effectively in this Consumer Driven Contract Testing workshop repository.

Key Features

Validated Commands: All build, test, and run commands have been tested and timed to ensure they work correctly:

  • Clean compile: ./mvnw clean compile (~30s first run, ~3s subsequent)
  • Package with working tests: ./mvnw package -Dtest='!CustomerServiceTest#testGetCustomerByIdWithWireMockCloud' (~6-8s)
  • Service startup: ./mvnw -pl {service} spring-boot:run (~1.5s each)

Critical Timeout Guidance: Includes explicit "NEVER CANCEL" warnings with specific timeout recommendations (60+ minutes for builds, 30+ minutes for tests) to prevent premature cancellation of operations.

Known Issues Documentation: Documents the external network dependency failure in CustomerServiceTest#testGetCustomerByIdWithWireMockCloud with a working workaround using test exclusion.

Manual Validation Scenarios: Provides step-by-step instructions for testing service integration and contract testing functionality after making changes.

Repository Context

This workshop repository demonstrates Consumer Driven Contract Testing with:

  • customer-service (provider): Spring Boot service on port 9090
  • invoice-service (consumer): Spring Boot service on port 8080
  • Technology stack: Spring Boot 3.2.5, Spring Cloud Contract 4.1.2, Java 17, Maven 3.9.6

The instructions help agents understand this is a tutorial repository with intentionally incomplete contract configurations that are completed through the README exercises.

Fixes #5.

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:

  • qgdoz.wiremockapi.cloud
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -jar /home/REDACTED/work/consumer-driven-contract-testing/consumer-driven-contract-testing/invoice-service/target/surefire/surefirebooter-20250903112850603_3.jar /home/REDACTED/work/consumer-driven-contract-testing/consumer-driven-contract-testing/invoice-service/target/surefire 2025-09-03T11-28-50_544-jvmRun1 surefire-20250903112850603_1tmp surefire_0-20250903112850603_2tmp (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -jar /home/REDACTED/work/consumer-driven-contract-testing/consumer-driven-contract-testing/invoice-service/target/surefire/surefirebooter-20250903113025302_6.jar /home/REDACTED/work/consumer-driven-contract-testing/consumer-driven-contract-testing/invoice-service/target/surefire 2025-09-03T11-30-24_665-jvmRun1 surefire-20250903113025302_4tmp surefire_1-20250903113025302_5tmp (dns block)

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


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] ✨ Set up Copilot instructions Add comprehensive GitHub Copilot instructions for consumer-driven-contract-testing repository Sep 3, 2025
Copilot AI requested a review from soudmaijer September 3, 2025 11:36
Copilot finished work on behalf of soudmaijer September 3, 2025 11:36
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