Skip to content
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

db update #1

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

db update #1

wants to merge 11 commits into from

Conversation

schutzbot
Copy link
Owner

automated db update

lavocatt and others added 11 commits July 12, 2022 18:30
To be able to load the tests DB folders, make the DB path a parameter of
the executable.
In this test the tool osbuild-image-test run against two databases. The
first one containing a successible test case and the second one a
faulty test cases that will fail upon comparison of the image-info.
This tool can be used to update the manifest-db from a gitlab ci
pipeline. CI pipelines are building all the possible manifest with the
Schutzfile's version of the CI. Thus, after a new run, we can use this
script to update the database.

Usage;

Firstly, run ci_import at the root of the manifest-db project:

./tools/ci_import --pipeline-id $pipelineid --token your-gitlab-token

Finally you can commit the modifications made to the test cases.
Some UUIDs are not fixed in the manifest. Therefore, ignore it at
comparison time. Lvm2 and CD partition's UUIDs are concerned.
The import tool can now only update the manifests from composer instead
of before importing manifests and image-info. This is good because the
image-info on composer are sometimes outdated and we don't want to
override our lately generated image-info with noise.
Some of the manifests coming from Composer produce images that are non
explorable by the image-info tool. Add a way to not import this well
known set with a db-ignore file that the root of the project containing
all the faulty items to not import.
First a github action pulls the new manifests from composer. Creates a
commit out of the modification and pushes these to the gitlab repository
on a specific branch. Then it triggers a pipeline using the trigger
token.

Then the CI runs in "trigger" mode. In this mode it will compile all the
new manifests and produce the corresponding image-info in the artifacts.

Once this is done, in the final phase the CI will download all the
produced image-info and ammend the update db commit with them. Then it
will push that on github and open a PR.
Automatic update:
- manifests from latest composer
- image-info from pipeline 604788399
@lavocatt
Copy link

lavocatt commented Aug 4, 2022

This PR needs to be closed, it was not opened at the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants