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

Automate release pipeline for odo #4854

Closed
mohammedzee1000 opened this issue Jun 28, 2021 · 10 comments
Closed

Automate release pipeline for odo #4854

mohammedzee1000 opened this issue Jun 28, 2021 · 10 comments
Assignees
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/Medium Nice to have issue. Getting it done before priority changes would be great.

Comments

@mohammedzee1000
Copy link
Contributor

We have pieces in place for doing releases for odo, but not in a way that can be easily automated.

I am considering having one single script that consumes a yaml and helps do release in a simplified way through cii.

The first step is to have a script that does what we can currently do via scripts + move the errata to QE
example yaml file:

# Warning: All components in each file are assumed to release in single advisory. If you need separate
# advisories, please have separate config files"
errata:
  type: "RHEA"
  product:
    full_name: "Openshift Developer Tools and Services"
    short_name: "OCP-Tools"
    full_release_prefix: "OCP Tools "
    full_release_suffix: "4.7.z"
    short_release_prefix: "OCP-Tools-"
    short_release_suffix: "4.7-RHEL-8"
  owners: # owners should only include kerberos_id or first half of email in case of manager group
    package: "moahmed"
    qa: "pkumari"
    docs: "pchandra"
    manager: "shp-list"
  tps:
    arch:
      - "x86_64"
      - "s390x"
      - "ppc64le"
    profile:
      prefix: "stable-ocp-tools-"
      suffix: "4.7-for-rhel-8"
  keywords:
    - "odo"
    - "developer"
  topic: "Updated odo binary is now available"
  synopsys: "Openshift Developer Tools and Services odo CLI binaries X.X.X release"
  description: >-
    Openshift Developer Tools and Services odo is a simple CLI tool for developers to create,
    build, and deploy applications on Kubernetes and OpenShift. The odo tool is completely
    client-based and requires no server within the Kubernetes or OpenShift cluster for
    deployment. It detects changes to local code and deploys it to the cluster
    automatically, giving instant feedback to validate changes in real-time. It
    supports multiple programming languages and frameworks.
  description_issues:
    - "Release of odo X.X.X"
  solution: "Download and install a new CLI binary by following the instructions linked from the References section."
  references: "https://docs.openshift.com/container-platform/4.7/cli_reference/developer_cli_odo/installing-odo.html"
  bugzilla_bug_ids:
    - 1
components:
  rpms:
    - name: "odo-cli"
      nvr:
        name: "odo"
        version: "2.2.0"
        release: "1"
        suffix: ".el8"
      build:
        git_repo: "https://github.com/openshift/odo"
        git_target: "main"
        dist_git_repo: "pkgs.devel.redhat.com/rpms/odo" # this is url w/o protocol or owner. ssh will be used automatically with package owner
        dist_git_branch_prefix: "ocp-tools-"
        dist_git_branch_suffix: "4.7-rhel-8"
        sources_tarball_glob: "dist/rpmbuild/SOURCES/openshift-odo-*.tar.gz" # glob of path relative to git repo
        pre_sync_script: "scripts/rpm-prepare.sh" # script to run after cloning git epo, in the git repo
        sync_git_dist_git: # file globs to sync from git to dist-git. Noe empty, all files will be synced
          - glob: "dist/rpmbuild/SPECS/openshift-odo.spec"
            maintain_path: False
        # post_sync_script: "" A script to run in dist gi after file sync
        commit_message: "Building new odo version"
        srpm_glob: "odo*.src.rpm"
@mohammedzee1000 mohammedzee1000 self-assigned this Jun 28, 2021
@mohammedzee1000
Copy link
Contributor Author

Slowly working on this whenever i feel like i need a switch from normal work

@mohammedzee1000
Copy link
Contributor Author

A basic prototype is functional and stored in the internal repo. Reach out on pm to know more

@mohammedzee1000
Copy link
Contributor Author

/priority medium

@openshift-ci openshift-ci bot added the priority/Medium Nice to have issue. Getting it done before priority changes would be great. label Jul 5, 2021
@mohammedzee1000
Copy link
Contributor Author

Repository for this is housed in our internal gitlab under my namespace rh-releaser-py

@mohammedzee1000
Copy link
Contributor Author

Keywords and reference fields cannot be set on advisory. Currently, a manual intervention is needed so raised issue red-hat-storage/errata-tool#216

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 5, 2021
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 4, 2021
@kadel
Copy link
Member

kadel commented Nov 5, 2021 via email

@openshift-ci openshift-ci bot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Nov 5, 2021
@kadel
Copy link
Member

kadel commented Feb 8, 2023

/close

@openshift-ci
Copy link

openshift-ci bot commented Feb 8, 2023

@kadel: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/Medium Nice to have issue. Getting it done before priority changes would be great.
Projects
Archived in project
Development

No branches or pull requests

3 participants