Jira (PUP-8215) Tag filtering for skip_tag incorrectly expanded

1 view
Skip to first unread message

Kevin Henner (JIRA)

unread,
Nov 29, 2017, 1:25:03 PM11/29/17
to puppe...@googlegroups.com
Kevin Henner created an issue
 
Puppet / Bug PUP-8215
Tag filtering for skip_tag incorrectly expanded
Issue Type: Bug Bug
Affects Versions: PUP 5.3.3
Assignee: Unassigned
Components: Catalog Application
Created: 2017/11/29 10:24 AM
Priority: Normal Normal
Reporter: Kevin Henner

`-

skip_tags foo::bar` is split on the namespace separator `::` and expanded to `['foo::bar', 'foo', 'bar']`. Because resources are tagged with all parent tags, this means that every resource in the `foo` namespace is skipped when ` skip_tags foo::bar` is used. The same expansion issue was addressed for the ` tags` flag in PUP-4495 , but it appears that the expansion logic for ` tags` and ` -skip_tags` is separate.
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Kevin Henner (JIRA)

unread,
Nov 29, 2017, 1:27:02 PM11/29/17
to puppe...@googlegroups.com
Kevin Henner updated an issue
Change By: Kevin Henner
` {{ --skip_tags foo::bar ` }}  is split on the namespace separator  `  {{ :: ` }}  and expanded to  `  {{ ['foo::bar', 'foo', 'bar'] ` }} . Because resources are tagged with all parent tags, this means that every resource in the `foo` namespace is skipped when  `  {{ --skip_tags foo::bar ` }}  is used. The same expansion issue was addressed for the  `  {{ --tags ` }}  flag in PUP-4495, but it appears that the expansion logic for  `  {{ --tags ` }}  and  `  {{ --skip_tags ` }}  is separate.

Kevin Henner (JIRA)

unread,
Nov 29, 2017, 1:27:03 PM11/29/17
to puppe...@googlegroups.com

Kevin Henner (JIRA)

unread,
Nov 29, 2017, 1:28:04 PM11/29/17
to puppe...@googlegroups.com
Kevin Henner updated an issue
{{\--skip_tags foo::bar}}  is split  splits the tag  on the namespace separator {{::}} and  expanded  expands  to  skip the set  {{['foo::bar', 'foo', 'bar']}}. Because resources are tagged with all parent tags, this means that every resource in the `foo` namespace is skipped when {{\--skip_tags foo::bar}} is used. The same expansion issue was addressed for the {{\--tags}} flag in PUP-4495, but it appears that the expansion logic for {{\--tags}} and {{\--skip_tags}} is separate.

Josh Cooper (JIRA)

unread,
Nov 29, 2017, 1:53:02 PM11/29/17
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform Core

Josh Cooper (JIRA)

unread,
Mar 16, 2018, 4:41:04 PM3/16/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sub-team: Coremunity
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Jakub Pieńkowski (JIRA)

unread,
May 3, 2019, 5:43:03 PM5/3/19
to puppe...@googlegroups.com

Jacob Helwig (JIRA)

unread,
May 8, 2019, 6:16:02 PM5/8/19
to puppe...@googlegroups.com
Jacob Helwig assigned an issue to Jacob Helwig
 
Change By: Jacob Helwig
Assignee: Jacob Helwig

Jacob Helwig (JIRA)

unread,
May 8, 2019, 6:16:03 PM5/8/19
to puppe...@googlegroups.com
Jacob Helwig updated an issue
Change By: Jacob Helwig
Sprint: Platform Core KANBAN

Jacob Helwig (JIRA)

unread,
May 13, 2019, 1:19:03 PM5/13/19
to puppe...@googlegroups.com
Jacob Helwig updated an issue
Change By: Jacob Helwig
Release Notes Summary: Tags specified via --skip_tags are no longer expanded by splitting on "::". This brings the behavior in line with how tags specified via --tags are handled. The behavior of --tags was fixed in PUP-4495.
Release Notes: Bug Fix

Jacob Helwig (JIRA)

unread,
May 13, 2019, 1:20:04 PM5/13/19
to puppe...@googlegroups.com
Jacob Helwig updated an issue
Change By: Jacob Helwig
Fix Version/s: PUP 6.5.0

Jacob Helwig (JIRA)

unread,
May 13, 2019, 1:21:03 PM5/13/19
to puppe...@googlegroups.com
Jacob Helwig commented on Bug PUP-8215
 
Re: Tag filtering for skip_tag incorrectly expanded

This was merged into the master branch in c86ad5546d.

Josh Cooper (JIRA)

unread,
Jun 4, 2019, 4:06:04 PM6/4/19
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-8215

Passed CI in 5c982fea6fd94e1abe8895a1ba28b4ae4134249a

Heston Hoffman (JIRA)

unread,
Jun 12, 2019, 2:47:03 PM6/12/19
to puppe...@googlegroups.com
Heston Hoffman updated an issue
 
Change By: Heston Hoffman
Labels: resolved-issue-added
Reply all
Reply to author
Forward
0 new messages