Skip to content

(PUP-11785) Don't fallback to PSON if catalog rendering fails #9054

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

Conversation

AriaXLi
Copy link
Contributor

@AriaXLi AriaXLi commented Apr 14, 2023

Rich data is enabled by default and when attempting to serialize rich data to PSON, there will be data loss since rich data cannot be serialized via PSON. Due to this, this commit sets the default value for :allow_pson_serialization to false for Puppet 8. This means an error will be raised when falling back to PSON.

@AriaXLi AriaXLi requested a review from a team as a code owner April 14, 2023 16:58
@AriaXLi AriaXLi marked this pull request as draft April 14, 2023 17:01
@AriaXLi AriaXLi force-pushed the PUP-11785/do_not_fallback_to_pson_in_main branch 2 times, most recently from e282354 to e98fa36 Compare April 14, 2023 17:28
@AriaXLi AriaXLi marked this pull request as ready for review April 14, 2023 17:31
Rich data is enabled by default and when attempting to serialize rich data to
PSON, there will be data loss since rich data cannot be serialized via PSON.
Due to this, this commit sets the default value for :allow_pson_serialization
to false for Puppet 8. This means an error will be raised when falling back to
PSON. Additionally, some indirected_routes_spec.rb tests were updated to
ensure they were properly testing the change and intended behavior.
@AriaXLi AriaXLi force-pushed the PUP-11785/do_not_fallback_to_pson_in_main branch from efc6bd0 to 3dd7cd5 Compare April 14, 2023 22:02
@joshcooper joshcooper merged commit 4327cf2 into puppetlabs:main Apr 14, 2023
@AriaXLi AriaXLi deleted the PUP-11785/do_not_fallback_to_pson_in_main branch April 14, 2023 23:36
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