-
Notifications
You must be signed in to change notification settings - Fork 183
Fix missing extensions in RHCOS release browser #4009
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| package builds | ||
|
|
||
| // generated by 'make schema' | ||
| // source hash: 4bb2fd8591ae1cc9179181b9efcb550542137a01c9544fd048e66794e0fb176a | ||
| // source hash: d7b6e01415317b89e346747884eb3536cc9e78049a2c71615739afd51fa65569 | ||
|
|
||
| type AdvisoryDiff []AdvisoryDiffItems | ||
|
|
||
|
|
@@ -129,9 +129,9 @@ type Cloudartifact struct { | |
|
|
||
| type Extensions struct { | ||
| Manifest map[string]interface{} `json:"manifest"` | ||
| Path string `json:"path"` | ||
| RpmOstreeState string `json:"rpm-ostree-state"` | ||
| Sha256 string `json:"sha256"` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree that I don't think we need these any longer. My only concern is do we somehow want to maintain backward compatibility in case we encounter this (i.e. using current tools to look at an older build).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We would have already noticed this since no extensions were being created at all. I suggest backporting until the point where we stopped generating extensions in meta.json.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure I understand.. but let me ask the question a different way.. If you do bake this PR into a COSA image and then try to parse (i.e. buildfetch and
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's important to use 4.15 in this test because those builds do have the extensions in the meta.json
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it does work: The only diff for now is that we won't have path, sha256 and rpm-ostree-state, but does work in the same way.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right. I was just worried that the schema would error if there were components in there that it didn't expect.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It works because the schema doesn't disallow additional properties. So the fields are essentially "unregistered". I think instead of this, we should make those properties optional. That way we still have type modelling for them. This could be useful in the future for GC. |
||
| Path string `json:"path,omitempty"` | ||
| RpmOstreeState string `json:"rpm-ostree-state,omitempty"` | ||
| Sha256 string `json:"sha256,omitempty"` | ||
| } | ||
|
|
||
| type Gcp struct { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,13 @@ else | |
| schematyper=$(which schematyper 2>/dev/null || true) | ||
| fi | ||
| if test -z "${schematyper}"; then | ||
| env GOBIN=${topdir}/bin go install github.com/idubinskiy/schematyper@latest | ||
| schematyper=${topdir}/bin/schematyper | ||
| if [ ! -d "${topdir}/schematyper" ]; then | ||
| git clone https://github.com/idubinskiy/schematyper.git ${topdir}/schematyper | ||
| go -C ${topdir}/schematyper mod edit -replace gopkg.in/alecthomas/kingpin.v2=github.com/alecthomas/kingpin/[email protected] | ||
| go -C ${topdir}/schematyper mod tidy && go -C ${topdir}/schematyper mod vendor | ||
| go -C ${topdir}/schematyper build | ||
| fi | ||
| schematyper=${topdir}/schematyper/schematyper | ||
| fi | ||
|
|
||
| ${schematyper} \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.