Jira (PUP-11725) Enable strict mode by setting strict default to error

30 views
Skip to first unread message

Aria Li (Jira)

unread,
Jan 24, 2023, 7:52:02 PM1/24/23
to puppe...@googlegroups.com
Aria Li created an issue
 
Puppet / Task PUP-11725
Enable strict mode by setting strict default to error
Issue Type: Task Task
Assignee: Unassigned
Created: 2023/01/24 4:51 PM
Priority: Normal Normal
Reporter: Aria Li

Puppet supports various strict language related settings. These were added in 2016 (puppet 4.x) and it's time to enable strict behavior by default.

strict

strict_variables

Currently, strict defaults to warning and must default to error in order to enable strict mode by default.

A good thing to verify - take a module like stdlib, test against puppet8 gem, change the setting for strict variables, and make sure the spec tests still pass. Note you can use the PUPPET_GEM_VERSION to pin to a local checkout of puppet rather than building a gem.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Aria Li (Jira)

unread,
Jan 24, 2023, 7:52:05 PM1/24/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 26, 2023, 3:21:02 PM1/26/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 26, 2023, 3:32:02 PM1/26/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 8.0.0

Josh Cooper (Jira)

unread,
Jan 27, 2023, 2:54:03 PM1/27/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2023-02-15

Aria Li (Jira)

unread,
Jan 27, 2023, 3:08:04 PM1/27/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Sprint: Phoenix 2023-02- 15 01

Aria Li (Jira)

unread,
Jan 27, 2023, 3:08:04 PM1/27/23
to puppe...@googlegroups.com
Aria Li assigned an issue to Aria Li
Change By: Aria Li
Assignee: Aria Li

Christopher Thorn (Jira)

unread,
Feb 1, 2023, 1:10:02 PM2/1/23
to puppe...@googlegroups.com
Christopher Thorn updated an issue
Change By: Christopher Thorn
Sprint: Phoenix 2023-02-01 , Phoenix 2023-02-15

Aria Li (Jira)

unread,
Feb 7, 2023, 3:14:03 PM2/7/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Puppet supports various strict language related settings. These were added in 2016 (puppet 4.x) and it's time to enable strict behavior by default.



Currently, strict defaults to warning and must default to error in order to enable strict mode by default.

A good thing to verify - take a module like stdlib, test against puppet8 gem, change the setting for strict variables , and make sure the spec tests still pass. Note you can use the PUPPET_GEM_VERSION to pin to a local checkout of puppet rather than building a gem.

Aria Li (Jira)

unread,
Feb 8, 2023, 12:57:03 PM2/8/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: The --strict setting was introduced in Puppet 4.x and can be set to off, warning, or error. For Puppet 8, strict mode will be on by default and --strict will be set to error. In strict mode, there will be extra validation & checkes will be performed and will fail as an error. This feature could potentially be a breaking change.

Aria Li (Jira)

unread,
Feb 8, 2023, 12:59:01 PM2/8/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: The --strict setting was introduced in Puppet 4.x and can be set to off, warning, or error. For Puppet 8, strict mode will be on by default and --strict will be set to error. Previously, --strict defaulted to warning. In strict mode, there will be extra validation & checkes checks will be performed and will fail as an error. This feature could potentially be a breaking change.

Aria Li (Jira)

unread,
Feb 8, 2023, 2:01:01 PM2/8/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: The -- strict setting was introduced in Puppet 4.x and can be set to off, warning, or error. For Puppet 8, strict mode will be on by default and -- which means strict will be set to error and strict_variables will be on . Previously, -- strict defaulted to warning. In With strict mode set to error , extra validation & checks will be performed and will fail as an error. This feature change could potentially be a breaking change.

Aria Li (Jira)

unread,
Feb 8, 2023, 2:08:04 PM2/8/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes Summary: The strict setting was introduced in Puppet 4.x and can be set to off, warning, or error. For Puppet 8, strict mode will be on by default which means strict will be set default to error and strict_variables will be on default to true . Previously, strict defaulted to warning. With strict set to error, extra validation & checks will be performed and will fail as an error. This change could potentially be a breaking change.

Aria Li (Jira)

unread,
Apr 17, 2023, 5:18:02 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes: New Feature

Aria Li (Jira)

unread,
Apr 17, 2023, 5:20:02 PM4/17/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Release Notes: New Feature Enhancement

Parker Leach (Jira)

unread,
Apr 19, 2023, 2:13:01 PM4/19/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages