Skip to content

Remove berkshelf #2989

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 3 commits into from
Jul 9, 2025
Merged

Remove berkshelf #2989

merged 3 commits into from
Jul 9, 2025

Conversation

hanwen-cluster
Copy link
Contributor

@hanwen-cluster hanwen-cluster commented Jul 8, 2025

Description of changes

Berkshelf is a dependency manager for Chef cookbooks. With it, you can depend on community cookbooks and include them in your workflow. Berkshelf is not useful when all cookbooks are local. ParallelCluster cookbook has all third party cookbooks ready locally.

Reducing software we depend on improves stability of the product. (e.g we have one known issue related to berkshelf https://github.com/aws/aws-parallelcluster/wiki/(3.8.0-%E2%80%90-3.9.3)-ParallelCluster-Build-Image-Failing-during-Installation-of-Minitar-Ruby-Gem-Dependency)

Reviewing by commits is easier

Tests

  • Build image on all OSes, kitchen test on AL2, spec unit tests have been passed

This must be merged together with CLI PR aws/aws-parallelcluster#6909

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

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.

@hanwen-cluster hanwen-cluster requested review from a team as code owners July 8, 2025 19:23
@hanwen-cluster hanwen-cluster force-pushed the developjul8 branch 10 times, most recently from 882812b to 49bd4df Compare July 9, 2025 14:31
@hanwen-cluster hanwen-cluster changed the title Developjul8 Remove berkshelf Jul 9, 2025
Berkshelf is a dependency manager for Chef cookbooks. With it, you can depend on community cookbooks and include them in your workflow. Berkshelf is not useful when all cookbooks are local. ParallelCluster cookbook has all third party cookbooks ready locally.

Reducing software we depend on improves stability of the product. (e.g we have one known issue related to berkshelf https://github.com/aws/aws-parallelcluster/wiki/(3.8.0-%E2%80%90-3.9.3)-ParallelCluster-Build-Image-Failing-during-Installation-of-Minitar-Ruby-Gem-Dependency)

Signed-off-by: Hanwen <hanwenli@amazon.com>
Without berkshelf, we need the names to be without the version string to let CINC recognize the cookbooks.

Signed-off-by: Hanwen <hanwenli@amazon.com>
Without berkshelf, we need the cookbooks to be under the same directory to let CINC recognize the cookbooks. We can configure CINC with multiple folders of cookbooks, but need significant extra effort.

Signed-off-by: Hanwen <hanwenli@amazon.com>
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.50%. Comparing base (6127e18) to head (5dfebc5).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2989   +/-   ##
========================================
  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.

@hanwen-cluster hanwen-cluster added the skip-security-exclusions-check Skip the checks regarding the security exclusions label Jul 9, 2025
@hanwen-cluster hanwen-cluster merged commit 8f81a89 into aws:develop Jul 9, 2025
32 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-security-exclusions-check Skip the checks regarding the security exclusions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants