Skip to content
Snippets Groups Projects
  1. Aug 11, 2022
  2. Jan 10, 2022
  3. Dec 29, 2021
    • Emanuele Aina's avatar
      Ensure commits descend from remote head and fix publishing · b581a785
      Emanuele Aina authored
      
      Publishing right now fails with:
      
          Updating runtime/org.apertis.mildenhall.Platform/x86_64/v2021 b03a4670776c73c72416be7d8009edc4af09999d43247b20fef823d9cf81b37b to b45aae6c96b1698fbd7a58839ee31b6b5a07cdae62f14cd56aa40b5c39a5f09a
          Traceback (most recent call last):
            File "/usr/bin/ostree-push", line 588, in <module>
              exit(push_main())
            File "/usr/bin/ostree-push", line 561, in push_main
              return pusher.run()
            File "/usr/bin/ostree-push", line 426, in run
              needed = self.needed_commits(revs[0], revs[1], commits)
            File "/usr/bin/ostree-push", line 361, in needed_commits
              'commit %s' %(remote, local))
          __main__.PushException: Remote commit b03a4670776c73c72416be7d8009edc4af09999d43247b20fef823d9cf81b37b not descendent of commit b45aae6c96b1698fbd7a58839ee31b6b5a07cdae62f14cd56aa40b5c39a5f09a
          Fix publishing by ensuring generated commits are child of the current
      
      This is because we currently commit to the OSTree repository *before*
      pulling the remote HEAD and as a result the generated commits have the
      null parent.
      
      Fix that by ensuring we pull the metadata of each current HEAD before
      generating the new commits with flatdeb.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      b581a785
    • Emanuele Aina's avatar
      build-base: Do not set the ostree repo, it is not used · 4ea812f3
      Emanuele Aina authored
      
      The base step generates a plain sysroot tarball and does not involve
      ostree at all. To save some confusion, do not pass the ostree
      repository path as an argument.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      4ea812f3
    • Ariel D'Alessandro's avatar
      ostree-prepare-local-repo: Don't mirror when pulling remote repo · c25612fe
      Ariel D'Alessandro authored and Emanuele Aina's avatar Emanuele Aina committed
      
      In some cases, pulling a remote repo with --mirror option is not
      creating refs properly, so the GitLab CI pipeline fails when the script
      tries to reference the target branch.
      
      In the past, before switching to GitLab CI, the local ostree repo was
      pushed to remote using rsync. This required a complete mirror of the
      remote repo to be pushed, so the initial pull was run with --mirror
      option enabled.
      
      There's no need to pull mirroring the complete remote repo as the GitLab
      CI pipeline is now ensuring the remote repo is initialized before
      pushing the new commit/branch, i.e. running:
      
        * ssh ${upload_host} ostree init ...
        * ostree-push ...
      
      Signed-off-by: default avatarAriel D'Alessandro <ariel.dalessandro@collabora.com>
      c25612fe
    • Emanuele Aina's avatar
      ostree-prepare-local-repo: Fix checkout due to a typo · 54c442a8
      Emanuele Aina authored
      
      The checkout of the remote commits fails with:
      
          error: opening repo: opendir(/builds/infrastructure/apertis-flatdeb-mildenhall/repo): No such file or directory
          No remote branch runtime/org.apertis.mildenhall.Platform/x86_64/v2021 found
      
      Fix the typo that caused the use of a literal `repo` instead of the
      `$repo` variable.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      54c442a8
  4. Nov 09, 2021
    • Emanuele Aina's avatar
      Expire all artifacts in 1 day · 17138576
      Emanuele Aina authored
      
      The artifacts here are pretty big and they get pushed to the public
      publishing website anyway, there's no need to keep them around for long.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      17138576
    • Emanuele Aina's avatar
      Drop automatic release detection · 92eda80c
      Emanuele Aina authored
      
      The detection of the target release is quite broken:
      
      1. `APERTIS_RELEASE` is set to v2021 as a CI variable
      2. `APERTIS_RELEASE` is blindly overridden by trying to derive it
         from `$CI_COMMIT_BRANCH`
      3. if autodetection fails, for instance because a wip branch does not
         contain the release id in its name, APERTIS_RELEASE is left empty
      4. if APERTIS_RELEASE is empty it defaults to `$APERTIS_RELEASE_DEFAULT`
         but the latter is not set anywhere so APERTIS_RELEASE will remain
         emtpy
      
      Drop the autodetection stuff and rely on the already hardcoded release
      identifier. We're not going to update this for newer releases anyway,
      since Mildenhall has been dropped in v2022.
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      92eda80c
  5. Sep 17, 2021
  6. Sep 15, 2021
  7. Jun 24, 2021
  8. Oct 06, 2020
  9. Sep 21, 2020
  10. May 04, 2020
  11. Apr 23, 2020
    • Frederic Danis's avatar
      Fix upload · 8ed63037
      Frederic Danis authored
      
      Current app build failed with following error:
      ```
      $ rsync -e "ssh -oStrictHostKeyChecking=no -i $ARCHIVE_SECRET_FILE" -aP ~/.cache/flatdeb/ostree-repo/. "$upload_host:$UPLOAD_ROOT"
      sending incremental file list
      rsync: change_dir "/root/.cache/flatdeb/ostree-repo" failed: No such file or directory (2)
      ```
      This commit create a temporary repo directory used by `flatpak-builder`.
      Set correct rights so the repository is accessible after upload.
      
      Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
      8ed63037
  12. Apr 22, 2020
  13. Apr 20, 2020
  14. Apr 08, 2020
  15. Apr 07, 2020
  16. Jan 16, 2020
Loading