-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SKIP CI] .github/zephyr: compare Windows and Linux builds #6950
Conversation
a32c62e
to
8b74913
Compare
Firmware differences between Linux and Windows found in https://github.com/thesofproject/sof/actions/runs/3908863755/jobs/6679699349 should be all fixed by #6920 |
|
Windows and Linux have a different zephyr Most likely my fault: commit 68b49c1 |
`git describe` differences happen, especially when trying to optimize cloning and this is for instance what happened in thesofproject#6950 (comment) where zephyr tags were fetched on Linux but not on Windows This also makes plain git version differences more obvious; no need to scroll all the way up and scan the build logs. Signed-off-by: Marc Herbert <[email protected]>
ac6c555
to
acc1433
Compare
Fetching different tags causes `git describe` output to be different. Fixes commit 68b49c1 (".github/zephyr: switch Windows build to west update --narrow") Signed-off-by: Marc Herbert <[email protected]>
deb3252
to
81c30de
Compare
All tests passing now. Binaries generated by Windows and Linux are compared and found identical in https://github.com/thesofproject/sof/actions/runs/3954767889/jobs/6772604198 EDIT: and again in newer https://github.com/thesofproject/sof/actions/runs/3963690378/jobs/6791978755 |
I remember that I did not made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @marc-hb, I'm really glad the output we have on both OSes is the same.
Found a typo, please fix. And some minor things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review, see answers below.
The End. Signed-off-by: Marc Herbert <[email protected]>
Make CONFIG_BUILD_OUTPUT_STRIPPED mandatory so we can always compare builds. It makes practically zero build space and time difference and has huge reproductibility value, see discussion in zephyrproject-rtos/zephyr#51954 Signed-off-by: Marc Herbert <[email protected]>
`git describe` differences happen, especially when trying to optimize cloning and this is for instance what happened in #6950 (comment) where zephyr tags were fetched on Linux but not on Windows This also makes plain git version differences more obvious; no need to scroll all the way up and scan the build logs. Signed-off-by: Marc Herbert <[email protected]>
The End.
This makes sure Windows builds and Linux builds produce identical binaries.
Signed-off-by: Marc Herbert [email protected]