Skip to content
Snippets Groups Projects
  1. Mar 26, 2024
  2. Mar 12, 2024
  3. Mar 05, 2024
  4. Mar 04, 2024
  5. Feb 29, 2024
    • Jani Nikula's avatar
      dim: add support for applying patches using b4 · 4dc7d0cc
      Jani Nikula authored
      Add 'b4-shazam-branch' and 'b4-shazam' subcommands to apply a patch
      series using b4 [1], fetching the patches from Lore. You can either
      specify the series using message-id on the command-line, or by piping a
      message in the series to the subcommand. Additional b4 command-line
      options may be specified as needed, for example to apply individual
      patches.
      
      b4 is a much more robust alternative to pretty much everything we do in
      dim_apply_branch() and apply_patch() functions, and automatically
      gathers reviews and acks from the list.
      
      Use the b4.trailers-ignore-from config to ignore trailers from CI and
      kernel build bot. b4 v0.13 or later is required to filter all trailers
      in messages from the mentioned addresses (for example Fixes:
      trailers). Otherwise b4 shazam picks up a lot of garbage trailers from
      CI mails.
      
      [1] https://b4.docs.kernel.org/en/latest/index.html
      
      
      
      v3:
      - Unconditionally require b3 v0.13 or later
      - Use --config option instead of env vars
      - Add DIM_B4 config option
      
      v2:
      - Use GIT_CONFIG_* to set b4.linkmask (Lucas)
      - Use GIT_CONFIG_* to set b4.trailers-ignore-from
      - Check for b4 command
      - Check b4 version for cover trailers
      - Use subcommand names b4-shazam and b4-shazam-branch
      
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      4dc7d0cc
  6. Feb 28, 2024
  7. Feb 27, 2024
    • Maxime Ripard's avatar
      dim: Handle drm.git move to Gitlab automatically · 9ab59fc4
      Maxime Ripard authored
      
      As part of the transition of DRM from cgit to Gitlab, we updated
      drm-rerere's nightly.conf file to reflect the new URL.
      
      However, dim updates drm first and drm-tip lasts, so if you update the
      git remote URL like we instructed before running dim update-branches (or
      any command that fetch all remotes), it will error out before it has the
      chance to retrieve the nightly.conf file.
      
      If the user doesn't update the git remote URL, then dim update-branch
      will run, fetch drm through the cgit repo, update nightly.conf. On the
      second run, it will detect that the URL doesn't match anymore, but since
      there's already a drm remote setup, it will fail to add the remote.
      
      So, in either case, dim's broken.
      
      Add a bit of logic that detects the drm remote URL and will update
      remote url if we're using our legacy URLs.
      
      Co-developed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: Maxime Ripard's avatarMaxime Ripard <mripard@kernel.org>
      9ab59fc4
    • Lucas De Marchi's avatar
      dim: make dry-run a bit more useful for pull requests · 88cd73ca
      Lucas De Marchi authored
      dim -d pull-request was failing with:
      
      	Using drm/drm-next as the upstream
      	../maintainer-tools/dim: line 2225: gitk: command not found
      	git tag -F- drm-xe-next-2024-02-27 drm-xe-next@{upstream}
      	git tag -a -f drm-xe-next-2024-02-27
      	error: src refspec drm-xe-next-2024-02-27 does not match any
      	error: failed to push some refs to 'ssh://gitlab.freedesktop.org/drm/xe/kernel.git'
      
      Make it a little bit more useful. Probably we shouldn't skip that much,
      but that can be left for later. Same command now shows:
      
      	Using drm/drm-next as the upstream
      	../maintainer-tools/dim: line 2229: gitk: command not found
      	git tag -F- drm-xe-next-2024-02-27 drm-xe-next@{upstream}
      	git tag -a -f drm-xe-next-2024-02-27
      	To ssh://gitlab.freedesktop.org/drm/xe/kernel.git
      
      
      	 * [new tag]                     b2121f2bd2232cd0556b2182078d159d81497885 -> drm-xe-next-2024-02-27
      	Skip.
      	neomutt -s [PULL] drm-xe-next -i /tmp/tmp.eu5PC10boN -c Jani Nikula <jani.nikula@linux.intel.com> -c Joonas Lahtinen <joonas.lahtinen@linux.intel.com> -c Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> -c Rodrigo Vivi <rodrigo.vivi@intel.com> -c Thomas Zimmermann <tzimmermann@suse.de> -c Maarten Lankhorst <maarten.lankhorst@linux.intel.com> -c Maxime Ripard <mripard@kernel.org> -c Thomas Hellström <thomas.hellstrom@linux.intel.com> -c Oded Gabbay <ogabbay@kernel.org> -c Lucas De Marchi <lucas.demarchi@intel.com> -c dri-devel@lists.freedesktop.org -c intel-gfx@lists.freedesktop.org -c intel-xe@lists.freedesktop.org -c dim-tools@lists.freedesktop.org Dave Airlie <airlied@gmail.com> Daniel Vetter <daniel.vetter@ffwll.ch>
      
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      88cd73ca
    • Lucas De Marchi's avatar
      dim: Pull requests to use https:// · b7cc9a0c
      Lucas De Marchi authored
      Not all repos have a git:// protocol enabled. Once upon a time the
      justification to use it was due to bad performance of the https backend.
      https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
      
       still
      marks it as "the best on performance", but with the Smart HTTP backend,
      the cons start to have a bigger role. Also worth noting that it's not
      available on Github and Gitlab anymore due to security issues.
      
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      b7cc9a0c
    • Maxime Ripard's avatar
      doc: Update DRM main repository · d0ddc5b3
      Maxime Ripard authored
      
      The main repository has been moved to Gitlab, so update the URL in the
      documentation.
      
      Signed-off-by: Maxime Ripard's avatarMaxime Ripard <mripard@kernel.org>
      d0ddc5b3
  8. Feb 26, 2024
  9. Feb 23, 2024
    • Lucas De Marchi's avatar
      Drop qf · 2dd5e541
      Lucas De Marchi authored
      
      This tool is not being used and not being maintained anymore. Remove it
      so we don't have to keep solving new issues shown by shellcheck like:
      
      	In qf line 81:
      		branch=${quilt_branch#$QUILT_PREFIX}
      				      ^-----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
      
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      2dd5e541
  10. Feb 01, 2024
  11. Jan 29, 2024
  12. Jan 26, 2024
  13. Jan 23, 2024
  14. Jan 11, 2024
  15. Jan 10, 2024
  16. Dec 29, 2023
  17. Nov 28, 2023
    • Jani Nikula's avatar
      dim: fix From: matching in apply patch · 6030b24c
      Jani Nikula authored
      
      I occasionally bounce patches to intel-gfx@ to get CI for patches that
      were only sent to dri-devel@ or were caught in the moderation
      queue. This results in a Resent-From: header being added.
      
      Applying such a patch leads to the From: match in apply_patch() to match
      Resent-From: rather than the actual From:. If whoever bounced the patch
      is also applying the patch, their Signed-off-by won't be automatically
      added.
      
      Match From: from the beginning of the line to fix this.
      
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      6030b24c
  18. Sep 05, 2023
  19. Jun 08, 2023
  20. May 22, 2023
Loading