Re: [Tools-discuss] Standalone iddiff?

Robert Sparks <rjsparks@nostrum.com> Mon, 04 March 2024 17:43 UTC

Return-Path: <rjsparks@nostrum.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 08E51C151522 for <tools-discuss@ietfa.amsl.com>; Mon, 4 Mar 2024 09:43:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.086
X-Spam-Level:
X-Spam-Status: No, score=-7.086 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nostrum.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kzLGffiBwUE6 for <tools-discuss@ietfa.amsl.com>; Mon, 4 Mar 2024 09:43:53 -0800 (PST)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5BD93C151080 for <tools-discuss@ietf.org>; Mon, 4 Mar 2024 09:43:53 -0800 (PST)
Received: from [192.168.1.102] ([47.186.48.51]) (authenticated bits=0) by nostrum.com (8.18.1/8.18.1) with ESMTPSA id 424HhnjZ012207 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for <tools-discuss@ietf.org>; Mon, 4 Mar 2024 11:43:52 -0600 (CST) (envelope-from rjsparks@nostrum.com)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nostrum.com; s=default; t=1709574232; bh=1ZPTlvrTu4Nx1nlEn/z1wqwoPZchN9gXyOFUNJ+w5OA=; h=Date:Subject:To:References:From:In-Reply-To; b=D/RmhtHJRlBSP/8v3FxOlWkKwU0iOQwRyGbMws0VUFt75OA6t3ZQhmeChJ0QJEeYi 6NN9GpYgtFVHscm4laTTHKMBX0/oLOkYrU1WgZ5ESbSfPf3n7MFQRatDS8JuGxuVj3 AgClWxU8x7fxxzS9GkLvrHfhBYTaeEGUYUTJbff0=
X-Authentication-Warning: raven.nostrum.com: Host [47.186.48.51] claimed to be [192.168.1.102]
Message-ID: <b5d5a892-433c-44a4-9ab2-c77c11e2d8ab@nostrum.com>
Date: Mon, 04 Mar 2024 11:43:44 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: tools-discuss@ietf.org
References: <FEA0AADB-89C3-4B5F-9470-A6579D9A4680@proper.com> <87r0gqkkfn.wl-morrowc@ops-netman.net> <87plwakk9m.wl-morrowc@ops-netman.net>
From: Robert Sparks <rjsparks@nostrum.com>
Autocrypt: addr=rjsparks@nostrum.com; keydata= xsDNBFx4PQwBDADIIJqFKIeYNmVR3iH8YnNqwApV+ci83VqFaPg0UXZAZ1utH/2O2LOLJKmV Ol11+lOSfH4OJgpARt37PWbqfG2TzzGfEucRBPMAV8TEDmzKL+7/OUMLEoPeexgxz6ADxK2Q ACKKzHhF30y4fx2fn9rYZrCvYHV9HDKcfFotNLna0U6P6wu70L0mT2hcjQgZ7+8HSZCpK2XG PTya1mEiMklH6+UHfcTLoAxd3chQiseRi19/TQZZCD3LuuaGFWyTIeF9Z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14251nkmh5tmU2sQqCk+g9nykcE/NJft/zFkeb HHCKAosK6glO+W0YPHc/k7nXt/fLz7dMRpFpmqFXWjeN2VtwKr9znMg9+iX6XfgAJPMdDNH8 fn30Cp5TIsn5WCI70+JztgvfjFhD15Eb3rtDdOfOydjGCV2ZVxfM8ECmc8Z3DrThyiC2M3uo 2Y50rs6MH+TmVCtpHkISnH7B+80Vy2SC60K9l2xgCaezN1SlkQy3ZpprzcDrNTI8FcJa/UUM ayMGvSDGEGuHZRaNUyXP3jQ8oss+067axmNr5vgjpf01kmE1RJtiGEDWmCr8u1SbVQjdax6C pDqq3RKoX2ZVGLtkdDYZbsqSq4TgmFukoijWRbLxsFBdeEgruTViWRw4PKZav0piLxrhHUGI m6F6JFngapUAEQEAAcLA/AQYAQgAJhYhBBjcsHRgwh1GAcFjd24qald1+RMYBQJl4Q52AhsM BQkNK5jUAAoJEG4qald1+RMYaCML/jp+3W9OedMRVk5XQ3Urxu7g09qaeAfBAArLlE7F13Xt WuGUN7JwZ8hZt8Rsx1+Uz/Zq2TIPjl8PmgIqCSkuvZrxacr+drYARtO00Af71qHVoh4gZTae iOwEuOGhhtCVI3vvKLMDv1ex0scvD4rJTsIk/zqEDCJNDVOf09Szj0CW0vJOYxrIV0sG/UoM 7Ui5/eB4tlN5AFIXuTJzo6BzaUAJVut74Ss2i93qwtwjGw44iEqPVhqKMCDYuB9+bm13ft+H Vr7viRZobd+60NTWrfZhkpmzhb4Qiib9qXhrUoa2EXqVOIy+LMQoiwjF9/iK+5FSA18c52FP ODkDgkica826W9AnBasS6gXQr0bO1BCJu84Fp2RQcjB4IFP+sKVoN3EZTByyUKK4NnSLF3lJ /G+vQhisnuJS+e+emZ8UxZBOK8upAhrhHJj0Wju2W0uTQTxlBME0/uNsvA/KaudLNhlQiUYN 7Fl3rswvQk/iD+utnQdWJbRgIsqesNXbQCOimQ==
In-Reply-To: <87plwakk9m.wl-morrowc@ops-netman.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/WcPPk6POj_xZPhyYt-w0Y8-4_20>
Subject: Re: [Tools-discuss] Standalone iddiff?
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Mar 2024 17:43:57 -0000

At the moment, iddiff on author-tools is running 
https://github.com/ietf-tools/rfcdiff/ underneath.

There is an alternate implementation that is intended to replace 
rfcdiff, but it's not yet covering all the corners that the older 
rfcdiff does.

RjS

On 3/4/24 10:57 AM, Chris Morrow wrote:
> On Mon, 04 Mar 2024 16:53:32 +0000,
> Chris Morrow <morrowc=40ops-netman.net@dmarc.ietf.org> wrote:
>> On Mon, 04 Mar 2024 16:33:47 +0000,
>> Paul Hoffman <phoffman@proper.com> wrote:
>>> Greetings. I see https://author-tools.ietf.org/iddiff, but I don't
>>> see a way to run it from a CLI on my laptop. Is the source easily
>>> available? I looked at https://github.com/ietf-tools/author-tools,
>>> but didn't see diffing.
>> quickly searching in the repo got me some javascript/stuff that looks
>> like it wants to eventually run an /api/iddiff api request...
>>
>> That's this:
>>
>>    https://github.com/ietf-tools/author-tools/blob/eb8fbbaf9b14cf59fd34ede21b9d324d5fb322c8/at/api.py#L282
>>
>> I think... that seems to do a bunch of quality checking on inputs then use this(get_id_diff):
>>
>>    https://github.com/ietf-tools/author-tools/blob/eb8fbbaf9b14cf59fd34ede21b9d324d5fb322c8/at/api.py#L10
>>
>> to do the meat of the matters. The source for that is:
>>
>>    https://github.com/ietf-tools/author-tools/blob/eb8fbbaf9b14cf59fd34ede21b9d324d5fb322c8/at/utils/iddiff.py#L16
>>
>> I imagine you could pull out enough of the guts there to build a simple cli tool.
> Err, so... that really just shells out to run some cli tool, it ALSO has this wierdness:
>
> https://github.com/ietf-tools/author-tools/blob/eb8fbbaf9b14cf59fd34ede21b9d324d5fb322c8/at/utils/iddiff.py#L48-L56
>
> which is essentially:
>    "Do the shell command, if that times out, do it again recursively"
>    (note there are no limitations on that recursion, yikes!)
>
> ___________________________________________________________
> Tools-discuss mailing list - Tools-discuss@ietf.org - https://www.ietf.org/mailman/listinfo/tools-discuss