Skip to content
Snippets Groups Projects
  1. Jul 10, 2024
  2. Jul 04, 2024
  3. Jul 01, 2024
  4. Jun 28, 2024
  5. Jun 17, 2024
  6. May 27, 2024
  7. Apr 08, 2024
    • Dylan Aïssi's avatar
      Add GIT_BRANCH_MISMATCH_UPSTREAM_IGNORELIST allowing to ignore new upstream release · 0583e2f5
      Dylan Aïssi authored and Walter Lozano's avatar Walter Lozano committed
      
      Packages versions coming from Debian are correctly parsed, so we don't have to
      whitelist them, however in Apertis we use the ~v202X suffix which is to
      misinterpreted by dashboard and lead to confusion when comparing versions.
      For example, the dashboard the of downstream complains about:
      
      Version in apertis/v2023/5.2.5~ds0-1+apertis0 is higher than version 5.2.5~ds0-1+apertis0~v2023 in upstream apertis/v2023
      
      Which is true, but due to our workflow, the version apertis/v2023/5.2.5~ds0-1+apertis0
      should not land in v2023 this is the reason of why we add the problematic
      suffix allowing us to backport targeted changes to a previous release.
      Adding the logic in the dashboard to correctly interpret the ~v202X is
      not trivial, so for now we can teach it to ignore some versions.
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      0583e2f5
  8. Apr 04, 2024
  9. Mar 27, 2024
    • Dylan Aïssi's avatar
      json-merge: only write packaging data in cache file · 3d085b85
      Dylan Aïssi authored
      
      Only packaging data are required in the cache file,
      that was the previous behavior, but it was mistakenly
      reverted in 254b71ed.
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      3d085b85
    • Dylan Aïssi's avatar
      updates-upstream-linux: check detected version before trying to use it · 9097fe04
      Dylan Aïssi authored
      Just after adding apertis/v202*-security and -updates branches to be
      tracked by the dashboard, the returned version is "None" because the
      cache file is not yet updated. This "None" value makes the pipeline
      failing with:
      
      Traceback (most recent call last):
        File "/builds/infrastructure/dashboard/./bin/packaging-updates-upstream-linux", line 209, in <module>
          results = compute_linux_updates(data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/builds/infrastructure/dashboard/./bin/packaging-updates-upstream-linux", line 134, in compute_linux_updates
          process = subprocess.run(
                    ^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/subprocess.py", line 571, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['git', '-c', 'versionsort.suffix=-', 'ls-remote', '--exit-code', '--tags', '--refs', '--sort=version:refname', 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
      
      ', 'vNone*']' returned non-zero exit status 2.
      
      To avoid failures, just skip this branch for this iteration.
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      9097fe04
  10. Mar 25, 2024
    • Emanuele Aina's avatar
      packaging-check-invariants: Avoid crashing on OBS-only packages · 672d5924
      Emanuele Aina authored
      
      If a package only appears on OBS the dashboard fails with an exception:
      
          Traceback (most recent call last):
            File "/builds/-RogsxNE/0/infrastructure/dashboard/./bin/packaging-check-invariants", line 854, in <module>
              checker.check_git_and_obs_versions(package)
            File "/builds/-RogsxNE/0/infrastructure/dashboard/./bin/packaging-check-invariants", line 238, in check_git_and_obs_versions
              if package.git.default_branch:
                 ^^^^^^^^^^^
            File "/builds/-RogsxNE/0/infrastructure/dashboard/./bin/packaging-check-invariants", line 79, in __getattr__
              item = super(DictWrapper, self).__getitem__(attr)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          KeyError: 'git'
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      672d5924
  11. Mar 20, 2024
  12. Mar 14, 2024
  13. Mar 01, 2024
    • Dylan Aïssi's avatar
      packaging-check-invariants: check if 'component' is in 'branch' before using it · 1567b953
      Dylan Aïssi authored
      
      Sometimes, we need to import and modify packages from Debian.
      To make the initial review easier, an apertis/v202* branch is created
      from the debian one, then a merge request is created against it adding
      debian/apertis/* files. During the review, tha apertis branch
      doesn't have any debian/apertis/* files and the dashboard fails with:
      
        Traceback (most recent call last):
          File "/builds/infrastructure/dashboard/./bin/packaging-check-invariants", line 857, in <module>
            checker.check_git_and_obs_versions(package)
          File "/builds/infrastructure/dashboard/./bin/packaging-check-invariants", line 271, in check_git_and_obs_versions
            component = branch.component
                      ^^^^^^^^^^^^^^^^
          File "/builds/infrastructure/dashboard/./bin/packaging-check-invariants", line 79, 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 "/builds/infrastructure/dashboard/./bin/packaging-check-invariants", line 867, in <module>
            raise Error(package.name) from e
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      1567b953
  14. Feb 23, 2024
  15. Feb 22, 2024
  16. Feb 20, 2024
  17. Feb 19, 2024
    • Dylan Aïssi's avatar
      Add a new ignorelist for mismatch between OBS and git · e1bcd613
      Dylan Aïssi authored and Walter Lozano's avatar Walter Lozano committed
      
      Sometimes, we need to backport a package version to a previous
      Apertis release. But, a fast-forward backport is not always
      possible as some changes may have occurred that are not suitable
      for previous Apertis releases (like a change in debian/apertis/component
      or debian/apertis/copyright needs to be refreshed with a different
      version or the toolchain). In order to keep the git history linear,
      while doing the backport, unsuitable changes are reverted and a
      suffix like "~v2023" is used for versioning.
      
      Because this unsual workflow is a bit tricky, it's not possible
      to teach the dashboard about this suffix which makes it complaning
      for "Mismatch between OBS XXX~v2023 and Git XXX".
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      e1bcd613
  18. Feb 16, 2024
  19. Jan 30, 2024
  20. Jan 24, 2024
  21. Jan 23, 2024
  22. Jan 22, 2024
Loading