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

    Greg Dubicki

    12/16/2022, 5:42 PM
    I would like to change the default branch in voxpupuli/pypuppetdb and voxpupuli/puppetboard from “master” to “main”. any objections?
  • v

    VoxBot

    12/16/2022, 5:43 PM
    I kind of do - almost all our branches use master and I really hate it when some use master and others main
  • v

    VoxBot

    12/16/2022, 5:44 PM
    personally I never really understood why the whole rename was needed - I always interpreted it as virtue signalling
  • v

    VoxBot

    12/16/2022, 6:01 PM
    the question should be: why was it ever master to begin with
  • v

    VoxBot

    12/16/2022, 6:07 PM
    good question, but searching for "origin of git master" is … useless
  • v

    VoxBot

    12/16/2022, 6:08 PM
    I guess because "trunk" as SVN used it was a poor choice
  • v

    VoxBot

    12/16/2022, 6:09 PM
    and master is used in so many places, like master copy
  • v

    VoxBot

    12/16/2022, 6:12 PM
    but even participating in the discussion is hazardous in many places so I mostly try to avoid it
  • y

    Yury Bushmelev

    12/17/2022, 3:19 AM
    I guess in Finland nobody knows that word “master” may even hurt anyone
  • y

    Yury Bushmelev

    12/17/2022, 3:19 AM
    Especially at time of the
    git
    tool design
  • y

    Yury Bushmelev

    12/17/2022, 3:20 AM
    Especially at time of the
    git
    tool design
  • y

    Yury Bushmelev

    12/17/2022, 7:30 AM
    Just saw the warning.. not sure where to report it (if report at all):
    Copy code
    /Users/jay/.pdk/cache/ruby/2.7.0/gems/beaker-rspec-7.1.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
    /opt/puppetlabs/pdk/share/cache/ruby/2.7.0/gems/specinfra-2.82.2/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
  • y

    Yury Bushmelev

    12/17/2022, 7:35 AM
    Another question.. I’m trying to find a place where
    beaker
    rake tasks are defined.. from https://github.com/voxpupuli/voxpupuli-acceptance/blob/master/lib/voxpupuli/acceptance/rake.rb I see it just imports
    beaker-rspec
    one.. which is here https://github.com/voxpupuli/beaker-rspec/blob/master/lib/beaker-rspec/rake_task.rb.. which defined a
    beaker
    task which I cannot understand.. I definitely miss another place or implicitly included something
  • y

    Yury Bushmelev

    12/17/2022, 7:35 AM
    Another question.. I’m trying to find a place where
    beaker
    rake tasks are defined.. from https://github.com/voxpupuli/voxpupuli-acceptance/blob/master/lib/voxpupuli/acceptance/rake.rb I see it just imports
    beaker-rspec
    one.. which is here https://github.com/voxpupuli/beaker-rspec/blob/master/lib/beaker-rspec/rake_task.rb.. which defined a
    beaker
    task which I cannot understand.. I definitely miss another place or implicitly included something
  • y

    Yury Bushmelev

    12/17/2022, 7:35 AM
    I meant those tasks below:
    Copy code
    rake beaker                                                                                                # Run beaker acceptance tests / Run RSpec code examples
    rake beaker:sets                                                                                           # List available beaker nodesets
    rake beaker:ssh[set,node]                                                                                  # Try to use vagrant to login to the Beaker node
  • y

    Yury Bushmelev

    12/17/2022, 7:38 AM
    Ah.. well.. I was able to understand the beaker-rspec rake task now.. I missed it’s
    RSpec::Core::RakeTask
  • y

    Yury Bushmelev

    12/17/2022, 8:00 AM
    Found an issue in beaker-docker: https://github.com/voxpupuli/beaker-docker/blob/master/lib/beaker/hypervisor/docker.rb#L81
    Copy code
    Creating container from image ba67b51e73d0
    post
    /containers/create
    {"name"=>"beaker-ubuntu2004-AARCH64-1-cc9172827395"}
    {"Image":"ba67b51e73d0","Hostname":"ubuntu2004-AARCH64-1","HostConfig":{"PortBindings":{"22/tcp":[{"HostPort":"0845","HostIp":"0.0.0.0"}]},"PublishAllPorts":true,"RestartPolicy":{"Name":"always"},"Privileged":true}}
    See the
    HostPort
    which is below 1024.. I’d say it’s better to always generate ports above 1024
  • y

    Yury Bushmelev

    12/17/2022, 8:00 AM
    Found an issue in beaker-docker: https://github.com/voxpupuli/beaker-docker/blob/master/lib/beaker/hypervisor/docker.rb#L81
    Copy code
    Creating container from image ba67b51e73d0
    post
    /containers/create
    {"name"=>"beaker-ubuntu2004-AARCH64-1-cc9172827395"}
    {"Image":"ba67b51e73d0","Hostname":"ubuntu2004-AARCH64-1","HostConfig":{"PortBindings":{"22/tcp":[{"HostPort":"0845","HostIp":"0.0.0.0"}]},"PublishAllPorts":true,"RestartPolicy":{"Name":"always"},"Privileged":true}}
    See the
    HostPort
    which is below 1024.. I’d say it’s better to always generate ports above 1024
  • y

    Yury Bushmelev

    12/17/2022, 8:03 AM
    What’s wrong with this:
    ubuntu2004-AARCH64-1 was given a port less than 1024 but you are connecting to a rootless instance, retrying
  • y

    Yury Bushmelev

    12/17/2022, 8:07 AM
    And to add more confusion.. this command executes test twice:
    Copy code
    BEAKER_setfile='ubuntu2004-AARCH64' pdk bundle exec rake beaker
  • y

    Yury Bushmelev

    12/17/2022, 8:07 AM
    is it expected?
  • v

    VoxBot

    12/17/2022, 11:29 AM
    in Vox Pupuli we never use PDK
  • v

    VoxBot

    12/17/2022, 11:29 AM
    perhaps you can share the steps you're running
  • v

    VoxBot

    12/17/2022, 11:30 AM
    btw, you can also simply run BEAKER_setfile bundle exec rspec spec/acceptance/my_spec.rb
  • v

    VoxBot

    12/17/2022, 11:30 AM
    it really is a true rspec test
  • y

    Yury Bushmelev

    12/17/2022, 12:30 PM
    pdk bundle
    is just wrapper around bundler which is bundled with PDK 🙂
  • y

    Yury Bushmelev

    12/17/2022, 12:33 PM
    hmm.. well,
    BEAKER_setfile='ubuntu2004-AARCH64' pdk bundle exec rspec --pattern "spec/acceptance/**/*_spec.rb"
    runs the suite once 🤔
  • y

    Yury Bushmelev

    12/17/2022, 12:42 PM
    hmm.. well,
    BEAKER_setfile='ubuntu2004-AARCH64' pdk bundle exec rspec --pattern "spec/acceptance/**/*_spec.rb"
    runs the suite once 🤔
  • y

    Yury Bushmelev

    12/17/2022, 12:43 PM
    but
    rake beaker
    runs this twice by some reason..
    Copy code
    /opt/puppetlabs/pdk/private/ruby/2.7.6/bin/ruby -I/Users/jay/.pdk/cache/ruby/2.7.0/gems/rspec-core-3.12.0/lib:/Users/jay/.pdk/cache/ruby/2.7.0/gems/rspec-support-3.12.0/lib /Users/jay/.pdk/cache/ruby/2.7.0/gems/rspec-core-3.12.0/exe/rspec --pattern spec/acceptance/\*\*/\*_spec.rb
  • y

    Yury Bushmelev

    12/17/2022, 12:48 PM
    though.. same-same but different.. first run is with different pattern..
    Copy code
    /opt/puppetlabs/pdk/private/ruby/2.7.6/bin/ruby -I/Users/jay/.pdk/cache/ruby/2.7.0/gems/rspec-core-3.12.0/lib:/Users/jay/.pdk/cache/ruby/2.7.0/gems/rspec-support-3.12.0/lib /Users/jay/.pdk/cache/ruby/2.7.0/gems/rspec-core-3.12.0/exe/rspec spec/acceptance
1...219220221...648Latest