Onboard automation scripts
input_packages.yml
- Input for
onboard.py
script. List of packages that are going to be onboarded with the script.
Accepted format is list of YAML dicts:
-
downstream_name: ogr
upstream_url: "git@github.com:packit-service/ogr.git"
-
downstream_name: packit
upstream_url: "https://github.com/packit-service/packit"
onboard.py
- For every package in
input_packages.yml
, the script:
- Clones upstream repository
- Makes sure packit configuration is present. If it is not,
generates it using
packit generate
- Runs
packit status
- Tries building srpm with upstream specfile
- Tries building srpm with downstream specfile
- Script stores all the log output in the
./output
directory, where every instance of run is stored in separate directory marked by date. - The directory contains logs separated by package name and results.yml file with the results for all packages.
- Run the script using:
python3 onboard.py