Re: [netmod] optional char in yang-semver

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Tue, 09 June 2020 14:16 UTC

Return-Path: <jason.sterne@nokia.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 41E6A3A00B3 for <netmod@ietfa.amsl.com>; Tue, 9 Jun 2020 07:16:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XPMy03C5HL7L for <netmod@ietfa.amsl.com>; Tue, 9 Jun 2020 07:16:54 -0700 (PDT)
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770122.outbound.protection.outlook.com [40.107.77.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EEAAE3A00C0 for <netmod@ietf.org>; Tue, 9 Jun 2020 07:16:53 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bQO9xVA/gz705C6ksR56YSmv+pihXrliznLbFQcGSykIHF6vrhHL6jcCKvcMyoeBZZ3Ie0rTNeUCDsEMEbLAOBRlVU1atkfUf0DToePcCbScAT6Xs1PCk21q98mKvw5H2ykAQLCidK4L6aaNiunwVZma7+ITVhwIZRnJD5GYPy11/0KT+cZjyeP2TpA6agDVsTaysDW+Tx2Xao2zP2G3kUvcAAKW0EnQgYreJP6cwiwl14liGmwD8I89XSltFcS76yXErYrkQL7HsDVjK86MWSRSd6A//bvYLUodYnbJ4E1GaLngDaTCh9ijUfxsC8EXtNCmvSnt8MMQY1wzxWLdiw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M6a2qGj4OXXOjJ0Vp6XQr5Eq6cxC1jUPx9J2Xa+RmQI=; b=EZVxA3MqA95dXby4UlGCpc8jIyf93vFoVMjmoD9kj/Ej7oengoNIEehBfN1/+w3xIl8I9f6NS/uNN0GYnt0NfPk3zktLrPq2h4PLo55hzXxkwpZfJbHXmLOXrBKiR8ZTOQ7gVvxbjSKgVs1srKC4OVBYMUK82b9CGYUSFy2Xc0VeloJPhLssZmXwHYTCmMYVOT6laDHN4GZl83X7X7CXhop2fTHhtEPf6McmILLtXby8mp0bB5v3ijPC3sFewiTBVVpSk6PFwvMagLn8Lp3Xcs+ShMzYGWN7INnnpKl7q2og+TvRnjAL4LEt6dkzeVAfEhPy39e+dMBkp5OsIrxLTQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M6a2qGj4OXXOjJ0Vp6XQr5Eq6cxC1jUPx9J2Xa+RmQI=; b=W8AB8z2PDLxBs+SGL5fGSLYn88frDGhSHA6cMoOziIJIKFzO3rdrAvrgLlcYnz0o5TdgajdNVj3LcZz/eEtWEeaH3WlJfUV3VHFcX5+8M/V0s8SPHgH0TPryZOYeym7VmE1D/cmzhh0WcWOOvSDjy9FMWpCZuKdfCdYZz273e2k=
Received: from DM5PR08MB2633.namprd08.prod.outlook.com (2603:10b6:3:ca::21) by DM5PR08MB2505.namprd08.prod.outlook.com (2603:10b6:3:c8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Tue, 9 Jun 2020 14:16:52 +0000
Received: from DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::b02f:de62:22d1:444f]) by DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::b02f:de62:22d1:444f%8]) with mapi id 15.20.3066.023; Tue, 9 Jun 2020 14:16:52 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: optional char in yang-semver
Thread-Index: AdY9n+Rs2WWdORvzS7OmQRMQtGa1mAAx4CdA
Date: Tue, 09 Jun 2020 14:16:52 +0000
Message-ID: <DM5PR08MB2633CC86ABA634A8E62C5E489B820@DM5PR08MB2633.namprd08.prod.outlook.com>
References: <DM5PR08MB26339E2FB657BA85EB499FFB9B850@DM5PR08MB2633.namprd08.prod.outlook.com>
In-Reply-To: <DM5PR08MB26339E2FB657BA85EB499FFB9B850@DM5PR08MB2633.namprd08.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [2607:fea8:e31f:da06:b8d6:91c3:ae2c:b024]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: e80eb96d-4344-4114-c66d-08d80c7fc1bc
x-ms-traffictypediagnostic: DM5PR08MB2505:
x-microsoft-antispam-prvs: <DM5PR08MB25050E28A63115077E7E9A7C9B820@DM5PR08MB2505.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 042957ACD7
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: NAl1b/qtTZ2T5bII622VEppCFwVooeD9nP7WgBYBMma0HInpMlJS4YBMlvWgamg6zEaUt+DBKw3qkpl0j09ZSzKjPQRnt7rZNu1umshwFJ21WWMlaSeQ8NKWLbsKis8GRCv+CmRE7J5jSHFJZ/9ZC911lp3dbe9myliyaMLxM7kBa+/vAWmfzyPvM1kYkf+4OfyeyAjKHpvUtbFnN1JqwsBnnMTvF2roVE+evqqZF92S5N/eSrQ1OvqgMQTncYHcm8pipH9+DNR+HhOh8rwjBKnn3H1XeK31j/j5PSRxN8XGD+ptiadHIffukKEqw18Z9JQDtwIN7vxIBHUaDuoMIuKkeve+RCfV2IcC8tmOrRqvbNE8f3v0Wn8lOFKW4EEDMltxOiU09JdFSaqoW/jHkg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR08MB2633.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(366004)(376002)(346002)(136003)(396003)(55016002)(2906002)(9686003)(66476007)(76116006)(83380400001)(52536014)(86362001)(71200400001)(5660300002)(186003)(66556008)(66946007)(66446008)(64756008)(8936002)(966005)(33656002)(478600001)(53546011)(4743002)(6506007)(8676002)(7696005)(6916009)(316002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: X3O6IA0lVl/hINgdnwFkonG6GQhOb+zT/nQdt1rPo+6foRV65oJsmmfgZaF2IWiLYJUU1NHtladvboEdxcGkvcrC6b6C7+dXMz6coX5c1KX+Xw0vczRRARZFaz47krbz2aSMalyaFvMmwoqTS06pdf2hdaxX/mhOdrVFFbMgwJOMp6BWjWR7qg1f7T8SJ2j64ISLg/m0joCMjkhh5E9G8/DrQxqTBSY7B+IbpKYGpBvqruSEG8PIj0rbTfzQs1xUynikBzyfvPta/CD9Zmn0dGJGW8LuG4k4Md0hQc1jBsEOiq4XlRcqfp3mDmMCVpubKpnwkSBXRquthqVGQtqCpKc+y2qpaYloUN9+CuszIe7qbFz0HPvOHCAf0FkrQ87XmvipkkF0ilBxHqC0gurn1p4w7EhpHVe8FoDgyJTN4KEoxLO8Dn8uXPDrdJPaCTSKYZrXR8n3Szr5S1mfI1Wx4K5uTDu9884pZ/4a+Qed6UYOXynsJc4eQOBXaqCSrI37ZbVTYu8cYABwuCBTkog4PGdJwAqGBOxxD1qOUETrxKrAEvkX+u2BUKX/Vk9ny7YZ
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_DM5PR08MB2633CC86ABA634A8E62C5E489B820DM5PR08MB2633namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e80eb96d-4344-4114-c66d-08d80c7fc1bc
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2020 14:16:52.3129 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: MPyM3ePMtl87N7nhP1ASVRzW44g/WGuZ6H0tzlCdytBDJF4n246DlpsdnqDjj1j3fXF39xf0lfUvCdWyPb2Uvw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR08MB2505
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Uu1WD5bZhsiEdhZrF667_dP8Qv4>
Subject: Re: [netmod] optional char in yang-semver
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jun 2020 14:16:56 -0000

Hi all,

An update on this. We had further discussions on the weekly revision call just now. Thanks to an interesting new suggestion from Jan L. we're changing tack on our favorite "extra indicators".

We're basically down to three very similar options.

The underscore "_" helps differentiate these from the standard semver "-" or "+" and will help cause tools that don't understand it to signal that something unusual needs to be looked at (warning or error).

Reminder -> this is only in those cases in the draft where the "M" and "m" were used. Check the draft to see the use cases for these:
https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-semver/?include_text=1

###########
Option J1
###########
use the following suffixes:
_non_compatible  (instead of the old "M", for an NBC change)
_compatible (instead of the old "m", for a BC change)

e.g. for NBC:
1.1.0 -> 1.1.1_non_compatible
e.g. for BC:
1.1.0 -> 1.1.1_compatible

###########
Option J2
###########
- same as J1, just one fewer underscore

e.g. for NBC:
1.1.0 -> 1.1.1_noncompatible
e.g. for BC:
1.1.0 -> 1.1.1_compatible

###########
Option J3
###########
- use nbc and bc instead of spelling out words
- shorter but not as good for anyone unfamiliar with the spec

e.g. for NBC:
1.1.0 -> 1.1.1_nbc
e.g. for BC:
1.1.0 -> 1.1.1_bc

Rgds,
Jason


From: Sterne, Jason (Nokia - CA/Ottawa)
Sent: Monday, June 8, 2020 10:38 AM
To: netmod@ietf.org
Subject: optional char in yang-semver

Hello all,

In our weekly YANG versioning calls we discussed the 'm' and 'M' modifiers in the yang-semver draft.

While we still believe that the extra char modifier is a useful addition, we are now leaning towards a different location for the letter and different characters as the indicator.

The current draft uses 'm' or 'M' at the end, e.g.   2.1.1m  or 3.3.3M.  Here are the latest thoughts from the weekly call.

As a high level summary -> we're basically down to options p1, p2 or p3 below. Looking for other opinions to debate amongst those.

We should avoid having any semantic meaning that depends on the case of the letter. Hence having 'm' and 'M' mean different things isn't a good idea. So in our latest proposal the case of the letter is not significant.

As before, two different letters/symbols should be used:
1) one to signify a major (NBC) change
2) one to signify a minor (BC) change

Our current 'favorites' are:
p = major (NBC)
c = minor (BC)

Other letters considered but rejected were:
X, Y, Z: have connotations of wildcard  (1.2.3x implies "any 1.2.3*")
N: has connotations of wildcard
A, B: alpha, beta
i, j, k: common iterators - better to avoid?
nc = non-compatible. Better to stick to 1 letter?

We also feel that it may actually be a useful property to "break" tools (i.e. have them error, halt, etc) when they don't know how to handle the letter - in particular for major changes (so they don't accidently assume 2 versions are compatible). So perhaps placing the "p" should be up adjacent to the major version:
p1.1.1 or 1p.1.1

We're undecided on where the "c" should go.  We're down to a few favorites.  Here are combinations of p & c that we're considering most strongly (examples below show a Major Change / Minor Change):
p1) p1.1.1 / 1.1.1c    nice bookends
p2) 1p.1.1 / 1.1c.1    letter goes with the part of the version it is associated with
p3) 1p.1.1 / 1.1.1c

We debated a number of other locations & formats. Pasting them here so you can get a quick visual of what they look like:

NBC Changes:
n1) 1.1.0 --- p1.1.1   not quite as likely to "break" tools as 1p.1.1?
n2) 1.1.0 --- 1.1.1M
n3) 1.1.0 --- 1p.1.1   more likely to "break" tools, more likely to trigger people to lookup what it means
n5) 1.1.0 --- 1nc.1.1
n6) 1.1.0 --- 1.1.1(p)
n7) 1.1.0 --- 1(p).1.1
n8) 1.1.0 --- X.1.1.1

BC Changes:
b1) 1.1.0 --- 1.1c.1
b2) 1.1.0 --- 1c.1.1
b3) 1.1.0 --- C1.1.1

Rgds,
Jason