Skip to content
Snippets Groups Projects

Add supportability class and configuration

Open Pavel Zhukov requested to merge landgraf/oniro:supportability_single_conf into kirkstone
4 unresolved threads

Signed-off-by: Pavel Zhukov pavel.zhukov@huawei.com

Edited by Pavel Zhukov

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Marta Rybczynska
  • Marta Rybczynska
  • Marta Rybczynska
  • Pavel Zhukov added 1 commit

    added 1 commit

    • 11866994 - Add supportability class and configuration

    Compare with previous version

  • Marta Rybczynska
  • A runtime test is on my TODO list

  • Pavel Zhukov added 1 commit

    added 1 commit

    • f9b22c0f - Add supportability class and configuration

    Compare with previous version

  • Pavel Zhukov added 14 commits

    added 14 commits

    Compare with previous version

  • Pavel Zhukov added 1 commit

    added 1 commit

    • b7a8aff4 - Add supportability class and configuration

    Compare with previous version

  • Pavel Zhukov marked this merge request as draft

    marked this merge request as draft

  • Davide Gardenal
  • Pavel Zhukov added 1 commit

    added 1 commit

    • 79da20ff - Add supportability class and configuration

    Compare with previous version

  • Pavel Zhukov marked this merge request as ready

    marked this merge request as ready

  • Pavel Zhukov added 1 commit

    added 1 commit

    • 75816611 - Add supportability class and configuration

    Compare with previous version

  • Andrei Gherzan
  • Andrei Gherzan
  • Andrei Gherzan
  • Andrei Gherzan
  • Andrei Gherzan
  • Andrei Gherzan
  • Author Contributor

    Based on MM discussion I'll try yet another approach with building manifest for the image instead of per package info.

  • Pavel Zhukov marked this merge request as draft

    marked this merge request as draft

  • Pavel Zhukov added 42 commits

    added 42 commits

    • 75816611...7175297f - 41 commits from branch eclipse/oniro-core:kirkstone
    • 66d1c47f - supportability.bbclass: Add supportability class

    Compare with previous version

  • Pavel Zhukov marked this merge request as ready

    marked this merge request as ready

  • requested review from @agherzan, @mrybczyn, and @idlethread

  • Author Contributor

    relates #391

  • Marta Rybczynska
  • Marta Rybczynska
  • Marta Rybczynska
    Marta Rybczynska @mrybczyn started a thread on commit 66d1c47f
  • 57
    58 def generate_report_txt(data):
    59 report = []
    60 for pkg in data:
    61 report.append("{} : {} => {} \n".format(pkg["package"], pkg["recipe"], pkg["supportstatus"]))
    62 return report
    63
    64 python supportability_report () {
    65 sreport_dir = d.expand('${SUPPORT_DIRECTORY}/${IMAGE_NAME}')
    66 sreport_latest_link = d.expand('${SUPPORT_DIRECTORY}/latest')
    67 report_file = os.path.join(sreport_dir, 'supportability.report.txt')
    68 bb.utils.mkdirhier(sreport_dir)
    69
    70 from oe.rootfs import image_list_installed_packages
    71
    72 packages = image_list_installed_packages(d)
  • Marta Rybczynska
  • Amit Kucheria
  • Amit Kucheria
  • Amit Kucheria
  • Amit Kucheria
    Amit Kucheria @idlethread started a thread on commit 66d1c47f
  • 25 ONIRO_DEFAULT_POLICY = d.getVar("ONIRO_SUPPORT_DEFAULT_POLICY")
    26 if recipe is None:
    27 return "unsupported"
    28
    29 ## Package which are marked as unsupported (not affected by default policy)
    30 ONIRO_SUPPORT_UNSUPPORTED = d.getVar("ONIRO_SUPPORT_UNSUPPORTED")
    31 WARN_IF_UNSUPPORTED = d.getVar("WARN_IF_UNSUPPORTED") != 0
    32 if ONIRO_SUPPORT_UNSUPPORTED is not None and \
    33 recipe in ONIRO_SUPPORT_UNSUPPORTED.split():
    34 if WARN_IF_UNSUPPORTED:
    35 bb.warn("Supportability class: package {} is unsupported".format(recipe))
    36 return "unsupported"
    37
    38 ## Packages which are in Oniro reference images are always supported
    39 ## Not affected by default policy
    40 ONIRO_SUPPORT_REF = d.getVar("ONIRO_SUPPORT_REF")
    • why SUPPORT_REF? What does it stand for?

      SUPPORTED_PKG is clearer ?

    • Author Contributor

      There are three groups:

      ONIRO_SUPPORT_UNSUPPORTED - pkgs we don't want to support (nameservers, web servers, huge nonIoT apps or python libraries etc). For this packages warning will be shown and status set to "unsupported" even if they're in reference images for whatever reason (by mistake).

      ONIRO_SUPPORT_REF - pkgs which are part of our reference non-dev images (thus _REF). We must support them

      ONIRO_SUPPORT_SUPPORTED - pkgs which are not part of our images but we support them. They may be asked by the partner to be added os reviewed in case by case basis.

    • Please register or sign in to reply
  • Amit Kucheria
  • Amit Kucheria
  • Pavel Zhukov added 37 commits

    added 37 commits

    • 66d1c47f...952a5aac - 36 commits from branch eclipse/oniro-core:kirkstone
    • 427a0ca0 - supportability.bbclass: Add supportability class

    Compare with previous version

  • Andrei Gherzan mentioned in issue #387

    mentioned in issue #387

  • Please register or sign in to reply
    Loading