Re: [Netmod-ver-dt] [netmod-wg/yang-ver-dt] 1ad0ef: Numerous updates to the semver spec.

"Rob Wilton (rwilton)" <rwilton@cisco.com> Thu, 12 September 2019 10:38 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod-ver-dt@ietfa.amsl.com
Delivered-To: netmod-ver-dt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 42C90120C9E for <netmod-ver-dt@ietfa.amsl.com>; Thu, 12 Sep 2019 03:38:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.399
X-Spam-Level:
X-Spam-Status: No, score=-14.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=k/BLtHNt; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=Odc3VX5H
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 vruKIh1pYK0C for <netmod-ver-dt@ietfa.amsl.com>; Thu, 12 Sep 2019 03:38:38 -0700 (PDT)
Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3B39F120C31 for <netmod-ver-dt@ietf.org>; Thu, 12 Sep 2019 03:38:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=24792; q=dns/txt; s=iport; t=1568284718; x=1569494318; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=QmwWsy5nSJtZjPJsam+n1T//6sXq8fu5eKAoxWimMM0=; b=k/BLtHNtp5cpZ5q6uCbfVNgXRH/Latz4nBSeBkr67AAe+od6K8lTRnEd DwbmdnzBWEgRIEOV/cWbluDK40qnGoOuTes8Jij11STTFdNwaYrM2Wmyb rbLd+XEUjcTO+5/81bfNQFQH+4asXc1lNNq+7KrAkjymjT3IwPZgcgeH+ g=;
IronPort-PHdr: 9a23:P99zLhewWlgmpiQYgKCWOTZvlGMj4e+mNxMJ6pchl7NFe7ii+JKnJkHE+PFxlwGRD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFnpnwd4TgxRmBceEDUPhK/u/dTM7GNhFUndu/mqwNg5eH8OtL1A=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ApAABzH3pd/4ENJK1lGgEBAQEBAgEBAQEHAgEBAQGBVgIBAQEBCwGBFS9QA21WIAQLFhQKhXaBaAOKaIJcl3CCUgNUCQEBAQwBARgBCQsCAQGDCXFFAoJbIzcGDgIDCQEBBAEBAQIBBgRthS4MhUoBAQEBAwEBEBsTAQEsBAcBDwIBCBEDAQEBIQcHJwsUCQgCBA4FCBqDAYEdTQMdAQIMoAMCgTiIYYIlgn0BAQWBMgGDVRiCFgmBNAGLdxiBQD+BV4IXNT6CYQEBAgEXgSApHg0JCIJ/giaMYIgBJIh0jlIKgiGHAYl6hBeCNHCVZo83hkyQagIEAgQFAg4BAQWBaCKBWHAVGiGCbAmCFSQ4gzqFFIU/cwEBAQEGgR+MK4ExAYEiAQE
X-IronPort-AV: E=Sophos;i="5.64,495,1559520000"; d="scan'208,217";a="324746576"
Received: from alln-core-9.cisco.com ([173.36.13.129]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 12 Sep 2019 10:38:37 +0000
Received: from XCH-RCD-012.cisco.com (xch-rcd-012.cisco.com [173.37.102.22]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id x8CAcbTS004533 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <netmod-ver-dt@ietf.org>; Thu, 12 Sep 2019 10:38:37 GMT
Received: from xhs-rtp-001.cisco.com (64.101.210.228) by XCH-RCD-012.cisco.com (173.37.102.22) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 12 Sep 2019 05:38:36 -0500
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by xhs-rtp-001.cisco.com (64.101.210.228) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 12 Sep 2019 06:38:35 -0400
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 12 Sep 2019 05:38:35 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RM3wWsT2kZdL17DrfUwXEdaC0qAS1fNMI54avlt4t1snce9Qywcxr/WeqHWV8AJM9qt+OaGlwrDu9YdLevNwBs91uO866W223majkHufY+Ts7amqmxpeRViEHU6kKL2pFAdGAMMUeIBSGk9gRQfWGvZbqZiAD6hWfySiguiV2jjQ9DbSXXsVQWVVLBEWEZ2b46fS9XCKncAlv7jc5Vs6Qagxc4Xe4eLmqK8ukytxxnWrYr9hYvRnnICC5XO4D//cGgNNaZw+sN1lcIe2tFXy6U92ycAfkkE1D/dGKybC4cED63mHSawCbMdL/m6+pGIyHZK2AP0+TfrXojyldNk1ww==
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=/D+JT+KtTVnlJO0JzEXOWk681XAnDeY6qFQ4cIeimvc=; b=hjYC5FBICdU28EueGBdluYDUBrQzvuXfH1rSg0ka4dCx+jEBYywsO4+0cc16tsUYGX02t4/VYx3v01iGwWu+kZJh190PVfd3t0pEAzmXBYbsp3Xesi54wArxF1IaYnWIUaN2P+5/nypyUQHhdaqli/Sg7yOCsCbkHnsX99g87hjUyodq3/noLGWy94ig5PspxnVX1ZpQvAaUEfmQdGvMXX6XMwyjA/uVs9ZScH584Apguaq1UZEUZ4dWCCH2xQhwu6OU5oGSBb/T2SLP3VJg7/vyjksnhiXyESigqcVafeCGUa4hyB93xSKZPY7ANkYNqrTpY3FU0f6nU3qyL/NATQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/D+JT+KtTVnlJO0JzEXOWk681XAnDeY6qFQ4cIeimvc=; b=Odc3VX5HjiX54wIEsosywK4APgYdKmNCRBdTk0jwBlTjadq8AunUPxZpJoy1874AYvmzn29fM1QX7OVxHwYcyii60SR0u2sbkwDl4b3bYBkX8I3SnAMNa5M810/yQwBYATaC3j40dnIaZl8oBoXN6wHJna7gipXVjYsMEAwLvsc=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB3549.namprd11.prod.outlook.com (20.178.250.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.20; Thu, 12 Sep 2019 10:38:34 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::6db3:f4c:467b:30f6]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::6db3:f4c:467b:30f6%7]) with mapi id 15.20.2241.022; Thu, 12 Sep 2019 10:38:34 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "Joe Clarke (jclarke)" <jclarke@cisco.com>
CC: "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Thread-Topic: [Netmod-ver-dt] [netmod-wg/yang-ver-dt] 1ad0ef: Numerous updates to the semver spec.
Thread-Index: AQHVZNx3VAP1ITP1nkCaM7HnVzDLkqce8M+AgAjv3lA=
Date: Thu, 12 Sep 2019 10:38:33 +0000
Message-ID: <MN2PR11MB43665D6D10B629D47F2AC7CBB5B00@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <netmod-wg/yang-ver-dt/push/refs/heads/develop/0d25a6-1ad0ef@github.com> <C8393435-9414-4312-947C-E0D36CB6050B@cisco.com>
In-Reply-To: <C8393435-9414-4312-947C-E0D36CB6050B@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.38]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 95932b4b-e3b9-4777-df2f-08d7376d5cad
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR11MB3549;
x-ms-traffictypediagnostic: MN2PR11MB3549:
x-ms-exchange-purlcount: 6
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MN2PR11MB35496BEEC6130733DFD94091B5B00@MN2PR11MB3549.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 01583E185C
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(51444003)(189003)(199004)(54896002)(52536014)(6436002)(6636002)(99286004)(606006)(14444005)(6862004)(4326008)(476003)(11346002)(256004)(446003)(2906002)(229853002)(186003)(66446008)(966005)(64756008)(66946007)(66556008)(66476007)(102836004)(26005)(486006)(5660300002)(7110500001)(14454004)(478600001)(6506007)(33656002)(86362001)(2420400007)(15650500001)(790700001)(6116002)(71200400001)(3846002)(71190400001)(74316002)(53936002)(53546011)(316002)(25786009)(55016002)(236005)(6246003)(7696005)(9686003)(6306002)(81166006)(81156014)(7736002)(76116006)(66066001)(8936002)(9326002)(8676002)(76176011)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3549; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: Fhovsmrjz2nWdhtUpWDu7lgXMuT5tRvdk038kEWgAMxWL0qEP3W4Ex9FWJanphYfFUxWMGyHScn1dr8L76GYlHTwDQqDbD91hIFWZI69imxLDoh7CPRpwC7Q/W6VxMpG88vXVeMR20URYgC+E/GUyUS7cQFa52bRWv1l6Yl24neSpDJONb4S6elYTPwEJidnb1Zn9rKvo1jtZHVClYZ31ZD2+P6fMFli4fCmBqJrAWnD/uH+j8barXXuefTLB+rdyHBoDIrWBdloK1xc7Clfb1Tyok7eVFAg7aE2jkAr3bW5iwvjG2IJDcANaHGg5Xj+xOdnEUDMPDUh6B8KB9BX0ygfhgFEP2anNGW7k3cedp9FyuBqzrpLeCR5G7dwskxrjYx5tL2fNq4WbDvNoJWRWHKW8DRCWu4Km0V7hkYu4AA=
Content-Type: multipart/alternative; boundary="_000_MN2PR11MB43665D6D10B629D47F2AC7CBB5B00MN2PR11MB4366namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 95932b4b-e3b9-4777-df2f-08d7376d5cad
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2019 10:38:34.0257 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Wo7u0s0nMljLbnJRmP3rsrAdBXJ472L5IsGK462af/HH4msCYYi95LucpNZWyV9lYAxB4ogW4c6332GMyywMuw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3549
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.22, xch-rcd-012.cisco.com
X-Outbound-Node: alln-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod-ver-dt/cExIeR7XrWQI47HRiggcgthxZKA>
Subject: Re: [Netmod-ver-dt] [netmod-wg/yang-ver-dt] 1ad0ef: Numerous updates to the semver spec.
X-BeenThere: netmod-ver-dt@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NetMod WG YANG Model Versioning Design Team <netmod-ver-dt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod-ver-dt/>
List-Post: <mailto:netmod-ver-dt@ietf.org>
List-Help: <mailto:netmod-ver-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Sep 2019 10:38:44 -0000

Hi Joe,

I think that this draft is looking in pretty good shape!

I have a few comments, but mostly I think that they are all pretty minor.

1. You should be marked as the editor.

2. Section 1:
Introduction, perhaps change to (since the module-versioning draft only talks about modules):

  <t><xref target="I-D.verdt-netmod-yang-module-versioning"/> puts forth a number of concepts relating
   to modified rules for updating modules, a means to signal when a new revision of a module has
   non-backwards-compatible (NBC) changes compared to its previous revision, and a versioning scheme that
   uses the revision history as a lineage for determining from where a specific revision of a YANG
   module is derived.  Additionally, section 3.3 of <xref target="I-D.verdt-netmod-yang-module-versioning"/>
   defines a revision label which can be used as an overlay or alias to provide additional context or an additional
   way to refer to a specific revision.</t>

   This document defines a labeling scheme that uses modified [semver]
   rules for YANG artifacts (i.e. YANG modules and YANG packages (XXX, ref))
   as well as the revision label definition for using this scheme.
   The label and rules defined herein represent the
   RECOMMENDED revision label scheme to use for versioning IETF YANG artifacts.


3. XXX, I think that the last sentence of the intro means that this document should update YANG Author Guidelines, which should be explicitly stated.


4. Section 3.1, second to last paragraph.
  Vanilla semver (i.e. semver.org version 2.0.0) should also be allowed.  I don't know if this needs to be explicitly stated, of it is just obvious.  Or, do we require that if the version number looks like semver then everyone is required to support the m/M markers?

5. Section 3.2 title "Artifacts => YANG Artifacts"?

6. Section 3.2, third paragraph:

      Unlike the semver.org 2.0.0 versioning scheme, the YANG semantic
      versioning scheme supports limited updates to older versions of
      YANG artifacts, to allow for bug fixes and enhancements to
      artifact versions that are not the latest.  However, it does not
      provide for the unlimited branching and updating of older
      revisions which are provided by the general rules in
      [I-D.verdt-netmod-yang-module-versioning].

 I'm not sure that we should say "provided by", or perhaps better "allowed" or "facilitated", to indicate that it is allowed but not encouraged.


7. Perhaps somewhere early in the document, we want to say that [semver] means the semver 2.0.0 scheme, and then perhaps through the rest of the document, it doesn't need to keep repeating it?

8. Section 3.2, para 8:

   YANG packages that make use of this semantic versioning scheme will
   have their sematic version as the value of the "revision_label"
   property.

I'm not sure whether or not this should be stated in this draft, or just left to the packages draft?  Currently, I've changed the name of this leaf in the packaging draft to "version".

9. Section 3.2
I-D.verdt-netmod-yang-module-versioning does not define "editorial change" on BC and NBC, because the concept of an editorial change for a YANG module is really tied to a semver interpretation.  Hence, I think that this draft probably needs to be define an editorial change is in the context of a YANG module.  Perhaps take the definition from one of the older revisions of the draft as a starting point?

10. Section 3.2.1, last paragraph

   Looking at the version number alone, the module definition in 2.0.0
   does not necessarily contain the contents of 1.3.0.  However, the
   module revision history in 2.0.0 would likely indicate that it was
   edited from module version 1.3.0.

   Probably should change "would likely" to "may well".  Or alternatively, perhaps explain in a bit more detail that despite the relationship of semantic version numbers, the revision history illustrates what the actual base module was that 2.0.0 was created from.  It might be 1.3.0, but it could have been another version depending on when the versions were created.

11. Section 3.4.2
I think that the packaging example is good, but we'll need to remember to update it depending on what shape the packaging draft ends up in.  For the moment, perhaps just change "revision_label" to version.

Thanks,
Rob


From: Netmod-ver-dt <netmod-ver-dt-bounces@ietf.org> On Behalf Of Joe Clarke (jclarke)
Sent: 06 September 2019 19:03
To: Joe Clarke <noreply@github.com>
Cc: netmod-ver-dt@ietf.org
Subject: Re: [Netmod-ver-dt] [netmod-wg/yang-ver-dt] 1ad0ef: Numerous updates to the semver spec.

I pushed my changes.  The diff can be viewed at:

https://tools.ietf.org/rfcdiff?url1=https://raw.githubusercontent.com/netmod-wg/yang-ver-dt/0d25a6db1e58f062d02ab3636e58ffe571b3ecfa/yang-semver/draft-verdt-netmod-yang-semver.txt&url2=https://raw.githubusercontent.com/netmod-wg/yang-ver-dt/develop/yang-semver/draft-verdt-netmod-yang-semver.txt

Joe


On Sep 6, 2019, at 13:56, Joe Clarke <noreply@github.com<mailto:noreply@github.com>> wrote:

 Branch: refs/heads/develop
 Home:   https://github.com/netmod-wg/yang-ver-dt
 Commit: 1ad0ef542c17d3ae1dadae9ea54c7c74b9d2ef59
     https://github.com/netmod-wg/yang-ver-dt/commit/1ad0ef542c17d3ae1dadae9ea54c7c74b9d2ef59
 Author: Joe Clarke <jclarke@cisco.com<mailto:jclarke@cisco.com>>
 Date:   2019-09-06 (Fri, 06 Sep 2019)

 Changed paths:
   M yang-semver/draft-verdt-netmod-yang-semver.txt
   M yang-semver/draft-verdt-netmod-yang-semver.xml
   A yang-semver/ietf-yang-semver.yang

 Log Message:
 -----------
 Numerous updates to the semver spec.

* Genericize the wording using the term "artifact" so that semver can be
applied to YANG packages as well as modules.

* Add language that says anything that looks like a semver is a semver
and must adhere to these rules.

* Add a YANG module that specifies a semver typedef.


_______________________________________________
Netmod-ver-dt mailing list
Netmod-ver-dt@ietf.org<mailto:Netmod-ver-dt@ietf.org>
https://www.ietf.org/mailman/listinfo/netmod-ver-dt