1. 25 May, 2020 1 commit
  2. 20 May, 2020 3 commits
    • Michael Pyne's avatar
      git: Show warning at end of build if git-stash fails. · 87bcfe1f
      Michael Pyne authored
      If this all works this would allow us to migrate this functionality to
      improve how we handle git-stash as in issue #42.
      
      In my testing, it works at least. I'll show example output in the
      corresponding merge request for tracking.
      87bcfe1f
    • Michael Pyne's avatar
      module: Add ability to track messages to show user after build ends. · 7851924a
      Michael Pyne authored
      This is intended to support some of the git-stash improvement we want in
      issue #42 but it will obviously have wider application.
      
      The hard part is that in the normal mode of operations (asynchronous)
      the update process is off in a separate subprocess and will not have
      access to the ksb::Module that we would want to print the messages from
      at the end of the main process.
      
      As with the similar problems I've run into here, my solution is to pass
      the info over the IPC class. This will be easier in the make_it_mojo
      branch but on the other hand it will need implemented differently in
      that branch.
      7851924a
    • Michael Pyne's avatar
      2a2c08d5
  3. 18 May, 2020 1 commit
    • Johan Ouwerkerk's avatar
      Ignore `hasrepo` metadata field. · 631dbf74
      Johan Ouwerkerk authored
      This field is effectively obsolete, and sysadmin is looking to remove it.
      Previously there used to be metadata files on the 'group' level that had
      this flag disabled, but such files are now all gone. The sanity check
      never triggers for the metadata files anymore since the move to Gitlab.
      631dbf74
  4. 17 May, 2020 9 commits
    • Michael Pyne's avatar
      Add project logo. · b183195b
      Michael Pyne authored
      b183195b
    • Michael Pyne's avatar
      doc: Remove anongit references. · 48368983
      Michael Pyne authored
      48368983
    • Milian Wolff's avatar
      Use `git pull --rebase` instead of `git rebase` · 1b329567
      Milian Wolff authored
      My git version 2.26.2 returns an error code 1 and doesn't rebase
      in a fast-forward scenario. I have to admit that I'm surprised by
      this myself. But `git pull --rebase` does what we want, so apparently
      that should be used instead? Or is this some local configuration
      issue?
      
      When I run kdesrc-build without this patch I get:
      
      ```
              Updating sysadmin-repo-metadata using existing branch master
      log_command(): Module sysadmin-repo-metadata, Command: git checkout master
      # kdesrc-build running: 'git' 'checkout' 'master'
      # from directory: /home/milian/projects/kf5/src/sysadmin/repo-metadata
      Already on 'master'
      Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
        (use "git pull" to update your local branch)
      log_command(): Module sysadmin-repo-metadata, Command: git rebase origin/master
      # kdesrc-build running: 'git' 'rebase' 'origin/master'
      # from directory: /home/milian/projects/kf5/src/sysadmin/repo-metadata
      error: nothing to do
      Logfile for sysadmin-repo-metadata is git-rebase.log
              Unable to update the source code for sysadmin-repo-metadata
      ```
      
      Indeed, I can also easily reproduce this issue outside of kdesrc-build
      directly in my shell:
      
      ```
      $ git --version
      git version 2.26.2
      $ cd /home/milian/projects/kf5/src/sysadmin/repo-metadata
      $ git status
      On branch master
      Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
        (use "git pull" to update your local branch)
      
      nothing to commit, working tree clean
      $ git rebase origin/master
      error: nothing to do
      $ echo $?
      1
      ```
      
      A `git pull --rebase origin master` fast-forwards my local checkout
      as intended. This is what this patch does now too, thereby fixing all
      the errors/warnings in kdesrc-build (and properly updating my local
      checkouts again).
      1b329567
    • Michael Pyne's avatar
    • Michael Pyne's avatar
      git: Revert change to git-desired-protocol. · 52026a14
      Michael Pyne authored
      We *always* use HTTPS to fetch new objects from git.
      
      We *can support* setting the git "push URL" to HTTPS also, and some
      users will need this. But this complicates the existing practice of
      using git + SSH to push changes to the KDE git infrastructure, so revert
      this part of the change.
      52026a14
    • Johan Ouwerkerk's avatar
      Make sure to remove old pushInsteadOf mapping if git-desired-protocol changes. · 940f3355
      Johan Ouwerkerk authored
      Also: x-invent-push-urls is now the only way to go, the feature toggle is no longer useful.
      940f3355
    • Michael Pyne's avatar
      ipc: Fix handling of persistent option changes in a subprocess. · 76a8ee1b
      Michael Pyne authored
      This addresses the bug causing kdesrc-build to warn repeatedly about a
      git remote having moved (because it was comparing against a persistent
      option set the normal way).
      
      Unfortunately the persistent option update feature in the IPC code has
      probably never worked properly as far as I can tell, so this may also
      fix other minor bugs.
      
      What I'd like to do before merging this all is to find a way to
      integrate into the test suite somehow.
      76a8ee1b
    • Michael Pyne's avatar
      kde_projects: Locate KDE projects post-Gitlab migration. · ef25f683
      Michael Pyne authored
      * kde-build-metadata has moved, update our pre-baked module to request
        the right name.
      * Enable the invent.kde.org logic by default.
      * Use invent.kde.org instead of anongit.kde.org for kde: fetch URL
      
      kdesrc-build still makes a lot of complaints about having to move git
      remotes for some reason but at least I can make it through part of a
      build.
      ef25f683
    • Michael Pyne's avatar
      kde_projects: Follow symlinks to ensure metadata repo is read. · 947120fb
      Michael Pyne authored
      Into the migration to Gitlab, kdesrc-build was oddly failing to
      understand the KDE project database.
      
      Long story short, the sysadmins tried to help the various scripts by
      placing a symlink from the old module location to the new
      'invent-modules' in repo-metadata. However kdesrc-build's search logic
      didn't follow symlinks since Perl's File::Find doesn't do this by
      default.
      
      It's an easy option to add now though, so I've done that and tried to
      add some better logic checks / error messages for similar problems that
      might recur in the future.
      
      kdesrc-build still fails to build many modules though because the
      metadata key we're checking doesn't give the right path? I'll look into
      that more...
      947120fb
  5. 11 May, 2020 2 commits
  6. 10 May, 2020 1 commit
    • Michael Pyne's avatar
      ui: Make the summary output logdir clickable in most TTYs. · bec2c21c
      Michael Pyne authored
      It would be even easier for most users of our graphical desktop
      environment to look at log files if they could click on the log dir.
      
      By prefixing the log dir path with file://, now they can (in Konsole and
      I'm sure most others).
      
      I thought about implementing OSC8 support (TTY escape codes for
      hyperlinks) but we don't support that in Konsole and I'm not sure how
      many other TTYs are commonly used in Plasma.
      bec2c21c
  7. 09 May, 2020 1 commit
  8. 04 May, 2020 1 commit
  9. 03 May, 2020 6 commits
  10. 02 May, 2020 4 commits
  11. 27 Apr, 2020 1 commit
  12. 22 Apr, 2020 1 commit
  13. 21 Apr, 2020 1 commit
  14. 19 Apr, 2020 2 commits
  15. 06 Apr, 2020 2 commits
  16. 05 Apr, 2020 1 commit
  17. 04 Apr, 2020 1 commit
  18. 02 Apr, 2020 1 commit
  19. 27 Mar, 2020 1 commit