Skip to content

.github: add shallow checkpatch to Github Actions - #3899

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
marc-hb:gh-checkpatch
Mar 5, 2021
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
marc-hb:gh-checkpatch

Conversation

@marc-hb

@marc-hb marc-hb commented Mar 4, 2021

Copy link
Copy Markdown
Collaborator

Let's try to run checkpatch in an open-source and fast way while
leveraging Github's very good user interface.

Run checkpatch both with and without --strict; this has been a source of
confusion in the past, see
thesofproject/linux#1988

Note this attempt does not rely on git merge-bases which has been found
to be not compatible with shallow cloning:
thesofproject/linux#2556

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

Let's try to run checkpatch in an open-source and fast way while
leveraging Github's very good user interface.

Run checkpatch both with and without --strict; this has been a source of
confusion in the past, see
thesofproject/linux#1988

Note this attempt does not rely on git merge-bases which has been found
to be not compatible with shallow cloning:
thesofproject/linux#2556

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

Copy link
Copy Markdown
Member

@marc-hb can you check CI - I assume you expect checkpatch to fail here ?

@marc-hb

marc-hb commented Mar 4, 2021

Copy link
Copy Markdown
Collaborator Author

https://github.com/thesofproject/sof/pull/3899/checks?check_run_id=2034401175 completed in 13 seconds whereas https://sof-ci.01.org/sofpr/PR3899/build8256/checkpatch/ took more than 2 minutes to complete (probably because of GH polling for the most part)

This one shows complete logs and the implementation can be accessed and maintained by anyone outside Intel. It runs both --strict and not.

@marc-hb can you check CI - I assume you expect checkpatch to fail here ?

I typically spell "check-patch" to dodge that warning but in this case I left it for demo purposes.

@lgirdwood
lgirdwood merged commit f59bb62 into thesofproject:master Mar 5, 2021
@marc-hb
marc-hb deleted the gh-checkpatch branch March 5, 2021 18:34
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.

4 participants