Re: [isar-cip-core][PATCH v3 3/6] Add script deploy-kernelci.py for upload the cip-core-image-kernelci

Jan Kiszka
2022-09-01T10:55:12Z

On 27.01.22 18:12, Jan Kiszka wrote:
> From: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
>
> The cip-core-image-kernelci need to be uploaded to the KernelCI
> production storage for been used by KernelCI.
> This script use the KernelCI API for uploading the
> cip-core-image-kernelci to the production storage.
> The images are uploaded in the following link:
> https://storage.kernelci.org/images/rootfs/cip/
>
> Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> scripts/deploy-kernelci.py | 55 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 55 insertions(+)
> create mode 100755 scripts/deploy-kernelci.py
>
> diff --git a/scripts/deploy-kernelci.py b/scripts/deploy-kernelci.py
> new file mode 100755
> index 0000000..5a8adca
> --- /dev/null
> +++ b/scripts/deploy-kernelci.py
> @@ -0,0 +1,55 @@
> +#!/usr/bin/env python3
> +# -*- coding: utf-8 -*-
> +
> +import subprocess
> +import requests
> +import os
> +import sys
> +import time
> +from urllib.parse import urljoin
> +
> +cdate=time.strftime("%Y%m%d")
> +api="https://api.kernelci.org/upload"
> +token=os.getenv("KERNELCI_TOKEN")
> +
> +release=sys.argv[1]
> +target=sys.argv[2]
> +extension=sys.argv[3]

Just stumbled over these:

We do not use "extension" (it's always "kernelci"), that's an easy
cleanup. But more important, we also pass the dtb while we do not push
it to kernelci - by intention?

Jan

--
Siemens AG, Technology
Competence Center Embedded Linux