From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <daniel.turull@ericsson.com>, <openembedded-core@lists.openembedded.org>
Cc: <JPEWhacker@gmail.com>
Subject: Re: [OE-core] [PATCH v4 0/3] spdx: add support to include releaseTime
Date: Sat, 03 Oct 2026 18:50:25 +0200 [thread overview]
Message-ID: <DLVCWCY4UQ9E.3307IXG39F4B@bootlin.com> (raw)
In-Reply-To: <20261002075414.2311840-1-daniel.turull@ericsson.com>
On Fri Oct 2, 2026 at 9:54 AM CEST, Daniel Turull via lists.openembedded.org wrote:
> From: Daniel Turull <daniel.turull@ericsson.com>
>
> We have a requirements to include release time of open source components
> in the SBOM. There is a field specific for that in spdx 3 spec.
>
> https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Properties/releaseTime/
>
> This can also be used to evaluate how old are some of the core
> components and decide if they need replacement.
>
> The previous 2 versions did not have cover letter.
>
> In v4 I kept the simpler logic to just check for the epoch date, even if
> we have multiple sources with different release dates. It was getting
> complicated and adding more code for git and tarfiles. I can do a follow
> up patch after this simpler version gets in, so we can fine tune it.
>
> Tested with oe-selftest -r spdx
>
> Daniel Turull (3):
> classes/base: exclude __CACHED_SOURCE_DATE_EPOCH from task hash
> create-spdx-3.0: record component release date in SPDX output
> scripts/contrib: add spdx-release-date-report.py
>
> meta/classes-global/base.bbclass | 4 +
> meta/lib/oe/spdx30_tasks.py | 22 +++
> meta/lib/oeqa/selftest/cases/spdx.py | 41 +++++
> scripts/contrib/spdx-release-date-report.py | 191 ++++++++++++++++++++
> 4 files changed, 258 insertions(+)
> create mode 100755 scripts/contrib/spdx-release-date-report.py
Hi Daniel,
It looks like one of the added tests is failing here:
2026-10-03 15:26:28,760 - oe-selftest - INFO - spdx.SPDX30Check.test_release_date_source_date_epoch (subunit.RemotedTestCase)
2026-10-03 15:26:28,761 - oe-selftest - INFO - ... FAIL
...
2026-10-03 15:26:28,761 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/spdx.py", line 473, in test_release_date_source_date_epoch
self.assertEqual(pkg.releaseTime, expected)
File "/usr/lib/python3.11/unittest/case.py", line 873, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.11/unittest/case.py", line 866, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: datetime.datetime(2023, 7, 18, 6, 55, 23, tzinfo=datetime.timezone.utc) != datetime.datetime(2011, 4, 5, 23, 0, tzinfo=datetime.timezone.utc)
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4997
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-10-03 16:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 7:54 [PATCH v4 0/3] spdx: add support to include releaseTime daniel.turull
2026-10-02 7:54 ` [PATCH v4 1/3] classes/base: exclude __CACHED_SOURCE_DATE_EPOCH from task hash daniel.turull
2026-10-02 7:54 ` [PATCH v4 2/3] create-spdx-3.0: record component release date in SPDX output daniel.turull
2026-10-02 7:54 ` [PATCH v4 3/3] scripts/contrib: add spdx-release-date-report.py daniel.turull
2026-10-03 16:50 ` Mathieu Dubois-Briand [this message]
2026-10-05 7:11 ` [OE-core] [PATCH v4 0/3] spdx: add support to include releaseTime Daniel Turull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DLVCWCY4UQ9E.3307IXG39F4B@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=JPEWhacker@gmail.com \
--cc=daniel.turull@ericsson.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox