Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
Update fuzzer build in CI to use oss-fuzz tooling#4132
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| --- | ||
| # For the actual fuzzer see tools/oss-fuzz/README. | ||
| # also see | ||
| # https://google.github.io/oss-fuzz/getting-started/continuous-integration/ | ||
| # | ||
| # Build and run fuzzer for 5s just to check that it runs properly. If it | ||
| # consistently fails in under 5s you probably did something wrong | ||
| name: IPC fuzzer compile test | ||
| # 'workflow_dispatch' allows running this workflow manually from the | ||
| # 'Actions' tab | ||
| # yamllint disable-line rule:truthy | ||
| on: [pull_request, workflow_dispatch] | ||
cujomalainey marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| jobs: | ||
| ipc-fuzzer-build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Build Fuzzers | ||
| uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | ||
| with: | ||
| oss-fuzz-project-name: 'sound-open-firmware' | ||
| - name: Run Fuzzers | ||
| uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | ||
cujomalainey marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| with: | ||
| oss-fuzz-project-name: 'sound-open-firmware' | ||
| language: c | ||
| fuzz-seconds: 5 | ||
cujomalainey marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -139,16 +139,3 @@ jobs: | ||
| PLATFORM: ${{ matrix.platform }} | ||
| run: ./scripts/docker-qemu.sh | ||
| ../sof.git/scripts/qemu-check.sh ${PLATFORM} | ||
| yamllint-gh: | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @marc-hb im pretty sure it didnt actually run because it is looking for this job, we need update the protected branches matches Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure why the summary did not update but for sure the check itself ran. Quoting https://github.com/thesofproject/sof/pull/4132/checks?check_run_id=2606149741: b5b59e7ef0261 is the last commit you pushed. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that is the new yamllint job I added which is Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I keep looking but I don't see anything stuck sorry, I only see the status not updated in the summary. ( https://github.com/thesofproject/sof/runs/2607493012?check_suite_focus=true ran again fine and the status was not updated again)
| ||
| name: yamllint /.github/workflows/ | ||
| runs-on: ubuntu-20.04 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: apt install yamllint | ||
| run: sudo apt-get -y install yamllint | ||
| - name: yamllint github actions | ||
| run: yamllint .github/workflows/pull-request.yml | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
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.
Have you considered moving this to a new
yamllint.ymlfile? With hindsight I think using one big file for everything was a Github Action beginner mistake.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.
I have nothing against it. i just figured it would make more sense to patch sanity check tools into the same workflow "yamllint, checkpatch, pep8, etc.." thoughts? I agree things like build tools or actual builds should be separate files
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.
Why not, in that case maybe change the titles a bit because right now this is called "checkpatch" at every level: workflow, job and what not. Warning: github actions "headings" look slightly different in merged vs unmerged PRs, have a look at one example of each.