Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-5121

Create a standalone installer for binaries used by jobs (kind, voltctl, bbsim, etc)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: To Do (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ci-system
    • Labels:
      None
    • Story Points:
      0

      Description

      Current command installers:

       

      Detection logic needed:

      • use available version if installed
      • explicitly install latest version
      • installers should be release aware, support the ability to freeze command versions as part of a release.
      • create standalone unit tests to verify installation.

      Formal kind command tool installer needed: (VOL-5094)

      [2023-07-21T13:39:51.878Z] + grep kind-ci
      [2023-07-21T13:39:51.878Z] + kind get clusters
      [2023-07-21T13:39:51.878Z] /w/workspace/periodic-voltha-memory-leak-test-bbsim@tmp/durable-c7b7729f/script.sh: line 1: kind: command not found
      
      [2023-07-21T13:39:53.235Z] + chmod +x ./kind
      [2023-07-21T13:39:53.235Z] + mv ./kind /w/workspace/periodic-voltha-memory-leak-test-bbsim/bin/kind
      1. Test for existence, only display an error message when not found and unable to install (these failures normally have downstream recovery, bogus not found message captured in log output).
      2. Install command from latest (branch=master) else frozen version for release branch.
      3. If install fails fatal, this event should cause a jenkins job to fail outright.
      4. Post install invoke "kind --version" to:
        1. Verify installed binary is functional.
        2. Display command version installed for job logging.

      TODO:

      • Post v2.12 release upgrade installation from v0.11.0 to v0.20.0.
      • Target logic is not yet release aware:
        • Installer should prefer the latest available version
        • At release time freeze the kind binary version actively being used.
        • Really should move this into a standalone Jira ticket with subtasks to install voltctl, bbsim, etc that all need to follow the same model.
        • Add basic unit tests to validate the installation.

       

      voltctl installer:
      https://gerrit.opencord.org/plugins/gitiles/voltha-system-tests/+/refs/heads/master/Makefile#871

      • Move this into makefiles/commands/voltctl.mk
      • Update installer to be  platform aware/download correct binary.
      • Branch/release support as needed.

       

       

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joey Joey Armstrong
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes