1. 11 Aug, 2022 1 commit
  2. 10 Jan, 2022 1 commit
  3. 29 Dec, 2021 4 commits
    • 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: Ariel D'Alessandro's 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. 09 Nov, 2021 2 commits
    • 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. 17 Sep, 2021 1 commit
  6. 15 Sep, 2021 1 commit
  7. 24 Jun, 2021 3 commits
  8. 06 Oct, 2020 2 commits
  9. 21 Sep, 2020 7 commits
  10. 04 May, 2020 1 commit
  11. 23 Apr, 2020 1 commit
    • 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: Frederic Danis's avatarFrédéric Danis <frederic.danis@collabora.com>
      8ed63037
  12. 22 Apr, 2020 2 commits
  13. 20 Apr, 2020 1 commit
    • Frederic Danis's avatar
      Fix flatpak runtime upload · 1e39c8da
      Frederic Danis authored
      
      
      Embed runtime upload to `images.apertis.org` in `build-runtime` job
      instead of a separated job which consume runners and time.
      Main runtime is uploaded to `/srv/images/public/flatpak/mildenhall`
      MRs are uploaded to `/srv/images/test/flatpak/mildenhall/$CI_COMMIT_REF_SLUG`
      
      Signed-off-by: Frederic Danis's avatarFrédéric Danis <frederic.danis@collabora.com>
      1e39c8da
  14. 08 Apr, 2020 3 commits
  15. 07 Apr, 2020 2 commits
  16. 16 Jan, 2020 1 commit