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

    Yury Bushmelev

    05/30/2023, 11:41 AM
    I’d git grep beaker and those helpers around..
  • y

    Yury Bushmelev

    05/30/2023, 11:44 AM
    on a side note while checking your PR above.. I don’t like beaker acceptance tests here aren’t rspec-based (is it minitest?) asserts are nice but I’d prefer unit tests and acceptance tests to have the same.. “language”
  • y

    Yury Bushmelev

    05/30/2023, 11:44 AM
    just random thoughts..
  • b

    bastelfreak

    05/30/2023, 11:45 AM
    I totally agree
  • b

    bastelfreak

    05/30/2023, 11:45 AM
    and yes, it's minitest
  • y

    Yury Bushmelev

    05/30/2023, 11:46 AM
    well.. maybe one day someone will rewrite it to be RSpec-based 🙂
  • y

    Yury Bushmelev

    05/30/2023, 11:48 AM
    @bastelfreak
    lib/beaker/host/unix/exec.rb
  • y

    Yury Bushmelev

    05/30/2023, 11:48 AM
    add_env_var()
  • y

    Yury Bushmelev

    05/30/2023, 11:49 AM
    check this function, I believe it is called from some higher levels to add the PATH
  • y

    Yury Bushmelev

    05/30/2023, 11:49 AM
    Copy code
    # @example
      #  host.add_env_var('PATH', '/usr/bin:PATH')
  • y

    Yury Bushmelev

    05/30/2023, 11:50 AM
    yeah, just in the same file
    ssh_set_user_environment(env)
  • v

    VoxBot

    05/30/2023, 11:51 AM
    bastelfreak: https://github.com/voxpupuli/beaker_puppet_helpers/blob/b95a6d1e4bd3b89b6997c6020b442da08bcdb353/lib/beaker_puppet_helpers/install_utils.rb#L65-L66
  • v

    VoxBot

    05/30/2023, 11:51 AM
    I never dug into why on Debian that's the case, but in my testing it was needed
  • y

    Yury Bushmelev

    05/30/2023, 12:01 PM
    I think @bastelfreak was asking about this: https://github.com/voxpupuli/beaker/blob/master/lib/beaker/host/unix/exec.rb#L397
  • y

    Yury Bushmelev

    05/30/2023, 12:02 PM
    Just another random note.. as I see beaker is doing a lot of single command calls in multiple places.. I’d say we may try to merge it to be a single script instead
  • v

    VoxBot

    05/30/2023, 12:03 PM
    ewoud: it's a noninteractive shell and /etc/profile.d/ is only used in interactive shells. so I'm wondering why it's not required on EL
  • y

    Yury Bushmelev

    05/30/2023, 12:03 PM
    that might speedup things.. and the speedup might be even visible
  • v

    VoxBot

    05/30/2023, 12:04 PM
    maybe EL always reads /etc/profile.d/
  • v

    VoxBot

    05/30/2023, 12:07 PM
    Re https://github.com/voxpupuli/voxpupuli-acceptance/pull/57 I will update the readme in a new PR, to match the upper case env names
  • v

    VoxBot

    05/30/2023, 12:10 PM
    bastelfreak: well yes, exactly - why is it on Debian but not on EL
  • v

    VoxBot

    05/30/2023, 12:11 PM
    yeah. but it would not hurt to always change PATH I think
  • v

    VoxBot

    05/30/2023, 12:11 PM
    https://github.com/voxpupuli/voxpupuli-acceptance/pull/58 README.md cleanup
  • y

    Yury Bushmelev

    05/30/2023, 12:14 PM
    so I can use all-upper-case env vars, right? because I was always trying to follow the docs.. and as I see it was the same in the code.. is ENV case-insensitive?
  • y

    Yury Bushmelev

    05/30/2023, 12:16 PM
    I’d make ENV[] references in code uppercase as well if so
  • v

    VoxBot

    05/30/2023, 12:19 PM
    oh good point
  • v

    VoxBot

    05/30/2023, 12:20 PM
    mhm sometimes I manipulate a merge commit and git... does not like it
  • v

    VoxBot

    05/30/2023, 12:30 PM
    rebased https://github.com/voxpupuli/voxpupuli-acceptance/pull/57
  • v

    VoxBot

    05/30/2023, 12:43 PM
    https://github.com/voxpupuli/voxpupuli-acceptance/pull/59 and the switch within the code to upper case vars
  • v

    VoxBot

    05/30/2023, 12:48 PM
    interesting, rspec isn't a huge fan of this change
  • y

    Yury Bushmelev

    05/30/2023, 12:58 PM
    I have concern about changing case as ppl might use it in their setups.. so I agree with ewoud that maybe we should 1) either check both uppercase and mixed case -or- 2) release a major version with the change and state it explicitly in the changelog
1...496497498...642Latest