Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2022-02-22 Thread Molly Waggett (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Molly Waggett updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 Molly Waggett  
 
 
Labels: 
 final_triage  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.21485.1645556160217%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2022-02-22 Thread Molly Waggett (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Molly Waggett updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 Molly Waggett  
 
 
Team: 
 Froyo Phoenix  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.21484.1645556160170%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2022-01-14 Thread David McTavish (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David McTavish updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 David McTavish  
 
 
Labels: 
 final_triage  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.255.1642176960193%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2021-04-28 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-10115  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
 Thanks for writing this up otheus! FWIW the Dir.glob order behavior comes from ruby and they've changed the default behavior in ruby 3 Regardless, we should enforce a stable sorting order for older ruby versions, though we'll have to be careful about compatibility.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.21055.1619638920299%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2021-04-28 Thread otheus (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 otheus updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 otheus  
 
 
Priority: 
 Normal Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.21019.1619636880028%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2021-04-28 Thread otheus (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 otheus commented on  PUP-10115  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
 Confirming and expounding. After intense testing, I found that: 
 
Directory entries are read in directory order, not "alphanumeric" order (which is probably an incorrect way of describing standard unix shell behavior). 
Problem exists in 6.22.1 as well. 
The reason this is so important is that it affects Hiera merge strategies and can result in changing & unpredictable behavior in a system using this. For instance, imagine you have a.yaml and c.yaml . Normally, the merge would treat `a.yaml` with higher priority. But after renaming `a.yaml` to `b.yaml`, depending on the filesystem, `c.yaml` might now come first in the directory order, and thus have higher priority.  As such, **this functionality becomes next to useless**.  (It's not completely useless, but one basically now needs a syntax checker to ensure there aren't conflicts or unpredictable merge-conflicts every time there is a change). 
The problem extends also to the glob */  mechanism: sub-directories are also processed in directory-order (by depth).  
The documentation should be updated to explain that directory depth is a relevant factor in the determination of Hiera priority. At least in this regard, the behavior is close to what is expected. (ie, dir-a/.yaml is processed before any entries in dir-a/dir-b/.yaml when */.yaml   is the glob pattern. 
Glob patterns (plural) that are specified in an array actually are processed in the order specified. I would argue this is desirable behavior, but it one surface is at variance with the documentation, which implies that all glob array entries will be processed, files collated, and then sorted.  Thus: 
 
 
 
 
 
 
 -name: "xxx"  
 
 
  globs:  
 
 
- "dirA/dirX/**/*.yaml"  
 
 
- "dirB/*.yaml"  
   

Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2019-11-04 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Sub-team: 
 Language  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.18131.1572889680368%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2019-11-04 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Team: 
 Server  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.18128.1572889680360%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2019-10-28 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-10115  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
 Moved ticket to PUP project since HI project is for deprecated Hiera 3 only.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.9746.1572299280176%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2019-10-28 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 Henrik Lindberg  
 
 
Component/s: 
 Hiera & Lookup  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.9748.1572299280181%40Atlassian.JIRA.


Jira (PUP-10115) "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead

2019-10-28 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg moved an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10115  
 
 
  "glob" matches are not sorted in alphanumerical order as documented, but in directory order instead   
 

  
 
 
 
 

 
Change By: 
 Henrik Lindberg  
 
 
Key: 
 HI PUP - 614 10115  
 
 
Project: 
 Hiera Puppet  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.332258.1572282843000.9744.1572299220129%40Atlassian.JIRA.