Skip to content

pkg-stats json output improvements

Heiko Thiery buildroot 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest12 patches 0 repliesNew
  2. v4 posting 2/20 of 12 patches 0 repliesSuperseded
  3. v4 posting 1/212 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v312 patches0 repliesSuperseded
v2 posting 3/30 of 8 patches0 repliesSuperseded
v2 posting 2/30 of 8 patches0 repliesSuperseded
v2 posting 1/38 patches0 repliesSuperseded
v111 patches0 repliesSuperseded

Changes in v5 from the cover letter

- fix failure while applying to master

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12support/scripts/pkg-stats: store latest version in a dictsupport/scripts/pkg-stats+15 -160 replies
2/12support/scripts/pkg-stats: store patch files for the packagesupport/scripts/pkg-stats+6 -30 replies
3/12support/scripts/pkg-stats: set developers infosupport/scripts/pkg-stats+17 -00 replies
4/12support/scripts/pkg-stats: store licences of packagesupport/scripts/pkg-stats+4 -20 replies
5/12support/scripts/pkg-stats: add package statussupport/scripts/pkg-stats+69 -320 replies
6/12support/scripts/pkg-stats: add package count to statssupport/scripts/pkg-stats+1 -00 replies
7/12support/scripts/pkg-stats: store pkg dir pathsupport/scripts/pkg-stats+1 -00 replies
8/12support/scripts/pkg-stats: add defconfig supportsupport/scripts/pkg-stats+41 -20 replies
9/12support/scripts/pkg-stats: add support for license hash checksupport/scripts/pkg-stats+14 -21 reply
9/12support/scripts/pkg-stats: add support for license hash check+0 -00 replies
10/12support/scripts/pkg-stats: set status to 'na' for virtual packagessupport/scripts/pkg-stats+27 -00 replies
11/12support/scripts/pkg-stats: add list of status checks to the json outputsupport/scripts/pkg-stats+6 -00 replies
12/12support/scripts/pkg-stats: add status for cve checksupport/scripts/pkg-stats+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [Buildroot] [PATCH v5 00/12] pkg-stats json output improvements

- add developers information to the packages
- add supported defconfigs to json
- add license information to json
- add license file information to json
- add patch files to json
- add a more generic check status field to the packages for easier post processing. The following check status are availble: checks: cve, license, license-files, hash, hash-license,patches, version, url, developers, pkg-check

---
v4 -> v5:
- fix failure while applying to master

v3 -> v4:

Included the review comments from Titouan

- use only one signed-off mail address
- do some things in a more pythonic way
- remove the patch_count attribute and use a class property instead (Note that the patch_count value will not go into the json output anymore,but then coutn can be computed by "len(patch_files)".)
- remove the status initializer in the package class that was introduced in v3
- update the cve status at the end of the cve check loop
- change the is_valid_infra -> has_valid_infra and use it as property

v2 -> v3:
- keep variable latest_release but change format
- add check for license file hashes
- introduce a na status for the checks
- add a list of all possible checks to the json output
- add the cve check status

v1 -> v2:
- cleanup and recreation of patches
- remove pkg name from dumping to json
- use patch_files instead of combine count and files in dict
- include getdevelopers.py to reuse Developers class

---

Heiko Thiery (12):
support/scripts/pkg-stats: store latest version in a dict support/scripts/pkg-stats: store patch files for the package support/scripts/pkg-stats: set developers info support/scripts/pkg-stats: store licences of package support/scripts/pkg-stats: add package status support/scripts/pkg-stats: add package count to stats support/scripts/pkg-stats: store pkg dir path support/scripts/pkg-stats: add defconfig support support/scripts/pkg-stats: add support for license hash check support/scripts/pkg-stats: set status to 'na' for virtual packages support/scripts/pkg-stats: initialize all package status checks support/scripts/pkg-stats: add status for cve check

 support/scripts/pkg-stats | 271 +++++++++++++++++++++++++++++---------
 1 file changed, 211 insertions(+), 60 deletions(-)
Signature · 1 line
2.20.1