Skip to content

[BUG] compare-linux-win CI build check fails due to zephyr_version.h difference #9797

@kv2019i

Description

@kv2019i

Status update:

Starting with daily build 795, https://github.com/thesofproject/sof/actions/runs/12940934767
the Linux + mnft (manifest) builds started to lose git tags in the git describe output that goes into their BUILD_VERSION. For instance v4.0.0-2813-g42701fdb2729 became 42701fdb2729. The Windows builds kept it and the Linux "zmain" (Zephyr main branch) kept it too.
This correlate with a Ubuntu VM upgrade, see below.


Describe the bug
Starting today 27th Jan 2025, multiple pull-requests are showing a failure in build reproducibility between Linux and Windows builds with
error:

https://github.com/thesofproject/sof/actions/runs/12947318306/job/36114439673?pr=9794

 Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8/stripped-zephyr.elf and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8/stripped-zephyr.elf differ
Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8/zephyr.lst and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8/zephyr.lst differ
Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8/zephyr_version.h and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8/zephyr_version.h differ
Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8m/stripped-zephyr.elf and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8m/stripped-zephyr.elf differ
Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8m/zephyr.lst and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8m/zephyr.lst differ
Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8m/zephyr_version.h and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8m/zephyr_version.h differ
Files linux-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8ulp/stripped-zephyr.elf and windows-build  imx8 imx8x imx8m imx8ulp/build-sof-staging/sof-info/imx8ulp/stripped-zephyr.elf differ

This is shown in multiple open PRs:

To add to the mystery, I can't see the failure in any of the pull requests failed last week.

To Reproduce
Submit a pull request to SOF repository.

Reproduction Rate
100%

Expected behavior
Linux and Windows host builds should create identical binaries.

Impact
Failure seen on every CI request, can mask other errors.

Metadata

Metadata

Assignees

Labels

Known PR FailuresIssues seen in SOF github pull-request checksP3Low-impact bugs or featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions