Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2325.1795200381854570314 for ; Fri, 20 Nov 2026 10:46:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=UKdjbVI+; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.50, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4bb666304fdso21813585e9.0 for ; Fri, 20 Nov 2026 10:46:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1795200380; x=1795805180; darn=lists.openembedded.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=Mo4ekiQVgwxDvMCAoqnaJzR6CE5kxyyDSVj8LxoEzwI=; b=UKdjbVI+eY1WDjoijlT8W/Gf1trpQVIBwxXCPIP6LzXJ8PdhD0j/hv+9VGjHk59ciD qck91TumrHHAzqWFHBO3PDyh7+Sa1UsrU9BgLAv8WJMSNUrThgl/fGzbFPGrYY/x4pl0 fmZh7DE7joDXFMLGQhQMoWL2oEZWbHUBEvoJw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795200380; x=1795805180; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Mo4ekiQVgwxDvMCAoqnaJzR6CE5kxyyDSVj8LxoEzwI=; b=G1U/M6QHiyDOuOwsa5BcFNOf6pipq1+DH9jZd87Q46DqcDgeXCuA1JU3+hdeCTRPsu uFoks5psE7gKRmUn4SHnQ+k5zyhhVWN1vStxCWv7veSmINF55fqo8MAA/29ChE+MMtzC LYWeYSYwcOlR9UVj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+zjMHwdELxSV6eaV5ttsKaH5co1reZ1U0pBND7Dv3kSoyZjpmvDCqu/h4rbaTEe8G ssr/SOKPOBvK7mImYhA== X-Received: by 2002:a05:600c:4504:b0:4b4:a551:681a with SMTP id 5b1f17b1804b1-4bb887fc396mr91130485e9.3.1795200380054; Fri, 20 Nov 2026 10:46:20 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8b0:aba:5f3c:ade0:e24c:97d2:ceef? ([2001:8b0:aba:5f3c:ade0:e24c:97d2:ceef]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb9067a0e6sm4331995e9.4.2026.11.20.10.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 10:46:19 -0800 (PST) Message-ID: <196178d920291fb292393e16233869c08f077760.camel@linuxfoundation.org> Subject: Re: [bitbake-devel] [PATCH 1/2] cooker: Write variables that are not JSON types to the event log From: Richard Purdie To: stondo@gmail.com, bitbake-devel@lists.openembedded.org Cc: Thomas Perrot , Alexander Kanavin , Stefan Herbrechtsmeier , Peter Marko , stefano.tondo.ext@siemens.com Date: Fri, 20 Nov 2026 18:46:18 +0000 In-Reply-To: <20261120135323.2627478-2-stondo@gmail.com> References: <20261120135323.2627478-1-stondo@gmail.com> <20261120135323.2627478-2-stondo@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-10build1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 20 Nov 2026 18:46:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20468 On Fri, 2026-11-20 at 14:53 +0100, Stefano Tondo via bitbake-devel wrote: > From: Stefano Tondo >=20 > EventWriter.write_variables() writes the history of all variables to > the event log as JSON. A variable can hold a Python object. For > example, sstate.bbclass stores compiled regular expressions in > _SSTATE_EXCLUDEDEPS_SYSROOT during a build. When the same server runs > a second build, json.dumps() fails: >=20 > =C2=A0 TypeError: Object of type Pattern is not JSON serializable >=20 > This occurs with tinfoil, for example in "recipetool create", which > starts more than one build in one server. >=20 > Write such values as strings. This worries me a bit (well, a lot!), specifically the "second build" piece. Why is this persisting across builds? Does: https://git.openembedded.org/bitbake/commit/?id=3D606786d17351534ce35d1b0f8= 9815461546a66fe have any effect on that? Cheers, Richard