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

src/tarball: type conversion for version dict #437

Closed

Commits on Feb 19, 2024

  1. src/tarball: use helper function for type conversion for version

    As the API has enforced strict int data type for some
    of the version information fields, data type cast is
    required to make sure `int` fields are not sent off as
    `str` fields. Otherwise, the below error will be encountered:
    ```
    kernelci-pipeline-tarball | 02/16/2024 07:15:59 AM UTC [ERROR] 2 validation errors for Checkout
    kernelci-pipeline-tarball | data -> kernel_revision -> version -> version
    kernelci-pipeline-tarball |   value is not a valid integer (type=type_error.integer)
    kernelci-pipeline-tarball | data -> kernel_revision -> version -> patchlevel
    kernelci-pipeline-tarball |   value is not a valid integer (type=type_error.integer)
    ```
    Use API helper function for translation of version fields
    before submitting them to the API.
    
    Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
    Jeny Sadadia committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    ca4dfdd View commit details
    Browse the repository at this point in the history