-
Notifications
You must be signed in to change notification settings - Fork 198
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
treefile.rs: Deny unknown fields by default #1459
Conversation
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust.
I was going to do some treefile changes, ended up doing coreos/rpm-ostree#1459 which turned up the bug in this repo. Let's actually fix it by just installing all languages. I'd actually like to do man pages too, but that will come separately after discussion.
I was going to do some treefile changes, ended up doing coreos/rpm-ostree#1459 which turned up the bug in this repo. Let's actually fix it by just installing all languages. I'd actually like to do man pages too, but that will come separately after discussion.
I was going to do some treefile changes, ended up doing coreos/rpm-ostree#1459 which turned up the bug in this repo.
Hmm, this also means that treefiles that use newer keys will no longer work with older rpm-ostree versions... which I think makes sense, so 👍. |
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
@rh-atomic-bot retry |
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
Looks like an rpmmd race. |
Ah yes...this is the issue I was trying to fix. |
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
OK so for now I removed the arch bits, as we weren't actually testing them in the compose tests in either case (JSON/YAML). I'll do a separate PR for parsing the arch-specific packages in the YAML path? |
Yeah, SGTM! |
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
Hmm. |
"packages-ppc64le": ["grub2", "ostree-grub2"], | ||
|
||
"packages-x86_64": ["grub2", "grub2-efi", "ostree-grub2", | ||
"efibootmgr", "shim"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, we need to merge the x86_64
list back into packages
for now probably.
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
40e3d8b
to
654e849
Compare
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
Hmm, |
This should help out with determining what steps take the most time.
bot, retest this please |
bf8d9ee
to
a5cb2e1
Compare
Hmm, OK so it's not so much that the test composes themselves are taking longer, but the prep leading up to them went from ~9m to ~20m. Though in #1406, it just went fine. So it's definitely not consistent. |
This should help out with determining what steps take the most time. Closes: #1459 Approved by: cgwalters
☀️ Test successful - status-atomicjenkins |
Follow up to: coreos#1459 We now honor arch-specific pacakges in YAML, and reject unknown architectures. I looked a little bit at how to avoid having hardcoded arch lists, but it doesn't seem worth it right now.
Follow up to: coreos#1459 We now honor arch-specific packages in YAML, and reject unknown architectures. I looked a little bit at how to avoid having hardcoded arch lists, but it doesn't seem worth it right now.
Let's not make the same mistake we did with JSON where typoing a
field means it's silently ignored. This actually caught a bug
in a YAML usage we had:
Yes, this is a compatibility break with the feature we just announced
but...I seriously doubt anyone (that isn't known to me) has converted
yet, and if they are excited enough to start using a two-week-old feature
they can adjust.