[yang-tooling] Re: file name conventions for sid-file-version

Andy Bierman <andy@yumaworks.com> Sat, 07 February 2026 19:08 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: yang-tooling@mail2.ietf.org
Delivered-To: yang-tooling@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 2DD1AB366E58 for <yang-tooling@mail2.ietf.org>; Sat, 7 Feb 2026 11:08:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wq2IVXtpVLCE for <yang-tooling@mail2.ietf.org>; Sat, 7 Feb 2026 11:08:01 -0800 (PST)
Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 925A2B366E4E for <yang-tooling@ietf.org>; Sat, 7 Feb 2026 11:08:01 -0800 (PST)
Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-59ddb7189f5so330316e87.0 for <yang-tooling@ietf.org>; Sat, 07 Feb 2026 11:08:01 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1770491280; cv=none; d=google.com; s=arc-20240605; b=FYq/BgMNIAuiVDrcqT6Ov5LJg/ja5D93r1SGTlL/YsE+n2l3Ojm8+SsyEX87Bu9+2A VS1aouYzkw8bzg7V7/EXyFnZgE/DnZFu+z9AXRdRaFZi+8C7Z1fzXRuV9vYi90zjSCyg uPanWgPTO6/6GiQivEOVBnkTNkpuwsJaX7v4dolQBQWFztJjBZtLufV/ggbgfktg8SGz 2vv0cc9gW1Bvez/gz5/Uew+IDO25RpV3+agR6nIKBflSX1TeNk4eeffrK5423OxmbqII QUhBmhmMBHHBIk2QS0hk4wSbmXvCwqycnM0upt/8W7eZ2Qxo9wL3obzCclKYZoJFhjqz 682Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/NzfVlkVQ8kItEcCys6jCtuHeZudkDC2jMFMsC0BYGU=; fh=v6oPrKHPbLqVgIAeU0ozu+T6gfArGFUbATVdtgSwIxA=; b=WcCVKNSMMInB2XTUI5Tdtg0JQLJzoWJemRxyeAw3ixZtszvAixNUsGgN3lwBJXc1Oq DcjWXWsPELR/HtJq37IiZdLPpAMTEc1BSFoLjhjyF31Qh56HM3qCOKQC9NUSEjo4Hmm6 X0lVuV5I+qTDs8SEoHh2BtBg/rJYRPeHrN+ygObz6flrTpc/c9MuVB8yXDhTfHwWNpSu jQ6jMPw1iOscCdKqXSIrENIdEFmyGtg8o+sxiXATUw+egIR2Rcz3uJElUN8w1xdPpNMX 3I9U+fbii4rqER+5KJ1hkU0v3AguvwQxOGcRXYTX9Wd/ASrGnWbmfcz94IyyrzCUdnCi NmZw==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1770491280; x=1771096080; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/NzfVlkVQ8kItEcCys6jCtuHeZudkDC2jMFMsC0BYGU=; b=TciUnm9A6oGjVhVj9HsikGJsZGVm1D35Aml94vq6DAU22FP/ZPDx1euZ+uxrmWY8Ho 5bWR097eSOXAf3zcFXWva3+6AMpuhFtI7pPODP4LnEHqxj4JV5lmbFV3i70Zt3AGxndD 13at307Mh9v7iM8kR/Ph59KqdJy+v9tYk3mfQVjlApCzB+zfHpgRR9ntDybl6G4Qtxaf YG3VMbDxY1KU4WvaxoQuQRh80AosWZVy7StFGfJAUz8Y3k7bQGKdh+I2SzMXwZ2rfp/K zhmz8Tu4Gzh4m8688NkMgVWw7EoZwxN5URYVJeprlCpFV1Y/gf4yeCrMs9OT7xZGEcsR S5RQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770491280; x=1771096080; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/NzfVlkVQ8kItEcCys6jCtuHeZudkDC2jMFMsC0BYGU=; b=HmJ3+kvjxEU8LIwECfC86sm/hqorqZfFiYXcufcMn8XQAVifWE9KzGe9uug61ZvQzq Ur696/PTY+foJcbfjIrflyxwi0DXShFxE7wSdcILN5MzZIBWciD1RVDMn2XQ1LsiFkuR iB6c00c84WSMNwLmELmx6Sa6HNJUgkeAmN/BjmFFnZirEwXRyu0b25bEQq6HYz77QW0L FQoh615+7pFyVUXLUmWSLub3ahC6KXgOIf1Dis5DXxj6B++hgSyb2/rQKmK3MsGCx6Os fMc2UI9xrVhDfCGFt0On4JPM05IzJfX1Y+PuCL5mbAdyKhQzdkNF4CE0FAUA8+MG0kIf mxXg==
X-Forwarded-Encrypted: i=1; AJvYcCUzhxuZLmOXNdA+d7/xY/e8pk1j+X0N/0Su6SpWrqcJSAkp8hQ/B2iixtKw/5+5xfUiR0NXQFPySvgT5tw=@ietf.org
X-Gm-Message-State: AOJu0Ywmsoy0FwsQ9EdmJ3fuWRXh3gktfxxjxWHyM9ngJqN80wepKOvj UzKmxowMCdMcFDHCmQ5YS+F0ECqDT5AH/QAWigHJBxh7G+tN0iEVYS/5xdaUPz9DE2OTCJNlnOW Sv6v1Z8kaw57z8FYtQ3bmdanVHbg70Dic9nuzSI6XHQ==
X-Gm-Gg: AZuq6aJxXCqMxoOKS7XpmmNy0yaBnwy7vRFLl4UDzaf8kiRiT1JJWD7zkZJhCNiPDCC EQaCi/5bMlQ5X4YtFk1VFeQbd2/C3vXIW7JffHwuar4HG49LSZqUT9IOOBVt3iTFXMz1hrjkC3d IPO36YFz0JPJXz02bVlv4NW6YVyU34VzOgK9cBPL3FRgOeKJgC+XjDYeu4mV3HaXgCYJRjVRgxk 5oCmSFC2ksYUbMBJf8UN/VmaWXC7POzbmCSsIoASpHWq1JdTXRl7sfvGRXJ1oMp6ZfMk5cD2cgy 3bL6pdDxeIU=
X-Received: by 2002:a05:651c:31c6:b0:378:f0d6:8fb1 with SMTP id 38308e7fff4ca-386b51ac230mr11104611fa.5.1770491280168; Sat, 07 Feb 2026 11:08:00 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHR+XGn-fbMPJ=p1KtJ=GftBC-Jxz4eDm5Os3ZZ2J_5GdQ@mail.gmail.com> <1517396.1770457190@dyas> <CABCOCHR-gVQ3s89FZL8hfOj3Xyr+czWY19v4_BLscZOYqAZr2w@mail.gmail.com> <8AFCB26A-3808-4905-95D8-F3533AD40C47@tzi.org> <CABCOCHTDezF7XPvdzd7s4sDZGraALXdup9r+NvSAr3hBUyHVCQ@mail.gmail.com>
In-Reply-To: <CABCOCHTDezF7XPvdzd7s4sDZGraALXdup9r+NvSAr3hBUyHVCQ@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Sat, 07 Feb 2026 11:07:48 -0800
X-Gm-Features: AZwV_Qi4H9baBH4tO95zrcho8n9WDqApwMkpsdeOZ755zmVBjZXT0_HSYVgiMjc
Message-ID: <CABCOCHQBCx7aOfw2k7D7Nvvx_Fd3-U66UohS2YJhBBzt6ENPHg@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="000000000000d523d1064a409fa6"
Message-ID-Hash: VWWESZXGZU6VKV6UTRPX6PFKHEHQ4I5R
X-Message-ID-Hash: VWWESZXGZU6VKV6UTRPX6PFKHEHQ4I5R
X-MailFrom: andy@yumaworks.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Michael Richardson <mcr+ietf@sandelman.ca>, "yang-tooling@ietf.org" <yang-tooling@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [yang-tooling] Re: file name conventions for sid-file-version
List-Id: "Contributing to and tracking the progress of YANG tooling, as it concerns IETF work that uses YANG." <yang-tooling.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-tooling/wC7JLv3_CTm_Y-YR8ix8zA-j64w>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-tooling>
List-Help: <mailto:yang-tooling-request@ietf.org?subject=help>
List-Owner: <mailto:yang-tooling-owner@ietf.org>
List-Post: <mailto:yang-tooling@ietf.org>
List-Subscribe: <mailto:yang-tooling-join@ietf.org>
List-Unsubscribe: <mailto:yang-tooling-leave@ietf.org>

.....

> In the real world YANG modules are not nearly as global as the IETF
> imagines.
>

Actually the IETF is aware now, and the YANG Semver work deals with
multiple release trains
and non-backward compatible changes.

But adding nodes to a grouping is a normal BC change.
Maybe there should be YANG guideline not to do this for exported groupings,
but that does not really solve anything.

I think the megarange tool needs to generate the new SID file with the
current module set
even if the revision is the same as the last SID file.
Any differences and the sid-file-version needs to increment.

A simple hack I thought of -- have the tooling generate warnings to update
the revision date
on the 'top' module (or even generate the new YANG file).
Avoid the use of sid-file-version whenever possible.

It is more than confusing that the contents of foo@some-date depend on the
date you compile it, not the
revision date.  It is critical for SID files.

The same (modname, revision-date) does not always resolve to the same
> contents.
> These systems rely on <get-schema> or copying and altering the YANG
> modules as needed.
>
>
> Grüße, Carsten
>>
>>
> Andy
>
>


Andy