Skip to content
Snippets Groups Projects
  1. Jun 01, 2022
  2. May 19, 2022
  3. Mar 31, 2022
    • Ryan Gonzalez's avatar
      Install copyright_report files · cb5b8ea5
      Ryan Gonzalez authored
      Documentation files are excluded from installations made to the Docker
      images, with a few exceptions to this rule, including `copyright` files.
      This extends it to also include `copyright_report` files, as they are
      useful to have installed for the purpose of being able to examine
      dependencies' reports while building packages.
      
      As the files are all plain text and shorter than the corresponding
      `copyright` file (as they omit the full license text), the effect on the
      built image sizes should be negligible.
      
      https://phabricator.apertis.org/T8554
      
      
      
      Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
      cb5b8ea5
  4. Mar 11, 2022
  5. Jan 28, 2022
  6. Dec 31, 2021
  7. Dec 15, 2021
  8. Nov 24, 2021
  9. Nov 23, 2021
  10. Nov 22, 2021
  11. Nov 15, 2021
  12. Nov 14, 2021
  13. Oct 15, 2021
  14. Oct 11, 2021
  15. Oct 04, 2021
  16. Sep 15, 2021
  17. Aug 31, 2021
    • Walter Lozano's avatar
      Use simple yml style · f874bb69
      Walter Lozano authored and Emanuele Aina's avatar Emanuele Aina committed
      
      In order to avoid issues with scan-copyrights not dealing with !!bool in
      yaml files, switch to a simpler format.
      
      This kind of issue was seen in packages that ship their own configuration
      in d/fill.copyright.blanks.yml, and uses the skip (boolean) option,
      which triggers an error an prevents the pipeline to succeed.
      
      As the issue seems to be an upstream bug, as a workaround change the
      default_style used by yaml dumper from | to the default one, which
      does not add !!bool.
      
      Previously the default_style | was needed as scan-copyright used
      YAML::Tiny and it was not able to parse the files properly, however,
      after switching to YAML::XS this doesn't seem to be an issue any more,
      so default_style can be used with its default.
      
      Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
      f874bb69
  18. Aug 23, 2021
  19. Aug 18, 2021
  20. Jul 30, 2021
  21. Jul 26, 2021
    • Emanuele Aina's avatar
      pkg-merge-upstream-to-downstreams: Python 3.7 (v2021) compatibility · 00290d35
      Emanuele Aina authored
      
      Try to be compatible tiwh Python 3.7 as shipped in Buster so the tool
      can work on projects where the default branch points to v2021, either
      because it's been dropped from v2022 or because it's a downstream that
      has not started mirroring v2022 yet.
      
            File "/usr/bin/apertis-pkg-merge-upstream-to-downstreams", line 65, in ensure_downstream_branch
              project_id = urllib.parse.quote(url.path.strip("/").removesuffix(".git"), safe="")
          AttributeError: 'str' object has no attribute 'removesuffix'
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      00290d35
  22. Jul 22, 2021
  23. Jul 14, 2021
  24. Jul 13, 2021
    • Emanuele Aina's avatar
      pkg-merge-upstream-to-downstreams: Ensure the target branch exist · 86604333
      Emanuele Aina authored
      
      When pulling an update for a stable branch it should target a `-updates`
      or `-security` branch. However there's no guarantee that they exist, so
      the creaton of the merge may fail:
      
          remote:              WARNINGS: Error encountered with push options
          remote:       'merge_request.create' 'merge_request.remove_source_branch'
          remote:              'merge_request.target=apertis/v2021-security'
          remote:       'merge_request.title=Update from debian/buster-security for
          remote:     apertis/v2021-security': Branch apertis/v2021-security does not
          remote:                                  exist
      
      To avoid that, ensure to push the target branch before creating the MR.
      
      Unfortunately we can't simply use `git push` as the creation of
      protected branches is restricted to the Web UI and the API, so let's use
      the latter, even if it requires a bit of juggling.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      86604333
    • Emanuele Aina's avatar
      pkg-merge-upstream-to-downstreams: Flush before suprocesses · f863f4ae
      Emanuele Aina authored
      
      To ensure the correct ordering of the output, flush stdout before
      launching suprocesses.
      
      This prevents the output of `apertis-pkg-merge-upstream-to-downstreams`
      from being printed much after the output of the suprocess when not
      running on a tty, like when piped to `less` or when being run in the CI.
      While it would be normally expected that the output of the merge follows
      the `Attempt merging` message, in practice it would be displayed
      immediately as it came from a suprocess, while the output of the program
      would be buffered until much later.
      
      Add some flushes to correctly handover the output buffering.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      f863f4ae
  25. Jun 23, 2021
  26. Jun 18, 2021
  27. Jun 08, 2021
  28. Jun 07, 2021
Loading