On Thu, Mar 3, 2011 at 18:39, Matt Robinson <[email protected]> wrote: > The commit for #2597 included a test that asserted the text resulting > from detecting a cycle. However, the cycle detection could start > randomly from any node, resulting in different text in the error. I'm > not sure what the randomization key would be based on since the test > failed consistently over dozens of runs for me, and didn't for Daniel.
The code walks the resource graph in the catalog starting with, in essence, the "first" element in the hash set defining the structure. So, the "randomization" is basically whatever order Ruby returns things out of a hash from. In 1.9.2 it will be absolutely predictable, since they are order preserving; this suggests that 1.8.7 has some tiny randomization between machines, but not anything like the Perl "shuffle hash values randomly between runs for security" or anything. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <[email protected]> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
