Skip to content
Snippets Groups Projects
  1. Aug 08, 2022
  2. Jul 22, 2022
  3. Jul 18, 2022
  4. Jul 14, 2022
  5. Jun 30, 2022
    • Detlev Casanova's avatar
      Add CI jobs to updated the upstream kernel · 9573ec23
      Detlev Casanova authored
      
      The first CI job tries to do the rebase, then proceeds to create merge
      requests if all went well.
      
      In case there is an issue with the rebase, the first CI job will stop
      and give instructions on how to manually rebase the kernel.
      Once the developer is done, the pushed branch will be picked up by the
      second CI job to finish the work and create merge requests.
      
      Signed-off-by: default avatarDetlev Casanova <detlev.casanova@collabora.com>
      9573ec23
  6. Jun 20, 2022
  7. May 26, 2022
  8. May 17, 2022
  9. May 09, 2022
    • Emanuele Aina's avatar
      Always reset the git repostiory after adding gitattributes · eb79b4f9
      Emanuele Aina authored
      
      Commit 477e59b5 "Reset the git repostiory after adding gitattributes"
      ensured on the `pull-mirror` job that the checked out contents match
      the current gitattributes configuration.
      
      This extends such guarantee to all jobs, avoiding situations like:
      
      1. the upstream `.gitattributes` enables the `ident` filter on a file
      2. on checkout by the CI, `$Id$` placeholders are replaced
      3. we defuse the `.gitattributes`, but it is too late since the working
         copy is already dirty
      4. jobs like `pull-updates` fail due to the unexpected changes
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      eb79b4f9
  10. May 01, 2022
  11. Apr 30, 2022
  12. Apr 25, 2022
  13. Mar 29, 2022
  14. Mar 10, 2022
  15. Mar 09, 2022
  16. Feb 16, 2022
  17. Feb 09, 2022
  18. Feb 08, 2022
  19. Feb 07, 2022
    • Ryan Gonzalez's avatar
    • Ryan Gonzalez's avatar
      Use GitLab environments to clean up branched OBS projects · a93c70d4
      Ryan Gonzalez authored
      
      This will preserve the project until the corresponding branches are
      deleted or the MR is merged, as well as being more reliable in
      performing the cleanup tasks.
      
      Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
      a93c70d4
    • Ryan Gonzalez's avatar
      Properly fix backport MRs breaking release pipelines · 500eebbe
      Ryan Gonzalez authored and Emanuele Aina's avatar Emanuele Aina committed
      ci-package-builder's extensive use of `rules:` means that every push to
      an MR branch results in *two* pipelines: one outside the MR context
      (i.e. for the branch itself) and one in the MR's context:
      
      https://docs.gitlab.com/ee/ci/jobs/job_control.html#avoid-duplicate-pipelines
      
      
      
      In order to work around this, `run_on_mr_xor_branch_rule` is used, which
      will only run a pipeline iff either a) there is no MR, or b) it is
      running inside the MR context. That way, pipelines will run against
      plain branches normally, but once an MR is opened, only the MR pipelines
      will be run. (Running them in MR context is preferred because then we
      can use the target branch name to figure out what release is being
      targeted by the MR.)
      
      However, if:
      
      - An MR is merged against a release branch, e.g. `apertis/v2023dev1`
      - The release pipeline encounters an error, or it cannot be run yet due
        to CI load.
      - A new MR is opened to backport the changes, e.g. `apertis/v2023dev1`
        -> `apertis/v2022`.
      - The original release pipeline for `apertis/v2023dev1` is now run or
        re-run.
      
      Because an MR is open with `apertis/v2023dev1`,
      `run_on_mr_xor_branch_rule` will now prevent the release pipeline from
      running at all.
      
      !228 was intended to fix this, but instead it resulted in backport MRs
      uploading their CI results to the release repos (!231). Instead, we can
      just change `run_on_mr_xor_branch_rule` to exclude blocking release
      branches, so their pipelines can run normally.
      
      Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
      500eebbe
  20. Feb 05, 2022
    • Emanuele Aina's avatar
      Avoid mistakenly uploading to target projects from open MRs · 950071ff
      Emanuele Aina authored
      
      The current code falls back to `$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME`
      when figuring out if a branched OBS project should be the target of
      the upload:
      
          if [[ ${CI_COMMIT_BRANCH:-$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} != $OSNAME/* ]];
          then
            # upload to branched OBS project
          fi
      
      The big bug is that a MR for a backport going straight from
      `apertis/v2023dev1` to `apertis/v2022` will skip the body of that `if`
      and will actually upload to the production `apertis:v2022:*` OBS
      project as soon the MR is **created** rather than when it is merged.
      
      On a MR we should always upload to a branched project: to do that, we
      can rely on the fact that `$CI_COMMIT_BRANCH` is not set in merge
      request context and simply drop the fallback.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      950071ff
  21. Feb 04, 2022
  22. Feb 03, 2022
  23. Feb 02, 2022
    • Emanuele Aina's avatar
      Fix MRs for backports that fail to upload · f13b2a49
      Emanuele Aina authored
      
      When creating a backport MR, for instance from `apertis/v2023dev1` to
      `apertis/v2022`, the HEAD will have a release tag created when it landed
      on the apertis/v2023dev1` branch.
      
      The presence of the tag causes the `build-source` job to exit early, but
      that meant that no `_build` artifacts directory is populated.
      
      The `upload` job will not have anything to upload to OBS and will fail.
      
      Extract the tagged source from the `pristine-lfs-source` branch in the
      `build-source` job as well to have it ready for `upload`.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      f13b2a49
  24. Feb 01, 2022
  25. Jan 19, 2022
  26. Jan 14, 2022
  27. Dec 31, 2021
  28. Dec 28, 2021
Loading