-
Notifications
You must be signed in to change notification settings - Fork 54
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
Validate config map and fix bad Fedora IoT test config #1156
Conversation
Add a group to the edge-ostree-pull-user config with name osbuild and gid 1002. The group is assigned to the user in the same config. This covers the scenario that causes the bug that was fixed in the previous commit. This config is used to build edge-ami images in CI.
8b7cf20
to
ed9d970
Compare
I changed some test names in the github actions which means I had to change the required test list for PRs. We'll need to rebase all other open PRs when this is merged. |
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.
I've added a few nitpicks and a question, but in general, this looks good to me 👍
Extra points for adding a test for the new script 😅
Reads the config map and verifies that: 1. All listed config files exist, and 2. The combination of distros, arches, and image-types produces at least one valid build configuration for each config file. Note that this does not catch all issues with a config-map. For example, the following configuration is considered valid: ```json { "./configs/some-config.json": { "distros": [ "rhel-10*", ], "image-types": [ "ami", "invalid-type-name" ] } } ``` because it still produces (at least) one valid configuration: rhel-10, ami, any architecture This is (somewhat) necessary because we also want the following to be valid: ```json { "./configs/some-config.json": { "distros": [ "rhel-9*", "fedora*" ], "image-types": [ "iot-commit", "edge-commit" ] } } ``` where iot-commit is only valid for fedora* and edge-commit is only valid for rhel-9*.
Install the go dependencies when running pytest because we now call cmd/list-images when testing validate-config-map.
iot-ami is not a valid image type name. Test iot-qcow2-image instead.
ed9d970
to
3a33aa4
Compare
Dropped the |
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.
LGTM
Dismissed again. Had to set the GOPROXY on all the github jobs that need it because of an expired cert at the source of one of the dependencies. |
GitLab didn't seem to need it. Do we set it on our gitlab runners by default? |
18ec556
to
0484251
Compare
Workaround for expired cert at source of indirect dependency go.opencensus.io/trace The Fedora tests are run using a container again instead of relying on the makefile so we can control the environment.
0484251
to
2903a6f
Compare
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.
FWIW, LGTM
iot-ami
image type in the config map toiot-qcow2-image
.iot-ami
is not a valid image type name.¹ Note that the validation script does not catch all issues with the config map. For
example, the following configuration is considered valid:
because it still produces (at least) one valid configuration:
This is (somewhat) necessary because we also want the following to be
valid:
where iot-commit is only valid for fedora* and edge-commit is only valid
for rhel-9*.