Skip to content

Commit

Permalink
Updates based on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Aug 8, 2024
1 parent e120c61 commit 52288cc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gems/aws-sdk-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Unreleased Changes
------------------

* Feature - Reduce initial memory usage by auto-loading bundled gems (STS, SSO, SSOOIDC).
* Issue - Reduce initial memory usage by auto-loading bundled gems (STS, SSO, SSOOIDC).

3.201.3 (2024-07-23)
------------------
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-core/lib/aws-sdk-core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def eager_autoload!(*args)

# Autoload bundled service gems used in credential providers
# need to ensure that the files are the local files from aw-sdk-core
# and not the install, legacy/dummy service gems.
# and not the installed, legacy/dummy service gems.

# aws-sdk-sts is included to support Aws::AssumeRoleCredentials
Aws.autoload :STS, File.join(__dir__, 'aws-sdk-sts.rb')
Expand Down
2 changes: 2 additions & 0 deletions gems/aws-sdk-resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Unreleased Changes
------------------

* Issue - Remove autoloads for service gems bundled in `aws-sdk-core` (STS, SSO, SSOOIDC).

3.200.0 (2024-08-01)
------------------

Expand Down
3 changes: 2 additions & 1 deletion gems/aws-sdk-resources/bin/aws-v3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def env_bool key, default
# The Aws namespace used to check autoload requires aws-sdk-resources.
require 'aws-sdk-resources'

# Finally load all of the gems. Core is loaded a second time because of STS.
# Finally load all of the gems.
# Don't update the load path for gems bundled in core.
core_gems = [:STS, :SSO, :SSOOIDC]
if File.directory?(File.expand_path('../../../../build_tools', __FILE__))
gems = []
Expand Down
1 change: 1 addition & 0 deletions tasks/update-aws-sdk-dependencies.rake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ task 'update-aws-sdk-dependencies' do
)

# update the module autoloads
# Remove service gems bundled in core (eg, sts) that have gem_name of aws-sdk-core.
autoload_services = BuildTools::Services.select { |svc| svc.gem_name != 'aws-sdk-core' }
BuildTools.replace_lines(
filename: "#{$GEMS_DIR}/aws-sdk-resources/lib/aws-sdk-resources.rb",
Expand Down

0 comments on commit 52288cc

Please sign in to comment.