Skip to content

[Isolated] Update Pypi dependencies and install efs-proxy dependency #3011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 21, 2025

Conversation

hgreebe
Copy link
Contributor

@hgreebe hgreebe commented Aug 16, 2025

Description of changes

  • Adding PyPi dependencies for latest Python version 3.12 and using appropriate folder names
  • Installing Packages with --no-build-isolation as with Python 3.12.x so that we check for existing dependecies.
    ** packages are installed with isolation from Py 3.12, where they do not check if the dependencies they want already exist and try to install them again.
  • Installing efs-proxy dependecies from s3 in Isolated region as they cannot connect to cargo and get below error
Stdout: failed to download from `https://index.crates.io/config.json
Stdout: [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
  • adding GIT_REF for cookbook util script for uploading it in S3

Tests

  • Build rhel8, AL2, and AL2023 AMIs in ADC
  • Ran isolated region integ tests

Please review the guidelines for contributing and Pull Request Instructions.

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

@hgreebe hgreebe requested review from a team as code owners August 16, 2025 01:14
Copy link

codecov bot commented Aug 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.50%. Comparing base (98c689e) to head (29ba943).
⚠️ Report is 44 commits behind head on release-3.13.

Additional details and impacted files
@@              Coverage Diff              @@
##           release-3.13    #3011   +/-   ##
=============================================
  Coverage         75.50%   75.50%           
=============================================
  Files                23       23           
  Lines              2356     2356           
=============================================
  Hits               1779     1779           
  Misses              577      577           
Flag Coverage Δ
unittests 75.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@@ -32,14 +32,6 @@
expect(node.default['cluster']['cookbook_virtualenv_path']).to eq(virtualenv_path)
is_expected.to write_node_attributes('dump node attributes')
end

it 'installs python packages' do
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this removed?


action :install_utils do
package_version = new_resource.efs_utils_version
efs_utils_tarball = "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}.tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this moved as part of each action?

Copy link
Contributor Author

@hgreebe hgreebe Aug 18, 2025

Choose a reason for hiding this comment

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

you can't use new_resource outside of an actionblock, so I can't define the variable globally because I would not be able to use new_resource

cached(:aws_region) { 'us-iso-test' }

before do
allow_any_instance_of(String).to receive(:start_with?).with("us-iso").and_return(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets add the test for both partition where start_with is true and false

@hgreebe hgreebe force-pushed the release-3.13.2-isolated branch from de59cb8 to ddbc975 Compare August 18, 2025 20:49
@hgreebe hgreebe enabled auto-merge (squash) August 21, 2025 12:14
@hgreebe hgreebe merged commit 4237326 into aws:release-3.13 Aug 21, 2025
26 of 43 checks passed
@hgreebe hgreebe deleted the release-3.13.2-isolated branch August 21, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants