Skip to content

topology: invoke with m4 --fatal-warnings - #2955

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
marc-hb:m4-werr
May 20, 2020
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
marc-hb:m4-werr

Conversation

@marc-hb

@marc-hb marc-hb commented May 20, 2020

Copy link
Copy Markdown
Collaborator

As seen in PR #2954, no one ever notices m4 warnings. As PR #2954 will
remove sof-tgl-rt711-i2s-rt1308-nohdmi.conf and the only m4 warning
currently, this is a great opportunity to upgrade m4 warnings to
errors.

Note neither Travis nor github have the concept of a "warning", they can
only report success or failure.

This fix can be considered part of the "green failures" family.

Signed-off-by: Marc Herbert marc.herbert@intel.com

@marc-hb
marc-hb marked this pull request as ready for review May 20, 2020 00:30
@marc-hb
marc-hb requested a review from jajanusz as a code owner May 20, 2020 00:30
@marc-hb

marc-hb commented May 20, 2020

Copy link
Copy Markdown
Collaborator Author

The only Travis failure is the following one which is great because the purpose of this patch is exactly to turn that green failure to red. The test is tested.

m4:/home/sof/work/sof.git/tools/topology/sof/pipe-volume-capture-16khz.m4:54: bad expression in eval (bad input): 2 * 2 * CHANNELS * 16
m4:/home/sof/work/sof.git/tools/topology/sof/pipe-volume-capture-16khz.m4:57: bad expression in eval (bad input): 2 * 2 * CHANNELS * 16

PR #2954 fixes the actual failure.

@plbossart plbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fix, thanks!

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most warning are issues. @marc-hb Thanks for the fix.

@lgirdwood

Copy link
Copy Markdown
Member

@zrombel I'm seeing all green boxes on CI build ? are we good ?

@zrombel

zrombel commented May 20, 2020

Copy link
Copy Markdown

Hi @lgirdwood there is a problem with building tools. See attached log.
I see that there is no log from building tools on PR CI Viewer, I will report a task to add it.
PR2955-build-tools-full-log.txt

@lgirdwood

Copy link
Copy Markdown
Member

@zrombel thanks, the fix for that issue has been merged now. Lets rerun.

@zrombel

zrombel commented May 20, 2020

Copy link
Copy Markdown

Build rerun, everything is ok.

As seen in PR thesofproject#2954, no one ever notices m4 warnings. As PR thesofproject#2954 will
remove sof-tgl-rt711-i2s-rt1308-nohdmi.conf and the only m4 warning
currently, this is a great opportunity to upgrade m4 warnings to
errors.

Note neither Travis nor github have the concept of a "warning", they can
only report success or failure.

This fix can be considered part of the "green failures" family.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb

marc-hb commented May 20, 2020

Copy link
Copy Markdown
Collaborator Author

Pure rebase after #2954 removal and the error is gone as expected.

@lgirdwood
lgirdwood merged commit d4e508c into thesofproject:master May 20, 2020
@marc-hb
marc-hb deleted the m4-werr branch May 21, 2020 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants