Skip to content

Unit test updates #15

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 2 commits into from
Aug 21, 2024
Merged

Conversation

mhashizume
Copy link
Contributor

This PR updates the setup-ruby action to use bundler-cache (as first implemented in Puppet here) and updates the FFI gem to the latest known good version.

This commit updates the nightly unit test workflow to use the setup-ruby
action's built-in bundler-cache job to install gems.

See also: puppetlabs/puppet@86820ee
@mhashizume mhashizume requested a review from a team as a code owner July 1, 2024 23:22
@mhashizume
Copy link
Contributor Author

Tested here: puppetlabs/puppetlabs-augeas_core#82

run: |
git config --global core.longpaths true
bundle config set system 'true'
bundle config set --local without 'release'
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it matter that we lost these configurations? It's possible to set these as environment variables (at least for the latter two, not sure about global git config)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we need the longpaths configuration anymore--it was initially implemented because of the GitHub Changelog Generator repo: puppetlabs/puppetlabs-augeas_core#35

But we no longer use that Changelog Generator anymore, so I don't think we need the option.

This action is used by the core modules and the puppet_agent module, none of which have a "release" group in their Gemfiles. We won't lose anything by removing this configuration.

The Bundler docs don't seem to have anything on bundle config set system 'true', but it seems like it sets all future Bundler configuration to take place at the system level (as opposed to local/global). If that's the case, then we're not doing any additional Bundler configuration so it doesn't matter anyway.

@mhashizume mhashizume merged commit 6c0f80f into puppetlabs:main Aug 21, 2024
2 checks passed
@mhashizume mhashizume deleted the maint/main/bundler-cache branch August 21, 2024 23:27
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.

2 participants