Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: BATS: Make k8s/helm-install-rancher pass on macOS #7069

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Commits on Jun 19, 2024

  1. BATS: Linting improvements

    - Use long arguments for commands where available.
    - Tell shfmt that we're linting for bats (for *.bash).
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    b1b9d62 View commit details
    Browse the repository at this point in the history
  2. BATS: k8s/helm-install-rancher: Look for incremental progress

    This test is prone to failing on macOS CI, possibly because the runners are
    somewhat slower.  Try to improve this by _not_ waiting for the helm chart
    deployment to finish, but instead manually checking for key log lines in
    the containers until they are actually ready.
    
    This also does a couple other things to help this test pass:
    - Pre-pull the rancher image to ensure the image pulling doesn't make the
      machine busier than necessary.
    - Update the arguments for the cert-manager chart (removing deprecated
      usage).
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    ff29fa6 View commit details
    Browse the repository at this point in the history
  3. BATS: when capturing logs, allow missing config file

    In case we got called right after a factory reset.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    a7a5f55 View commit details
    Browse the repository at this point in the history
  4. BATS: k8s/rancher: Set replicas to 1

    By default it is set to 3, which is unneeded in CI.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    d9fc040 View commit details
    Browse the repository at this point in the history
  5. BATS: helm-install-rancher: Drop uninstall

    Since we'll be doing factory resets before each Kubernetes version (or in
    the next test file, if it's the last version), there's no need to do an
    uninstall that could take significant time.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    460cf06 View commit details
    Browse the repository at this point in the history
  6. BATS: k8s/helm-install-rancher: Disable ramdisk

    This test needs a lot of RAM (to run Rancher Manager); disable ramdisk
    to avoid hitting swap.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    55232e4 View commit details
    Browse the repository at this point in the history
  7. Spelling: Add word

    This is a Kubernetes deployment name that is spawned as part of Rancher
    Manager.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    3290894 View commit details
    Browse the repository at this point in the history
  8. BATS: Fix lint issues

    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    17b6a77 View commit details
    Browse the repository at this point in the history
  9. BATS: k8s/helm-install-rancher: Address review comments

    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    d59616f View commit details
    Browse the repository at this point in the history