Skip to content

Conversation

@ThirdEyeSqueegee
Copy link
Member

@ThirdEyeSqueegee ThirdEyeSqueegee commented Oct 13, 2025

Issue #, if available:
N/A

Description of changes:
Fixed incorrect version reporting by implementing automated version generation that synchronizes with the package version, replacing hardcoded constants that were set to 1.1.0.0 instead of the current 2.0.0.

The AWS Secrets Manager Caching Client was reporting an incorrect version in its User-Agent header due to hardcoded version constants that were not synchronized with the actual package version.

Solution

  • Automated Version Generation: Implemented MSBuild auto-generation that extracts version from the package configuration
  • Build-Time Synchronization: Added build target that generates version constants during compilation
  • Removed Manual Maintenance: Eliminated need for manual version updates

Testing
Verified the fix with test applications to ensure:

  • Version constants report correct package version (2.0.0)
  • User-Agent header displays proper version string
  • Build process generates version file successfully

Result

  • User-Agent header now correctly reports package version
  • Version automatically stays synchronized with package updates
  • Eliminates manual version maintenance overhead

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ThirdEyeSqueegee ThirdEyeSqueegee requested a review from a team as a code owner October 13, 2025 01:33
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.18%. Comparing base (8110366) to head (708682f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   72.52%   73.18%   +0.65%     
==========================================
  Files           6        5       -1     
  Lines         222      220       -2     
  Branches       23       23              
==========================================
  Hits          161      161              
+ Misses         52       50       -2     
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

4 participants