[T2TRG] Github Actions for SDF converters and oneDM playground models

Jan Romann <jan.romann@uni-bremen.de> Tue, 24 August 2021 19:28 UTC

Return-Path: <jan.romann@uni-bremen.de>
X-Original-To: t2trg@ietfa.amsl.com
Delivered-To: t2trg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A0683A0E04 for <t2trg@ietfa.amsl.com>; Tue, 24 Aug 2021 12:28:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=uni-bremen.de
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 xBDmGjngLZKs for <t2trg@ietfa.amsl.com>; Tue, 24 Aug 2021 12:28:10 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CEA3E3A0E09 for <t2trg@irtf.org>; Tue, 24 Aug 2021 12:28:09 -0700 (PDT)
Received: from [192.168.178.38] (p5494d108.dip0.t-ipconnect.de [84.148.209.8]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4GvJzm4R5Xz2xQV; Tue, 24 Aug 2021 21:28:04 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-bremen.de; s=2019; t=1629833284; bh=g6mXOnZCOWABBRMspn36VUohoJ9YZPlnfj5r/tcw/0Y=; h=To:Cc:From:Date; b=QCyPVb2FPYK5IN6kSWhz9L09YCRKDZyPcN9xyc+XMNtkOOHt7kkd1rzuz7Y+vAGKi 971LVmD9kley2AiIVYupmQye8wIWdeN5TEH7+HqS7NKyziSYScsgvvtDwAWYVeskBg xt5bCNW4fZodpfTMxxRihKjng7Wr8cd3o79TQvlW/KTD31ozQzYJGCVTNfIUdodsxZ TORxO5oYMAtVceAn7H4ZIAluefZOSvtW1Sa1ClJPRv2CE/ujRpnpFaBcS8vCsSewTY KHOu7V1WRGuGSDkUsd2rrhAiJMHfeyUCGD8mDtDFOm+0uJD11Jr+KGbbDPqWBCw7Eg rvScVABLU5n7Q==
To: t2trg@irtf.org
Cc: asdf@ietf.org
From: Jan Romann <jan.romann@uni-bremen.de>
Message-ID: <c611e15e-9ea0-90bc-0ded-c9966169bb44@uni-bremen.de>
Date: Tue, 24 Aug 2021 21:28:03 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/wZiHQITFESW20WRTcMYZM0hSLKo>
Subject: [T2TRG] Github Actions for SDF converters and oneDM playground models
X-BeenThere: t2trg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IRTF Thing-to-Thing Research Group <t2trg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/t2trg>, <mailto:t2trg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/t2trg/>
List-Post: <mailto:t2trg@irtf.org>
List-Help: <mailto:t2trg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/t2trg>, <mailto:t2trg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2021 19:28:16 -0000

Dear all,

I am currently working on a converter [1] between SDF and Web of Things
(WoT) Thing Descriptions (TDs) and Thing Models (TMs). As a follow-up to
the discussions during the IETF hackathon, I set up a repository [2]
that is automatically updated with models from the OneDM playground that
have been converted to TMs whenever a push to the converter's main
branch occurs. This process is realized by a Github Actions workflow [3]
and a simple script [4] which iterates over all playground models. It
should be easily adaptable if you are also developing a converter from
SDF to another format, especially when it comes to converters that can
be used as a command line tool. For granting the comitting Action
access, you need to set up an API key with write permissions for the
destination repository and store it in the converter repository as a
secret [5].

A point that might be worth discussing in this context is if the
repositories with converted models should rather be located in the oneDM
(or ASDF) Github organization or if they should be maintained by the
converter developers themselves.

Best regards,

Jan Romann

[1] https://github.com/JKRhb/sdf-wot-converter-py
[2] https://github.com/JKRhb/onedm-playground-wot-tm
[3]
https://github.com/JKRhb/sdf-wot-converter-py/blob/main/.github/workflows/convert_sdf_models.yml
[4]
https://github.com/JKRhb/sdf-wot-converter-py/blob/main/convert_playground.sh
[5] See here for more information regarding the Action in the workflow:
https://github.com/marketplace/actions/push-a-file-to-another-repository