You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd say we should take a lot of inspiration from CL here, however, I'd label our current stream as something like buildmaster which AFAIK doesn't exist in CL. And let's say whatever passes kola automatically promotes to alpha?
This issue interacts with a lot of others, like needing structured metadata.
So I was playing around reading this doc and ended up doing:
$ oc tag rhcos/os:latest@sha256:3300b07069731cabd994e0aac3d0425c701fc7c2e3351f2bb1faaa5491b7573b rhcos/os:alpha
The ImageStream "os" is invalid: []: Internal error: imagestreams "os" is invalid: spec.tags[alpha].from.name: Invalid value: "os:latest": error generating tag event: imagestreamimage.image.openshift.io "os:latest" not found
Which...OK I don't quite understand that. Then I did:
$ oc tag --source docker rhcos/os:latest@sha256:3300b07069731cabd994e0aac3d0425c701fc7c2e3351f2bb1faaa5491b7573b rhcos/os:alpha
Tag os:alpha set to rhcos/os:latest.
Which worked but didn't appear to push to the registry - AIUI it's only changing the image stream?
I wanted to revisit this issue since we have made some progress in terms
of testing and gating. We should be able to use these developments to
get closer to a reasonable tagging scheme for our artifacts.
I had discussion with @cgwalters and @yuqi-zhang about the path forward and we came
out of it with the following details. We don't have to address these
all at once, but we should be able to make iterative progress towards
them.
Whatever the tagging scheme decided, we need to apply the same tags
to the oscontainer and the VM image artifacts (qcow2, AMI, etc).
We need a good UX story for users/cluster operators to be able to
identify which RHCOS they are running. Currently, users are gravitating
to the version number (4.4837), but that is fragile because it is based
on the Jenkins build number.
Version numbers should be unique per build. We promote a version
to different tags.
An initial proposal for a tagging scheme:
buildmaster: freshly built from the pipeline; not tested
alpha: image has been successfully sanity tested in AWS; made available to OpenShift
stable: image has been successfully tested by OpenShift; requires feedback mechanism
from OpenShift
The version number should be the "binding identifier" for RHCOS
Areas for improvement:
Utilize a JSON file to store additional metatdata
move away from commit.txt
store version number in JSON file
Make version number less fragile
Increment version based on value in JSON file from previous build
Make it easier to test the pipeline
Proposal: pass a parameter to the pipeline(s) to create a scratch
directory to store artifacts (i.e. /srv/rhcos/test/micah)
Next Steps:
@cgwalters is going to work on populating the JSON file with additional metadata
Allow folks to weigh in on these details/proposals
@miabbott to create additional issues/tasks around the areas of improvement
Currently, users are gravitating to the version number (4.4837), but that is fragile because it is based on the Jenkins build number.
What do you mean, "fragile". If, say, the 4.4837 build failed, you wouldn't be able to regenerate a build with that version number, but that's the point, right? I don't think these have to be sequential. It's useful for bisection that they're monotonic, but beyond that I don't see a need for additional semantic meaning or stability here. Am I missing something?
Mostly that if our Jenkins instance was destroyed we'd have to either reset the build number by hand, or change the build scripts to to not use the build number.
On the surface this looks like a dupe of #201. This issue has an associated card groomed for work. Does #201 add extra work to this we don't have in the relevant, or is it a separate set of work?
Activity
ashcrow commentedon Jul 2, 2018
Is there a process that was used previously that worked well we could adopt or should we do something brand new?
cgwalters commentedon Jul 2, 2018
I'd say we should take a lot of inspiration from CL here, however, I'd label our current stream as something like
buildmasterwhich AFAIK doesn't exist in CL. And let's say whatever passes kola automatically promotes toalpha?This issue interacts with a lot of others, like needing structured metadata.
bgilbert commentedon Jul 2, 2018
Hah, back in the day that's how CL alpha was defined.
(Well, coretest, not kola.)
cgwalters commentedon Jul 13, 2018
So I was playing around reading this doc and ended up doing:
Which...OK I don't quite understand that. Then I did:
Which worked but didn't appear to push to the registry - AIUI it's only changing the image stream?
I ended up doing:
which worked.
miabbott commentedon Aug 29, 2018
I wanted to revisit this issue since we have made some progress in terms
of testing and gating. We should be able to use these developments to
get closer to a reasonable tagging scheme for our artifacts.
I had discussion with @cgwalters and @yuqi-zhang about the path forward and we came
out of it with the following details. We don't have to address these
all at once, but we should be able to make iterative progress towards
them.
Whatever the tagging scheme decided, we need to apply the same tags
to the
oscontainerand the VM image artifacts (qcow2, AMI, etc).We need a good UX story for users/cluster operators to be able to
identify which RHCOS they are running. Currently, users are gravitating
to the version number (4.4837), but that is fragile because it is based
on the Jenkins build number.
Version numbers should be unique per build. We promote a version
to different tags.
An initial proposal for a tagging scheme:
buildmaster: freshly built from the pipeline; not testedalpha: image has been successfully sanity tested in AWS; made available to OpenShiftstable: image has been successfully tested by OpenShift; requires feedback mechanismfrom OpenShift
The version number should be the "binding identifier" for RHCOS
Areas for improvement:
commit.txtdirectory to store artifacts (i.e.
/srv/rhcos/test/micah)Next Steps:
ashcrow commentedon Aug 29, 2018
I really like this. I'm 👍 on the tagging scheme as well.
wking commentedon Sep 18, 2018
What do you mean, "fragile". If, say, the 4.4837 build failed, you wouldn't be able to regenerate a build with that version number, but that's the point, right? I don't think these have to be sequential. It's useful for bisection that they're monotonic, but beyond that I don't see a need for additional semantic meaning or stability here. Am I missing something?
cgwalters commentedon Sep 18, 2018
Mostly that if our Jenkins instance was destroyed we'd have to either reset the build number by hand, or change the build scripts to to not use the build number.
ashcrow commentedon Sep 19, 2018
On the surface this looks like a dupe of #201. This issue has an associated card groomed for work. Does #201 add extra work to this we don't have in the relevant, or is it a separate set of work?
cgwalters commentedon Sep 19, 2018
The idea with #201 is that we'd just tag the oscontainer but yeah, at this point a dupe.
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer
3 remaining items
aws-test: tag and push an `alpha` of the oscontainer
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer
aws-test: tag and push an `alpha` of the oscontainer
aws-test: tag and push an `alpha` of the oscontainer
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer
treecompose: change tagging scheme for container image
aws-test: tag and push an `alpha` of the oscontainer