Skip to content
Snippets Groups Projects
  1. Jun 18, 2021
    • Emanuele Aina's avatar
      ci-buildpackage: Drop debian/apertis/ cleanup hook · a62ef53a
      Emanuele Aina authored and Martyn Welch's avatar Martyn Welch committed
      
      We can now drop the `debian/apertis/` cleanup hook since:
      
      1. we no longer use `debian/apertis/gitlab-ci.yml` since we have
         switched to an external reference
      2. `debian/apertis/` won't become empty since we always have at least a
         `component` file
      
      This also makes `ci-buildpackage` work with non-Apertis packages which
      were previously failing on the `rmdir` invocation no handling well the
      lack of the `debian/apertis/` folder.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      a62ef53a
  2. Jun 08, 2021
  3. Jun 07, 2021
  4. Jun 04, 2021
    • Ariel D'Alessandro's avatar
      ci-license-scan: Manually check whitelisted files · a51aa6de
      Ariel D'Alessandro authored
      Files whitelisted in debian/apertis/copyright.whitelist are used to
      instruct the scanner process not to raise an error which allows the
      pipeline to succeed and merge the change. However, as a side effect, the
      entries in debian/apertis/copyright with offending licenses are being
      removed, dropping important information.
      
      BOM generator for Apertis binary packages needs the whole information.
      scan-copyright scanner must be called without a whitelist, so the
      pipeline keeps license information for all the present files in the
      source package.
      
      This MR adapts ci-license-scan script to generate license information
      for all the files, without failing on whitelisted offending ones.
      
      Link: https://phabricator.apertis.org/T7878
      
      
      
      Signed-off-by: default avatarAriel D'Alessandro <ariel.dalessandro@collabora.com>
      a51aa6de
    • Ariel D'Alessandro's avatar
      ci-license-scan: Make "\./" path prefix optional in git patterns · fd3df13c
      Ariel D'Alessandro authored
      
      Currently, gitpattern2re is used to convert gitignore patterns to the
      Dpkg::Copyright::Scanner-compatible format. As noted in the code, that
      requires to prepend ^\./, not just ^.
      
      In order to manually match filename regex to those git patterns, that
      prefix must be optional, as the file path from the copyright entry might
      not have it.
      
      Signed-off-by: default avatarAriel D'Alessandro <ariel.dalessandro@collabora.com>
      fd3df13c
  5. May 26, 2021
  6. May 19, 2021
  7. May 18, 2021
    • Emanuele Aina's avatar
      Change default downstream packaging suffix to `+apertisX` · 39794050
      Emanuele Aina authored
      
      We moved from `coX` to `apertisX` as the packaging suffix but
      unfortunately it turned out to interact badly with the build suffix on
      OBS in some scenarios:
      
      1. `bluez` in Debian has the `5.55-3` version
      2. it gets uploaded to OBS with no changes, forgetting to add the
         `apertisX` suffix
      3. OBS appends the build suffix, generating binaries with version
         `5.55-3bv2022dev2b1`
      4. we update `bluez` appending the `apertisX` suffix, yielding
         `5.55-3apertis1`
      5. OBS appends the build suffix, generating binaries with version
         `5.55-3apertis1bv2022dev2b1`
      6. reprepro gets the new binaries from OBS but the ordering is now wrong
         since `5.55-3apertis1bv2022dev2b1` < `5.55-3bv2022dev2b1` and will
         refuse to publish the newly built binaries
      
      Switching to `+apertisX` has the following advantages:
      
      * it can be rolled out progressively using the standard workflow
      * no need to change the build suffix
        * no need to rebuild everything on OBS
        * no need to manually delete entries from reprepro
      * backports work correctly, `+apertisX` sorts newer than `coX` and
        the OBS suffixes
      * mixing releases like v2021 and v2022 should not produce surprising
        effects like v2021 builds sorting newer than v2022
      
      The drawbacks are:
      * every non-Apertis-specific package needs to be tweaked
      * if Debian package maintainer releases a new version by appending a
        suffix there are higher chances that the `+apertisX` suffix will sort
        newer (we already have this issue, but this increases the chances to
        hit it)
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      39794050
  8. May 06, 2021
  9. Apr 28, 2021
    • Emanuele Aina's avatar
      pkg-pull-updates: Fix tagging of imported commits after message trimming · 1863584c
      Emanuele Aina authored
      
      Commit 4d11675a "pkg-pull-updates: Avoid oversized commit messages"
      resolved to amending the commit generated by `gbp import-dsc` to trim
      the overly long commit messages since they where causing issues with
      GitLab CI/CD.
      
      However, `gbp import-dsc` also creates a git tag for the generated
      commit and after the amend the tag was left dangling, pointing to the
      original commit rather than the amended one.
      
      Invoke `gbp tag --retag` to update the tag as well, so it get pushed
      again with the branch.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      1863584c
  10. Apr 27, 2021
  11. Apr 26, 2021
    • Emanuele Aina's avatar
      pkg-merge-upstream-to-downstreams: Do not abort automerging · 82ad5fbb
      Emanuele Aina authored
      
      When pushing new commits to a MR set to be merged automatically with the
      `merge_request.merge_when_pipeline_succeeds` push option GitLab aborts
      the automated merge.
      
      This meant that our automerging never worked because we first pushed the
      unmerged commit to create the MR and when the local merge attempt
      succeeded we pushed the result to the same MR, causing GitLab to abort
      the automerging.
      
      To make it work, ensure we only push once to create the MR, either with
      the result of the local merge or the unmerged commit if the local
      attempt failed.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      82ad5fbb
  12. Apr 23, 2021
  13. Apr 19, 2021
  14. Apr 14, 2021
  15. Apr 13, 2021
    • Emanuele Aina's avatar
      pkg-merge-upstream-to-downstreams: Explicitly define stable branches · 7ecf7c3a
      Emanuele Aina authored
      
      Currently the code pulling updates from upstream assumes that downstream
      branches ending with `dev[0-9]` or `pre` are not stable so updates can
      be directly landed there, while other downstream branches (for instance,
      `apertis/v2021`) are stable and updates should go through the updates or
      security repositories.
      
      However, there's a time right before the first stable release is
      published that the "stable" branch is not stable yet. For instance,
      before the release of `v2021.0` the `apertis/v2021` should not have been
      considered stable and updates should have been landed directly there.
      
      This is even more important for downstreams so that they can pull
      updates to their not-released-yet v2021 branch.
      
      To do so, add a `--stable` parameter that accepts the list of branches
      to be considered "stable".
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      7ecf7c3a
    • Emanuele Aina's avatar
      Rework hack to make sure images are tagged as latest · dc6cd091
      Emanuele Aina authored
      
      Commit 788aa27a "Debian commits" was introduced to base images
      directly on Debian while the Bullseye import in v2022dev2 is not
      complete enought to real Apertis build images.
      
      Unfortunately it broke the ability to tag images as `latest`.
      
      Rework the hack so tagging works again.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      dc6cd091
  16. Apr 12, 2021
  17. Apr 08, 2021
  18. Apr 06, 2021
  19. Mar 30, 2021
  20. Mar 29, 2021
  21. Mar 28, 2021
  22. Mar 23, 2021
    • Walter Lozano's avatar
      Fix ci-license-scan · f73fe191
      Walter Lozano authored
      
      Under early testing of ci-license-scan with docker image apertis/v2022dev2
      the copyright.new file generated was missformated, putting the header Format
      in the last line instead of the first one.
      
      In order to fix the issue, force line buffering when the file is generated.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      f73fe191
  23. Mar 22, 2021
  24. Mar 17, 2021
  25. Mar 16, 2021
  26. Mar 15, 2021
Loading