Skip to content
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

Chef::CookbookSynchronizer#remove_deleted_files: Use Array instead of Set #13941

Merged
merged 1 commit into from Oct 3, 2023

Conversation

dafyddcrosby
Copy link
Contributor

Description

Should address #13940. The usage of Sets over Arrays was only a minor speedup IIRC, and we can take another pass it once we've figured out why .to_set wasn't working with the earlier require. Set became a built-in in Ruby 3.2, so could also wait until that's the running version before using that Set more extensively in the client

Related Issue

#13940

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@dafyddcrosby dafyddcrosby requested review from a team as code owners September 22, 2023 16:37
…f Sets

Should address chef#13940

Signed-off-by: David Crosby <dcrosby@fb.com>
@dafyddcrosby dafyddcrosby changed the title Chef::CookbookSynchronizer#remove_deleted_files: Use Sets instead of Array Chef::CookbookSynchronizer#remove_deleted_files: Use Array instead of Set Sep 22, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tpowell-progress tpowell-progress merged commit 34834c3 into chef:main Oct 3, 2023
27 of 28 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.

None yet

3 participants