From patchwork Wed Nov 14 05:44:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khalid Elmously X-Patchwork-Id: 997477 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42vtjv1qF8z9s3Z; Wed, 14 Nov 2018 16:44:50 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gMnyk-00014y-Dy; Wed, 14 Nov 2018 05:44:42 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gMnyi-00014g-S6 for kernel-team@lists.ubuntu.com; Wed, 14 Nov 2018 05:44:40 +0000 Received: from mail-qk1-f200.google.com ([209.85.222.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gMnyi-0008Jd-I7 for kernel-team@lists.ubuntu.com; Wed, 14 Nov 2018 05:44:40 +0000 Received: by mail-qk1-f200.google.com with SMTP id c84so35991040qkb.13 for ; Tue, 13 Nov 2018 21:44:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nUQIhM62LKw/p9CEFfybpoMab6dcJbBCdnuM21nrsbE=; b=edJx+ka77Yc2p0vURVfLln7fX9kqyHNFXMdsG45CMSUiIfFNWR/J6Q1ifCWDtzs2ML VTOk2YbgqdYnwhYHRYyixnsJYZHjQvQWvjogdpnbmnQbjeiGOgByVBHObgMppMxuAV6i 7BA8QOYtJGpZc1aP1weOsiL7VtNseyybRgsE4ih9OES4TZNWDLJbY/3KQRTHjfzIwYKv pkT/9hIkl7JZNBj6DYM3CAcw0SBQoVU9pkWtgRYDliHRqUxDObcO1HnLyQkljTI/KfMi AeutljIe3KojWY3M9i+eR4vsIHLytQ4Cs8wDBOX7MmoY2wZsI0ZVvrosFqYsQOmfHTEd BESQ== X-Gm-Message-State: AGRZ1gJ3xiOE/UPNECX42mzWZOihYXfdEZ1T8JFzv0nUHaZllUxWIGEs 9OL0bC8PgwKWatCkjf3VXV0zPKn28HBrVq54uQvPyKC3Vfk5NXGMCy5R0G2J3Mrfy6nV36YqOry U1mSTd5iyw6kOZm1aDmFDVT/t/QG64vLrN9zGOrlUtA== X-Received: by 2002:a37:10cf:: with SMTP id 76mr419057qkq.99.1542174278386; Tue, 13 Nov 2018 21:44:38 -0800 (PST) X-Google-Smtp-Source: AJdET5dSUndVdN4tDdBGL9JcJSqx97IcfrZK3LFSRiMLn3jjW2hNs2xfuqE1rTS+sdC7+naQxVPbCw== X-Received: by 2002:a37:10cf:: with SMTP id 76mr419042qkq.99.1542174277935; Tue, 13 Nov 2018 21:44:37 -0800 (PST) Received: from kbuntu.fuzzbuzz.org (198-16-164-194.on.cable.ebox.net. [198.16.164.194]) by smtp.gmail.com with ESMTPSA id h35sm1792587qth.59.2018.11.13.21.44.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 21:44:37 -0800 (PST) From: Khalid Elmously To: kernel-team@lists.ubuntu.com Subject: [kteam-tools][PATCH 0/1] Refactor start-sru-cycle and create-sru-cards Date: Wed, 14 Nov 2018 00:44:30 -0500 Message-Id: <20181114054431.592-1-khalid.elmously@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" 'create-sru-cards' creates a new Trello board for a new SRU cycle, and it populates it with a default set of cards (including kernel-cranking cards) 'start-sru-cycle' creates the tracking bugs for the kernel cranks (the name of that script is misleading). This approach isn't quite right because a) The tracking bugs and the tracking cards really should be created together and preferably link to each other and b) whenever start-sru-cycle is called for a re-spin, no corresponding Trello cards get created. Solve this by factoring out the Trello-related code from 'create-sru-cards' and re-use it as necessary in 'start-sru-cycle' This is for one of the automation tasks: https://trello.com/c/iePWzQlb/63-create-a-lib-for-creating-trello-cards Khalid Elmously (1): stable: Factor out (and reuse) trello-related code ktl/kernel_series.py | 6 ++ stable/create-sru-cards.py | 97 ++----------------------------- stable/libtrello.py | 114 +++++++++++++++++++++++++++++++++++++ stable/start-sru-cycle | 79 +++++++++++++++++++------ 4 files changed, 187 insertions(+), 109 deletions(-) create mode 100644 stable/libtrello.py