Skip to content

Conversation

@akhil-sumologic
Copy link
Contributor

PR Details

  • Enhacement extension for CVE fixes

Description

  • Upgraded Golang to version 1.24 with CVE fixes
  • Updated base container image
  • Enhanced error handling
  • Fixed issues highlighted by golangci-lint

Related Issue

https://sumologic.atlassian.net/browse/SUMO-270861

Checklist

  • Updated CHANGELOG.md.
  • Ran unit tests locally.

@akhil-sumologic akhil-sumologic requested a review from a team as a code owner September 29, 2025 12:04
@akhil-sumologic akhil-sumologic force-pushed the sumo_270861 branch 2 times, most recently from 4cd1b49 to 169fb61 Compare September 30, 2025 04:27
Copy link
Contributor

@npande npande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@npande npande requested a review from Copilot September 30, 2025 16:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades Go to version 1.24 and implements comprehensive error handling improvements as part of CVE fixes. The main changes include proper error handling for resource cleanup, AWS SDK v2 migration, and golangci-lint fixes.

  • Upgraded Go from 1.22 to 1.24 with enhanced toolchain support
  • Migrated AWS SDK from v1 to v2 for better security and performance
  • Enhanced error handling throughout the codebase with proper resource cleanup

Reviewed Changes

Copilot reviewed 19 out of 23 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
go.mod Go version upgrade to 1.24 and AWS SDK v2 migration
lambda-extensions/workers/producer.go Enhanced error handling for HTTP request body cleanup
lambda-extensions/workers/consumer.go Code cleanup and simplified string conversion
lambda-extensions/utils/utils.go Added error returns to compression functions
lambda-extensions/utils/awsutils.go Migrated to AWS SDK v2 with proper error handling
lambda-extensions/sumologic-extension.go Added context parameters and error handling
lambda-extensions/sumoclient/sumoclient.go Comprehensive error handling improvements
lambda-extensions/config/version.go Layer version increment
containerimageexample/python-arm64/* Updated Python version and build configuration
.github/workflows/unittest.yml Go version update and AWS credentials configuration
Multiple test files Enhanced error handling in test cleanup

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@akhil-sumologic akhil-sumologic requested a review from npande October 1, 2025 06:41
Copy link
Contributor

@npande npande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akhil-sumologic akhil-sumologic merged commit 47e1f5f into main Oct 1, 2025
6 checks passed
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.

2 participants