Skip to content
Snippets Groups Projects
  1. May 09, 2022
  2. May 05, 2022
  3. Apr 26, 2022
  4. Apr 21, 2022
    • Ariel D'Alessandro's avatar
      check-invariants: Ignore linux pkg upstream branch merged invariant · 3f0410cd
      Ariel D'Alessandro authored
      
      Currently, all the downstream channels that are based on the source
      branch are checked to be merged. This doesn't match the linux package
      configuration, as it doesn't pull updates from the default release
      upstream sources.
      
      For instance, apertis/v2021 release is based on debian/buster, but the
      apertis/v2021 linux package pulls from debian/bullseye.
      
      Let's ignore the linux package upstream branches checking invariant as
      this is reporting wrong entries and there's another script which takes
      care of handling all linux package updates:
      
        ./bin/packaging-updates-upstream-linux
      
      Signed-off-by: default avatarAriel D'Alessandro <ariel.dalessandro@collabora.com>
      3f0410cd
  5. Apr 19, 2022
  6. Apr 02, 2022
  7. Mar 31, 2022
    • Arnaud Ferraris's avatar
      dashboard: allow filtering licensing problems · 197b3eb2
      Arnaud Ferraris authored and Detlev Casanova's avatar Detlev Casanova committed
      
      In order to be able to easily identify licensing issues, those should be
      reported in a different way than other issues. This is achieved by
      changing the severity of those issues to "warning" and using "license"
      as the text for the severity badge. This also allows us to easily filter
      those issues based on the selected severity.
      
      This commit also changes the filtering checkboxes labels to better
      reflect which issues are being taken into account.
      
      Signed-off-by: default avatarArnaud Ferraris <arnaud.ferraris@collabora.com>
      197b3eb2
    • Arnaud Ferraris's avatar
      71470725
    • Arnaud Ferraris's avatar
      fetch-downstream: include additional licensing information · 7c144fef
      Arnaud Ferraris authored and Detlev Casanova's avatar Detlev Casanova committed
      
      In order to facilitate license compliance, the dashboard should report
      the most severe license issues found in packages from the "target"
      repository: this includes cases where we override the existing license
      information (especially when specifying a global default license) or
      packages for which whitelisting is enabled for the whole source tree.
      
      As part of this effort, this commit fetches the copyright override and
      whitelisting files, and process those in order to detect major issues.
      The corresponding new per-branch flags are then set accordingly and
      added to the output file.
      
      Signed-off-by: default avatarArnaud Ferraris <arnaud.ferraris@collabora.com>
      7c144fef
    • Arnaud Ferraris's avatar
      fetch-downstream: rework filtering method for clarity and completeness · 59e5999d
      Arnaud Ferraris authored and Detlev Casanova's avatar Detlev Casanova committed
      
      The `filter_cache()` method used an optional `check_tags` argument to
      decide between several code paths. This does not properly reflect the
      purpose of this argument, which is to differentiate between 2 use cases:
      - check and populate information about the descendants of a given ref
      - check and populate component and license information
      
      As additional fields will have to be taken into account in the future,
      this rework aims at making the aforementioned method more flexible,
      while making it clear to which use-case belongs each code path. To that
      effect, the `check_flags` argument is renamed to `purpose` and now uses
      an enum to distinguish between use-cases. It also only processes the
      relevant data for the current use-case:
      - when checking for descendants, only descendants data is looked up and
        updated
      - when checking for license info, only this information is checked and
        updated
      
      Signed-off-by: default avatarArnaud Ferraris <arnaud.ferraris@collabora.com>
      59e5999d
  8. Mar 17, 2022
  9. Feb 11, 2022
  10. Feb 08, 2022
    • Emanuele Aina's avatar
      fetch-downstream: Fix branch version detection · 19fe3eda
      Emanuele Aina authored
      
      Retrieve all descendants to correctly detect when a branch got merged in
      another and which tags apply.
      
      Unfortunately `commit.refs()` does not currently handle pagination, so
      only the first 20 items were downloaded.
      
      This meant that in some cases no tags were returned, so no version could
      be computed. In other cases this may have cause incorrect reports of
      branches not being merged into their downstream, or other issues due to
      computing the wrong version for the branch.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      19fe3eda
  11. Jan 31, 2022
  12. Jan 28, 2022
  13. Jan 15, 2022
    • Emanuele Aina's avatar
      check-invariant: Print the current package name on errors · 1912eb12
      Emanuele Aina authored
      
      When getting an exception, ensure the current package name is printed to
      debug which one has faulty data.
      
      For instance this is now the output, previously only the first exception
      was printed:
      
          Traceback (most recent call last):
            File "./bin/packaging-check-invariants", line 586, in <module>
              checker.check_missing_license_report(package)
            File "./bin/packaging-check-invariants", line 533, in check_missing_license_report
              if branch.component == "target" and not branch.license_report:
            File "./bin/packaging-check-invariants", line 90, in __getattr__
              item = super(DictWrapper, self).__getitem__(attr)
          KeyError: 'component'
      
          The above exception was the direct cause of the following exception:
      
          Traceback (most recent call last):
            File "./bin/packaging-check-invariants", line 588, in <module>
              raise Error(package.name) from e
          __main__.Error: aalib
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      1912eb12
    • Emanuele Aina's avatar
      check-invariants: Move the loop outside to reduce nesting · 907e2c55
      Emanuele Aina authored
      
      Get rid of an indentation level by moving the iteration over the
      packages out of the check functions.
      
      This also will make improving error reporting easier since the package
      context of each check is now clearly defined when calling it.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      907e2c55
  14. Jan 13, 2022
  15. Dec 31, 2021
  16. Dec 27, 2021
  17. Dec 22, 2021
  18. Dec 21, 2021
  19. Dec 06, 2021
Loading