Skip to content

Fix Go version compatibility issues in examples CI workflow#17

Merged
intel352 merged 4 commits intomainfrom
copilot/fix-16
Jun 28, 2025
Merged

Fix Go version compatibility issues in examples CI workflow#17
intel352 merged 4 commits intomainfrom
copilot/fix-16

Conversation

Copy link
Contributor

Copilot AI commented Jun 28, 2025

Problem

The examples CI workflow was failing with errors like:

Validate Examples (advanced-logging)Process completed with exit code 1.
--
Validate Examples (basic-app)The strategy configuration was canceled because "validate-examples.advanced-logging" failed

Root Cause

Version incompatibility between the CI environment and example modules:

  • CI workflow uses Go ^1.23.5
  • Examples were using Go 1.24.2 in their go.mod files
  • Main modular module uses Go 1.23.0

This mismatch caused build failures when the CI tried to build examples with newer Go syntax/features using an older Go version.

Solution

Updated all examples to use consistent Go version:

Before:

// examples/*/go.mod
go 1.24.2

After:

// examples/*/go.mod  
go 1.23.0

Changes Made

  • Updated go.mod files in all examples to use Go 1.23.0 (matching main module)
  • Removed auto-generated toolchain directives that were causing conflicts
  • Ran go mod tidy to clean up dependencies
  • Verified all examples build and run correctly

Examples Fixed

basic-app: Builds, starts correctly, health endpoint responds
advanced-logging: Builds, starts correctly, HTTP client logging works
reverse-proxy: Builds, starts correctly with multi-tenant configuration
http-client: Builds, starts correctly
multi-tenant-app: Builds, starts correctly with tenant management

Verification

  • All examples build successfully with GOWORK=off go build .
  • All examples pass the same validation steps as CI workflow
  • All modular framework tests continue to pass
  • Module tests (chimux, httpserver) continue to pass
  • Go version consistency across the entire project

The CI workflow should now pass without version compatibility issues.

Fixes #16.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • httpbin.org
    • Triggering command: ./advanced-logging (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.

Copilot AI and others added 3 commits June 28, 2025 05:33
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix examples Fix Go version compatibility issues in examples CI workflow Jun 28, 2025
Copilot AI requested a review from intel352 June 28, 2025 05:38
@codecov
Copy link

codecov bot commented Jun 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@intel352 intel352 marked this pull request as ready for review June 28, 2025 17:04
@intel352 intel352 merged commit 09d8321 into main Jun 28, 2025
22 checks passed
@intel352 intel352 deleted the copilot/fix-16 branch June 28, 2025 17:04
Copilot AI added a commit that referenced this pull request Aug 24, 2025
…17)

* Initial plan

* Debug service dependency injection: Constructor called but httpclient service missing

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Fix reverseproxy httpclient service resolution and enable verbose logging demo

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Add interface-based service dependency resolution with comprehensive tests

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Simplify service dependency resolution by removing duplicate http-doer service and integration module

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Fix major linter issues and test failures in httpclient and reverseproxy modules

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Fix all remaining linter errors and maintain passing tests

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Fix reverseproxy module test failure by removing featureFlagEvaluator dependency

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* Address review feedback: restore featureFlagEvaluator, simplify httpclient matching, remove custom httpDoer interface

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Co-authored-by: Jonathan Langevin <jlangevin@crisistextline.org>
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.

Fix examples

2 participants