Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
rhcos: release-browser moved to new cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiouxme committed Aug 24, 2022
1 parent d261b4a commit e620112
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doozerlib/rhcos.py
Expand Up @@ -103,7 +103,7 @@ def __init__(self, runtime, version: str, brew_arch: str = "x86_64", private: bo
@param brew_arch architecture we are interested in (e.g. "s390x")
@param private boolean, true for private stream, false for public (currently, no effect)
@param custom If the caller knows this build is custom, the library will only search in the -custom buckets. When the RHCOS pipeline runs a custom build, artifacts
should be stored in a different area; e.g. https://releases-rhcos-art.cloud.privileged.psi.redhat.com/storage/releases/rhcos-4.8-custom/48.84.....-0/x86_64/commitmeta.json
should be stored in a different area; e.g. https://releases-rhcos-art.apps.ocp-virt.prod.psi.redhat.com/storage/releases/rhcos-4.8-custom/48.84.....-0/x86_64/commitmeta.json
This is done by ART's RHCOS pipeline code when a custom build is indicated: https://gitlab.cee.redhat.com/openshift-art/rhcos-upshift/-/blob/fdad7917ebdd9c8b47d952010e56e511394ed348/Jenkinsfile#L30
"""
self.runtime = runtime
Expand Down Expand Up @@ -171,10 +171,10 @@ def rhcos_build_meta(self, build_id: str, meta_type: str = "meta") -> Dict:
Queries the RHCOS release browser to return metadata about the specified RHCOS build.
:param build_id: The RHCOS build_id to check (e.g. 410.81.20200520.0)
:param meta_type: The data to retrieve. "commitmeta" (aka OS Metadata - ostree content) or "meta" (aka Build Metadata / Build record).
:return: Returns a Dict containing the parsed requested metadata. See the RHCOS release browser for examples: https://releases-rhcos-art.cloud.privileged.psi.redhat.com/
:return: Returns a Dict containing the parsed requested metadata. See the RHCOS release browser for examples: https://releases-rhcos-art.apps.ocp-virt.prod.psi.redhat.com/
Example 'meta.json':
https://releases-rhcos-art.cloud.privileged.psi.redhat.com/storage/releases/rhcos-4.1/410.81.20200520.0/meta.json
https://releases-rhcos-art.apps.ocp-virt.prod.psi.redhat.com/storage/releases/rhcos-4.1/410.81.20200520.0/meta.json
{
"buildid": "410.81.20200520.0",
...
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rhcos.py
Expand Up @@ -113,7 +113,7 @@ def test_rhcos_build_inspector(self, rhcos_build_meta_mock, cmd_assert_mock):
Tests the RHCOS build inspector abstraction to ensure it correctly parses and utilizes
pre-canned data.
"""
# Data source: https://releases-rhcos-art.cloud.privileged.psi.redhat.com/?stream=releases/rhcos-4.7-s390x&release=47.83.202107261211-0#47.83.202107261211-0
# Data source: https://releases-rhcos-art.apps.ocp-virt.prod.psi.redhat.com/?stream=releases/rhcos-4.7-s390x&release=47.83.202107261211-0#47.83.202107261211-0
rhcos_meta = json.loads(self.respath.joinpath('rhcos1', '47.83.202107261211-0.meta.json').read_text())
rhcos_commitmeta = json.loads(self.respath.joinpath('rhcos1', '47.83.202107261211-0.commitmeta.json').read_text())
# NOTE: loading and parsing these fixtures can take a few seconds, no cause for concern
Expand Down

0 comments on commit e620112

Please sign in to comment.