https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • s

    Slackbot

    08/08/2022, 7:00 AM
    This message was deleted.
    s
    • 2
    • 1
  • v

    VoxBot

    08/08/2022, 9:31 AM
    smortex_: i fixed everything you mentioned, thanks for your review https://github.com/voxpupuli/puppet-wireguard/pull/54
  • s

    Slackbot

    08/08/2022, 1:47 PM
    This message was deleted.
    s
    b
    • 3
    • 5
  • s

    silug

    08/08/2022, 1:47 PM
    @bastelfreak i see you approved https://github.com/voxpupuli/puppet-wireguard/pull/53. should i merge it?
  • r

    Rathios

    08/09/2022, 7:28 AM
    Hi there. Someone who can help out an rspec newbie? 1/3 of the tests fail when I run
    bundle exec rake spec
    on master branch of puppet-zabbix. I assume it's something wrong with my local setup?
    Copy code
    Finished in 22 minutes 14 seconds (files took 30.66 seconds to load)
    6133 examples, 2163 failures
  • b

    bastelfreak

    08/09/2022, 7:30 AM
    there should be a long list of errors. can you paste one to https://gist.github.com/ and share the link?
  • r

    Rathios

    08/09/2022, 7:30 AM
    Will do. I'm gonna run it again just to be sure, without my tiny change
  • b

    bastelfreak

    08/09/2022, 7:31 AM
    and I recommend
    bundle exec rake test
    👍 1
  • r

    Rathios

    08/09/2022, 8:33 AM
    With
    bundle exec rake test
    on master branch with no local changes. Here's the first few fails: https://gist.github.com/Rathios/e42083b893656c188d80e25e78b9dbc4 And the full thing too large for github, minus 116k lines of
    Copy code
    /usr/share/gems/gems/puppet-7.18.0/lib/puppet/parser/templatewrapper.rb:93: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
    /usr/share/gems/gems/puppet-7.18.0/lib/puppet/parser/templatewrapper.rb:93: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
    https://rawr.no/shared/bundle_test_filtered.txt
  • b

    bastelfreak

    08/09/2022, 8:38 AM
    I guess you're on Ruby 3.1 and Puppet doesn't support that well
  • b

    bastelfreak

    08/09/2022, 8:38 AM
    the fix for that was merged a few hours ago
  • r

    Rathios

    08/09/2022, 8:39 AM
    Yeah it is 3.1.2p20
  • b

    bastelfreak

    08/09/2022, 8:39 AM
    https://github.com/puppetlabs/puppet/pull/8918
  • b

    bastelfreak

    08/09/2022, 8:39 AM
    https://github.com/puppetlabs/puppet/pull/8918
  • r

    Rathios

    08/09/2022, 8:41 AM
    Ah, very nice. I suppose the fix is to downgrade Ruby until they have released it
  • f

    fe80

    08/09/2022, 8:44 AM
    use rbenv, with a ruby release like
    2.7.6
    👍 1
  • f

    fe80

    08/09/2022, 8:45 AM
    use rbenv, with a ruby release like
    2.7.6
  • b

    bastelfreak

    08/09/2022, 8:49 AM
    ruby 3 works as well, if you want to use that
  • v

    VoxBot

    08/09/2022, 8:50 AM
    ewoud: did you have a local workaround for ruby3.1 + puppet?
  • f

    fe80

    08/09/2022, 8:53 AM
    that not require
    puppet-module-posix-dev-r3.0
    ?
  • b

    bastelfreak

    08/09/2022, 8:53 AM
    if you use a pdk style module, yes. that's why we don't use pdk 🙂
    👍 1
  • f

    fe80

    08/09/2022, 8:53 AM
    smart
  • v

    VoxBot

    08/09/2022, 8:56 AM
    bastelfreak: yes, set minor_version = '2.7' explicitly in Gemfile
  • b

    bastelfreak

    08/09/2022, 8:57 AM
    that helps only for pdk modules, doesn'tit?
  • b

    bastelfreak

    08/09/2022, 8:57 AM
    I don't think we use that in our modules?
  • v

    VoxBot

    08/09/2022, 8:57 AM
    oh yes, for Ruby deprecation warnings: export RUBYOPT=-W0
  • b

    bastelfreak

    08/09/2022, 8:57 AM
    ahhh
  • r

    Rathios

    08/09/2022, 10:40 AM
    Ruby 3.0.4 and 2.7.6 got rid of the deprecation warnings. Still getting ~2160 failures in each of them though. Something must be borked with my setup
  • r

    Rathios

    08/09/2022, 10:40 AM
    rbenv install <rubyversion> + rbenv local <rubyversion> + gem install bundler + bundle install + bundle exec rake test
  • r

    Rathios

    08/09/2022, 10:41 AM
    rbenv install <rubyversion> + rbenv local <rubyversion> + gem install bundler + bundle install + bundle exec rake test
1...119120121...648Latest