From patchwork Wed Jun 23 04:20:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Axtens X-Patchwork-Id: 1495930 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.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.a=rsa-sha256 header.s=google header.b=UZpIB4WW; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G8qnX5kBMz9sWQ for ; Wed, 23 Jun 2021 14:20:48 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4G8qnY3gFvz306J for ; Wed, 23 Jun 2021 14:20:49 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.a=rsa-sha256 header.s=google header.b=UZpIB4WW; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=axtens.net (client-ip=2607:f8b0:4864:20::62a; helo=mail-pl1-x62a.google.com; envelope-from=dja@axtens.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.a=rsa-sha256 header.s=google header.b=UZpIB4WW; dkim-atps=neutral Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4G8qnN2mzwz2yXM for ; Wed, 23 Jun 2021 14:20:39 +1000 (AEST) Received: by mail-pl1-x62a.google.com with SMTP id v13so471983ple.9 for ; Tue, 22 Jun 2021 21:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KyJU87JsCz1LrffDC42qbzAT1cFwFkShg/1iA0Pm51A=; b=UZpIB4WWj1UjX3dFwYZym+duzrtKMhLP8qnW/sN79/WQ199dQ2lrsPe9tU2e/9ovYV g/nzXQyCTSVUvGvDKwZX4H8HtFZs6nccRyWBi+ymSAwLTUywOEBS7y2MkuFhVpNTDf69 ATgRhlfFZrX5md82mpiPO1PDAnWlJpeFHfI+U= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KyJU87JsCz1LrffDC42qbzAT1cFwFkShg/1iA0Pm51A=; b=rPSlNX6jy5aEzY0lUdsXgeM8lDIqYCfQvOFBFJmMz1Vcp5sHgZjLKwIR6I67bFSfvD KG2zOOJbI8dfGdjfZdtDiD2NuoML4GMLWo5mRrXnTV0wz8JhXc/gYVgUIICb/xOHMxn0 ulivSU3CkxCc1KdcYgi1DRz7OFDjJEcwT8MftKMj8uM57KhtsDXo9WllvihPsnSivSyP iZ0FcRafxZiI5IbsgStkqnv3lduklmUzJFvjMDKZRJx6/JIF1cUKeCaCijgL5qzPdv22 duIlt6PD4EMDbRrC8nHpfpxogyRzetO/MBuRfDBoAm6XA0Vzwe4jB5EpnkMRGfvcM1jd Hjng== X-Gm-Message-State: AOAM532XJinhEkAJzz6sh8WAqOuEI0sUVSRvnYnmGwPBJ8t8Kt0Y8hR0 BFthXxNLh80IQCiLpvjcLW5DQt+F9ANZqw== X-Google-Smtp-Source: ABdhPJw9gIqfyja/s18tXzp3n0ihi4GDQ5FUKmoDaGSuzrqbSK9g4BD4AK8MshbEd5JRpOTpibHfqA== X-Received: by 2002:a17:90b:1244:: with SMTP id gx4mr2688080pjb.148.1624422036838; Tue, 22 Jun 2021 21:20:36 -0700 (PDT) Received: from localhost ([203.206.29.204]) by smtp.gmail.com with ESMTPSA id b2sm3805093pjw.24.2021.06.22.21.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 21:20:36 -0700 (PDT) From: Daniel Axtens To: patchwork@lists.ozlabs.org Subject: [PATCH 1/2] tests: fix parallel tests Date: Wed, 23 Jun 2021 14:20:26 +1000 Message-Id: <20210623042027.336625-2-dja@axtens.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210623042027.336625-1-dja@axtens.net> References: <20210623042027.336625-1-dja@axtens.net> MIME-Version: 1.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Parallel tests require: - the % wildcard to be in a token enclosed by backticks, not single quotes - that the user still be able to use 'test_patchwork' (so we don't want the \_ before the %) Presumably this was skipped because if you get permissions working manually but you miss part of the required permissions in the automated script, you need to delete the old db data in order to observe the issue. Amusingly postgres worked the whole time. Fixes: 6025f0e2533f ("Add parallel testing") Signed-off-by: Daniel Axtens --- tools/docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh index 8f7ea4f70219..5450a535e956 100755 --- a/tools/docker/entrypoint.sh +++ b/tools/docker/entrypoint.sh @@ -26,7 +26,7 @@ reset_data_mysql() { DROP DATABASE IF EXISTS patchwork; CREATE DATABASE patchwork CHARACTER SET utf8; GRANT ALL ON patchwork.* TO 'patchwork' IDENTIFIED BY 'password'; -GRANT ALL ON 'test_patchwork\_%'.* to 'patchwork'@'%'; +GRANT ALL ON \`test\\_patchwork%\`.* to 'patchwork'@'%'; FLUSH PRIVILEGES; EOF }