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

Release 3.0.0 #166

Merged
merged 1 commit into from
Mar 23, 2024
Merged

Release 3.0.0 #166

merged 1 commit into from
Mar 23, 2024

Conversation

bastelfreak
Copy link
Member

Waiting a bit for @ekohl in case he want's other breaking changes.
CC: @jordanbreen28

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 95.34%. Comparing base (f20625d) to head (c61c713).

Files Patch % Lines
lib/rspec-puppet-facts/version.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   95.34%   95.34%           
=======================================
  Files           2        2           
  Lines         172      172           
=======================================
  Hits          164      164           
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I'd like to flip the default for facterdb_string_keys, but perhaps it's too soon for 3.0.0. Should we issue a deprecation warning in 3.0.0?

An alternative: finish #132 first and provide a proper API to override facts. So you can write:

require 'spec_helper'

describe_on_supported_os 'myclass' do
  it { is_expected.to compile.with_all_deps }

  context 'with selinux' do
    override_facts(selinux: true)
    # or
    override_facts_merged(os: { selinux: { enabled: true }})

    it { is_expected.to compile.with_all_deps }
  end
end

Then it just does the right thing for you with less boilerplate. Only then issue the deprecation.

Though you would still need to deal with the selection on certain OS facts even with the improved DSL.

@bastelfreak
Copy link
Member Author

I also agree that it's too early to flip to strings. Releasing the current changes fixes some bugs, but if the rollout requires the change to strings it's just a too big change.

A deprecation warning is a good idea but I've no idea how/where to properly implement this.

@bastelfreak bastelfreak force-pushed the rel300 branch 2 times, most recently from 4c2d293 to d37fafa Compare March 23, 2024 12:44
@bastelfreak
Copy link
Member Author

I added a deprecation notice to the CHANGELOG.md

@bastelfreak bastelfreak requested a review from ekohl March 23, 2024 14:16
@bastelfreak bastelfreak merged commit 09cb9e9 into voxpupuli:master Mar 23, 2024
8 of 9 checks passed
@bastelfreak bastelfreak deleted the rel300 branch March 23, 2024 17:17
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.

5 participants