[Debian] debrepack revision misses the "src_files"

Bug #2008748 reported by Yue Tao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Yue Tao

Bug Description

Debian Packaging should increment based on relevant git commits to its source. The SRC_GITREVCOUNT tracks the change of "src_path" folder, however it doesn't cover the "src_files".

Yue Tao (wrytao)
Changed in starlingx:
assignee: nobody → Yue Tao (wrytao)
importance: Undecided → Medium
status: New → Triaged
Yue Tao (wrytao)
summary: - [Debian] debrepack checksum misses the "src_files"
+ [Debian] debrepack revision misses the "src_files"
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/root/+/875584

Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/c/starlingx/root/+/875584
Committed: https://opendev.org/starlingx/root/commit/16a8d89c370fedc840e652e392d2ac56e1b1bd3b
Submitter: "Zuul (22348)"
Branch: master

commit 16a8d89c370fedc840e652e392d2ac56e1b1bd3b
Author: Yue Tao <email address hidden>
Date: Tue Feb 28 10:25:45 2023 +0800

    debrepack.py: "FILES_GITREVCOUNT" calculates "src_files" revision

    Introduce the "FILES_GITREVCOUNT" to calculate the "src_files"
    git commits and update package's revision.

    The most complex scenario is multi src_files are in different
    repositories, so request each file to set a base commit. If all
    files are in same directory, it only calculates once.

    For example:

    src_files:
      - AAA/BBB/CCC
      - DDD/EEE/FFF
      - GGG/HHH/III
    ...
    revision:
      FILES_GITREVCOUNT:
        - xxxxxxxxx
        - yyyyyyyyy
        - zzzzzzzzz

    Test Plan:

    Pass: build-pkgs -c -a
    Pass: Observe the change of "src_files" updates to revision
    Pass: build-image

    Closes-bug: 2008748

    Signed-off-by: Yue Tao <email address hidden>
    Change-Id: I56bb612c829b69d8946fa4516d06255abb2bdd0b

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.9.0 stx.build
tags: added: stx.tools
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.