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

Simplify Rakefile #9331

Merged
merged 4 commits into from May 21, 2024
Merged

Conversation

mhashizume
Copy link
Contributor

During recent work on streamlining the process to build Puppet as a gem, I noticed several parts of the Rakefile that were added for historical reasons, but are no longer needed. This PR comprises changes to simplify the Rakefile.

This commit moves all Rake tasks not defined in the Rakefile to a new
rakelib directory, where Rake will autodiscover and import those tasks.
Additionally, I've removed old logic in the Rakefile that manually
specified where to find and how to import those tasks.
Previous versions of the Rakefile relied on Puppet#version as part of a
packaging task. That packaging task was removed from the Rakefile in
2012 in b1648b2, so we no longer need to load the Puppet library and
require puppet/version.
@mhashizume mhashizume added the maintenance Maintenance chores are excluded from changelogs label Apr 25, 2024
@mhashizume mhashizume requested a review from a team as a code owner April 25, 2024 17:26
@joshcooper
Copy link
Contributor

LGTM could you check that one of the benchmarks can be run before merging (if you didn't already)?

@mhashizume
Copy link
Contributor Author

LGTM could you check that one of the benchmarks can be run before merging (if you didn't already)?

Just ran the benchmark:catalog_memory benchmark and it seemed to behave the same between main and my branch. I also compared the number of Rake tasks between the two branches and they remain the same, even after the change.

@mhashizume mhashizume merged commit 290ebdb into puppetlabs:main May 21, 2024
10 checks passed
@mhashizume mhashizume deleted the PA-6294/main/rake-gem branch May 21, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants