From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: [RFE] Migration to gitlab Date: Fri, 10 May 2019 11:26:55 -0400 Message-ID: <22f3aceb-e562-b1ee-03da-90d29b007b46@gmail.com> References: <1552789070.5272.1@yandex.ru> <87imwhmmt8.fsf@gmail.com> <87y347g1l3.fsf@iotcl.com> <9ac21e82-8e47-f9b5-f88d-23c0c56946d1@yandex.ru> <87pnpc1lby.fsf@iotcl.com> <83zhoezdqc.fsf@gnu.org> <87imuivfcr.fsf@iotcl.com> <83k1eyfxls.fsf@gnu.org> <3b8e2195-07c0-a240-6164-8d34bcca344f@yandex.ru> <83ftpmfp0y.fsf@gnu.org> <838svefl3p.fsf@gnu.org> <0C7B0831-187D-413C-B4F6-5AB542A7AA1A@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="249097"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 Cc: toon@iotcl.com, Dmitry Gutov , monnier@iro.umontreal.ca, agrambot@gmail.com, emacs-devel@gnu.org To: =?UTF-8?B?7KGw7ISx67mI?= , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 10 17:40:37 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP7dS-0012XI-5O for ged-emacs-devel@m.gmane.org; Fri, 10 May 2019 17:40:34 +0200 Original-Received: from localhost ([127.0.0.1]:45288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP7dQ-0001ng-Ts for ged-emacs-devel@m.gmane.org; Fri, 10 May 2019 11:40:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP7QL-00060o-98 for emacs-devel@gnu.org; Fri, 10 May 2019 11:27:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP7QK-0005we-0f for emacs-devel@gnu.org; Fri, 10 May 2019 11:27:01 -0400 Original-Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:36237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hP7QJ-0005vc-QR; Fri, 10 May 2019 11:26:59 -0400 Original-Received: by mail-qk1-x72d.google.com with SMTP id c14so3912676qke.3; Fri, 10 May 2019 08:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=e/Iydd6s2SvCkZxBVN4Uyhs9+ZqD4eja/XcpeG9OwHs=; b=jh97M+t8vCwvl6+gWFJfz1UhSBzGkCnonif1s5jSVRX7+1laJlqR16SVE7fEmYLAak gdKvpnRg4hEyqlwi+V9KD1G/6cdu2vKmq8pC7ENQXiiz/d4Ru8D9RNe650oBvhTnF3ot H1VRf6JrDnW4UpIsSANb5GsPSHL2uzhUVqGAyWNCcYBFsp5JFeqpmfvcKE/gzAvrETig IaCGxrAVYJVNYOg4evnihoWplkIJWJSFTH7vVI7vvbb/VmkhM/q/RjiJiUd7Tmex1DnC dKNnE4CsrWqG3VDeZDtiOxAlNjW4H0lxZZmy/De3j/XrhvRflIp6bhtmcuiK7npA4vDK bTnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=e/Iydd6s2SvCkZxBVN4Uyhs9+ZqD4eja/XcpeG9OwHs=; b=gWpS22mQUOaT05CaLMPHUOWDmjgjbvfZ0k+8/CT5lYyrqIGjl07Zd1BsO0Ik+C5ZQ8 7vKsedxYrX1l4YuZNK20ld1qUv9YiUwg6SE5eOakTRNNM6FnRDxdaH28VkQDHoqUctIs Nt8xkpog36s6bNF9TNwtLljVTf5uYhSxvW7srD5y8Qoa6gDEDUrnk7F2pl2xt3B2qIsO w6C1BBb8QRdjIuhDiNHZU4QI1hRNMQl28HxoxKmZnWX1yU17Ku7PhUT16e9e/poqAxC+ RJ98zhMPkV9daJvgW8dXgAh64G2KkN82CpJTASxvwap+33MwRos1FGaLI40bSEn3lwoY SRMg== X-Gm-Message-State: APjAAAURZvKektYjpYVv2hChiIe4WchffkTC3S9BZinwBrYbXnheesdC mthLRLvj9AwKoLpptRb+6II= X-Google-Smtp-Source: APXvYqxsxKPcADPJVTJEWDL+PRsr+Y2tPqi9686uqrhpZEsm1388JTXZ4a9L12zjDJyHR5B4sT9JSQ== X-Received: by 2002:a37:5185:: with SMTP id f127mr9397169qkb.178.1557502018210; Fri, 10 May 2019 08:26:58 -0700 (PDT) Original-Received: from [128.30.93.236] (30-93-236.dynamic.csail.mit.edu. [128.30.93.236]) by smtp.googlemail.com with ESMTPSA id w23sm2480611qki.40.2019.05.10.08.26.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 08:26:56 -0700 (PDT) In-Reply-To: <0C7B0831-187D-413C-B4F6-5AB542A7AA1A@icloud.com> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236386 Archived-At: On 2019-05-10 11:00, 조성빈 wrote: >> github.com/magit/forge Forge is great, but we should evaluate it carefully before deciding that we want to depend on it. Concretely, about a week ago, Eli wrote and asked how one could browse Gitlab issues from Emacs, e.g. the issue that Toon had created on the Gitlab repo about Emacs' needs. I set out to write detailed instructions, but gave up halfway, because forge didn't work for that use case. Indeed, the way forge deals with issues and merge requests is to download the full issue database of the project. For Gitlab, with 27000 merge requests and 50000 issues, the software spent multiple of minutes attempting to download this humongous database, and then gave up and threw an exception. Accordingly, I gave up and didn't post my instructions (Eli, they are below, if you are curious to try them on a smaller repository; forge is indeed great when it can handle the repo size). I do not know whether Emacs' issue database is large enough to cause issues. Additionally, I understand that thigs may improve in the future, because forge currently uses an inefficient communication protocol to talk to Gitlab (but there are plans to support a better protocol in Gitlab, I think). I do not know whether things will work better once Gitlab implements a better protocol (I hope they will!). In the meantime, we should be careful about assuming that forge will solve the problem of browsing Gitlab issues from Emacs. Below are the instructions I had started to write. Clément. On 2019-04-30 11:37, Eli Zaretskii wrote: >> From: Dmitry Gutov >> Date: Tue, 30 Apr 2019 00:35:11 +0300 >> Cc: emacs-devel >> >> Speaking of GitLab clients, here's one: >> https://github.com/nlamirault/emacs-gitlab >> >> I haven't tried it myself yet, but it seems to include commenting >> functionality (gitlab-notes.el). > > Does anyone know how to use that to browse some GitLab issue, e.g. the > one posted by Toon? I tried to do that, but got only error messages. > I suspect that I didn't understand how to use the package. I haven't tried this particular package, but here is how to do it using magit and forge: * Gitlab authentication: * Browse to https://gitlab.com/profile/personal_access_tokens ; check the 'api' box and give a name to the token (e.g. Emacs Forge) ; click 'Create personal access token' * Copy the resulting token into ~/.authinfo, on a new line like the following (make sure there is a final newline at the end of the file): machine gitlab.com/api/v4 login YOUR_GITLAB_USERNAME^forge password YOUR_TOKEN * Set your username: git config gitlab.user YOUR_GITLAB_USERNAME * Clone the gitlab-ce repository: git clone https://gitlab.com/gitlab-org/gitlab-ce.git/ --depth 1 SOMEWHERE_CONVENIENT * Emacs setup: * Add MELPA to your package repositories: (add-to-list 'package-archives (cons "melpa" "https://melpa.org/packages/") t) * M-x package-list-packages; install 'magit' and 'forge' * C-u M-x magit-status; type the directory (SOMEWHERE_CONVENIENT) in which you cloned the repository above * M-: (require 'forge); then press f y (This retrieves the full collection of merge requests and bug reports for that repository; it fails, because gitlab-ce has 50000 issues and 27000 merge requests). * Once this completes, you have access in the `magit' buffer to a list of issues and merge requests; you press RET on any of them to view the discussion.