Skip to content

Upgrade all AWSO related Lambda functions to Nodejs 24 and Python v3.14.0#229

Open
akhil-sumologic wants to merge 4 commits intofy27q1from
esc_support
Open

Upgrade all AWSO related Lambda functions to Nodejs 24 and Python v3.14.0#229
akhil-sumologic wants to merge 4 commits intofy27q1from
esc_support

Conversation

@akhil-sumologic
Copy link
Copy Markdown
Contributor

No description provided.

@akhil-sumologic akhil-sumologic requested a review from a team as a code owner April 16, 2026 13:47
@npande npande requested a review from Copilot April 17, 2026 10:09
Copy link
Copy Markdown

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

Upgrades selected AWS Observability-related Lambda functions/templates to newer Node.js and Python runtimes, with a small refactor of the log group connector handler and updated packaged artifact references.

Changes:

  • Update Python Lambda runtimes from python3.13 to python3.14 in Sumo App Utils and Auto-Enable S3 Logging templates.
  • Update Log Group Connector Lambda runtimes from nodejs22.x to nodejs24.x and refactor the handler away from the callback pattern.
  • Refresh packaged template artifact locations (S3 CodeUri hashes/versions) and bump the Auto-Enable S3 Logging app semantic version.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
sumologic-app-utils/sumo_app_utils.yaml Updates Lambda runtime to python3.14.
sumologic-app-utils/packaged_sumo_app_utils.yaml Updates packaged SAR template runtime to python3.14.
loggroup-lambda-connector/src/loggroup-lambda-connector.js Refactors handler to async-return style; changes error handling behavior.
loggroup-lambda-connector/sam/template.yaml Updates Node.js runtime to nodejs24.x for both functions in the app template.
loggroup-lambda-connector/sam/packaged.yaml Updates packaged SAR template runtime to nodejs24.x and refreshes CodeUri hash.
awsautoenableS3Logging/sumologic-s3-logging-auto-enable.yaml Bumps app version and updates runtime to python3.14 + app-utils CodeUri.
awsautoenableS3Logging/packaged.yaml Mirrors version/runtime/CodeUri updates in the packaged SAR template.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 238 to 242
function errorHandler(err, msg) {
if (err) {
console.log(err, msg);
callback(err);
} else {
callback(null, "Success");
}
}
if (!process.env.LOG_GROUP_PATTERN || process.env.LOG_GROUP_PATTERN.trim().length === 0) {
console.warn("LOG_GROUP_PATTERN is empty, it will subscribe to all loggroups");
}
if (event.existingLogs == "true") {
await processExistingLogGroups(context, event.token, additionalArgs, errorHandler);
} else {
await processEvents(process.env, event, additionalArgs, errorHandler);
console.error(msg, err);
throw err;
}
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

errorHandler now throws on error, but processEvents calls errorHandler(err, ...) before checking for throttling and retrying. This makes the retry path unreachable (the throw short-circuits the rest of the catch block). Consider moving the throttling retry logic ahead of calling errorHandler, or make errorHandler not throw for retryable errors so exponential backoff still works.

Copilot uses AI. Check for mistakes.
Comment thread loggroup-lambda-connector/sam/template.yaml
Comment thread awsautoenableS3Logging/packaged.yaml
Comment thread sumologic-app-utils/packaged_sumo_app_utils.yaml
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