coreos / coreos/coreos-assembler

RFE: modify `cosa buildfetch` to support OCP versions

Open
#2,862 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
393
Forks
193
Avg merge
17h 6m
Merged PRs (30d)
5

Description

Feature Request

I'd like to be able to specify an OCP version when doing cosa buildfetch so that I can see a more accurate representation of changes when doing a new RHCOS build.

Desired Feature

Ultimately, I want to be able to accurately report the different RHSAs that are included in an RHCOS build when compared to the last z-stream release for an OCP version.

Example Usage

$ cosa buildfetch --ocp 4.10
Fetching update graph for OCP stable-4.10 stream...
Found latest OCP 4.10.z release: 4.10.14
Found RHCOS 410.84.202205131801-0
Updated builds/builds.json
Fetching: s3://art-rhcos-ci/releases/rhcos-4.10/410.84.202205131801-0/x86_64/meta.json
Fetching: s3://art-rhcos-ci/releases/rhcos-4.10/410.84.202205131801-0/x86_64/commitmeta.json
Fetching: s3://art-rhcos-ci/releases/rhcos-4.10/410.84.202205131801-0/x86_64/ostree-commit-object

Other Information

Could potentially provide another flag to select the OCP channel (eus, fast, stable)

$ cosa buildfetch --ocp 4.10 --channel fast
Fetching update graph for OCP fast-4.10 stream...
Found latest OCP 4.10.z release: 4.10.14
Found RHCOS 410.84.202205131801-0
Updated builds/builds.json
Fetching: s3://art-rhcos-ci/releases/rhcos-4.10/410.84.202205131801-0/x86_64/meta.json
Fetching: s3://art-rhcos-ci/releases/rhcos-4.10/410.84.202205131801-0/x86_64/commitmeta.json
Fetching: s3://art-rhcos-ci/releases/rhcos-4.10/410.84.202205131801-0/x86_64/ostree-commit-object

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the cosa buildfetch command and compare its current behavior with the example invocation in the issue. Trace how it selects the update graph and RHCOS build, then verify that an OCP version produces the corresponding build data and that the optional channel behavior is defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.