From patchwork Sun Apr 11 04:27:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1464741 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=a1hKZVrU; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FHzQP18rHz9sVt for ; Sun, 11 Apr 2021 14:28:42 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E9FDC80484; Sun, 11 Apr 2021 06:28:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="a1hKZVrU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ED8F0804B3; Sun, 11 Apr 2021 06:28:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 526ED80201 for ; Sun, 11 Apr 2021 06:28:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-pj1-x102c.google.com with SMTP id r13so1096422pjf.2 for ; Sat, 10 Apr 2021 21:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=65nEG9KQc7UceC82VoGBrE/i2mzzrAsPE/XYLrQ8ddU=; b=a1hKZVrUTVBvATk88Ql6QNGcY808zrbbE28B4+MTWqsgGwbbzU7vxwamb26LghZxrz Z7sOgyFV0v8w29rd4/SlwqBc8JNAhA9aSn4yQ9173UXXjQ6/HJF/soz5gDJNpLNRiNsP j3wFyL+4r01VVfI3nQjrW8AsxFRzc3nKjAXt4= 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:mime-version :content-transfer-encoding; bh=65nEG9KQc7UceC82VoGBrE/i2mzzrAsPE/XYLrQ8ddU=; b=OtxOAFwiwfYzDZZfbyez8ABDdeNltSiONAhgy/NKhd6VtM19gpmw01FXbBQJIcA3Df uqpT7MVIg5TVB9hsUhfwrceJAdkKGaGFFwXwIDmOVmkd8WMANaf8GwvzQK9D7ErFM25B daQeX+FcTpjEMOI5Iwg4X5qc1TnutoxEilS8LctCPjiR5txdJM27Sn9eZ9PU2WmI92Ey 9pgfsvFsesKasL0+jPPVpYBYA3a35o+kRqtIVVCZ/X5LqEU3UijMZSSkagtfiM7hIACj suq1yuHW/q8GDnGs3wUfmfg3zSBe0FVHP/YnnKR5nCT/HAungrV8oQT3mfXyA2Rz1x1d lAeQ== X-Gm-Message-State: AOAM532LpLCLi+TMsVN0HLHnSPhujle3TV/CxEIPgR5ElAsXZANUYKwO uT0J0IFtpNMjCNQb2au0SrQ8bnDHz4q8MAnq X-Google-Smtp-Source: ABdhPJxgNdBrD8FxUDFoH0T21D2b0ORGZZPMRluy1MiY/zM6UV+H0rFSbs8EWxNs1lWj2rvLlU31fw== X-Received: by 2002:a17:90a:e501:: with SMTP id t1mr21105651pjy.203.1618115298393; Sat, 10 Apr 2021 21:28:18 -0700 (PDT) Received: from localhost.localdomain (203-173-153-56.dsl.dyn.ihug.co.nz. [203.173.153.56]) by smtp.gmail.com with ESMTPSA id 186sm2856589pfe.212.2021.04.10.21.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 21:28:17 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Marek Vasut , Simon Glass Subject: [PATCH 0/4] buildman: Deal with unicode errors and thread exceptions Date: Sun, 11 Apr 2021 16:27:24 +1200 Message-Id: <20210411042728.3549261-1-sjg@chromium.org> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean This series corrects the recent problems with gitlab reporting a unicode exception during a build, for example here: https://source.denx.de/u-boot/custodians/u-boot-usb/-/jobs/249514 Since exceptions in threads can cause buildman to hang, the series adds support for dealing with these more gracefully, in case it happens again. Simon Glass (4): buildman: Tidy up a few comments buildman: Use common code to send an result buildman: Handle exceptions in threads gracefully buildman: Use bytes for the environment tools/buildman/builder.py | 22 +++++++++++---- tools/buildman/builderthread.py | 50 +++++++++++++++++++++++---------- tools/buildman/control.py | 18 ++++++++---- tools/buildman/func_test.py | 40 ++++++++++++++++++++++++-- tools/buildman/toolchain.py | 24 ++++++++++------ 5 files changed, 119 insertions(+), 35 deletions(-)