Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented May 28, 2023

See thesofproject#7675 why.

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

marc-hb commented May 31, 2023

@jonathanmetzman, @andyross, @cujomalainey : is there a way to use some older branch of oss-fuzz? Or is only the master branch usable?

In this test PR I semi-randomly picked the existing branch https://github.com/google/oss-fuzz/commits/links. It's old enough for the purpose of this test.

In https://github.com/thesofproject/sof/actions/runs/5101622354/jobs/9170621114?pr=7699
I can see that the build seems to point at this older links branch in a number of places. HOWEVER:

2023-05-28 01:03:18,439 - root - INFO - Running: docker build -t gcr.io/oss-fuzz/sound-open-firmware 
   --file /opt/oss-fuzz/projects/sound-open-firmware/Dockerfile /opt/oss-fuzz/projects/sound-open-firmware.

The /opt/oss-fuzz/projects/sound-open-firmware/Dockerfile file used here is clearly NOT from the links branch (currently at commit 761128ec4121) because it starts by running apt-get install -y gettext git libc6-dev-i386 libglib2.0-dev libncurses5-dev libtool ninja-build python3-pip which is from much later with https://github.com/google/oss-fuzz/pull/10342/files. So it seems to be picked from master anyway. How come?

Thanks in advance!

@cujomalainey
Copy link
Contributor

@marc-hb I think that is a github-actions question

I still don't see the benefit here. This branch and IPC3 are mostly stable/archived. Hence anything we fuzz on main we should be able to cherry-pick down. Nothing new should be landing on this branch so I don't see the benefit of continued fuzzing past support on main.

@marc-hb
Copy link
Collaborator Author

marc-hb commented May 31, 2023

Thanks @cujomalainey.

Hence anything we fuzz on main we should be able to cherry-pick down

But main is likely to become IPC type 4 only while stable-v2.2 is IPC type 3 only. Then cherry-picking won't work; too different.

Nothing new should be landing on this branch so I don't see the benefit of continued fuzzing past support on main.

Fair enough! Could you please copy your last comment in a commit message, delete .github/workflows/ipc_fuzzer.yml in the stable-v2.2 branch and submit a PR> This should be enough to make CI on that branch green again; much appreciated!

PS: I'm still curious whether oss-fuzz branches can be used or not. A similar situation could happen in other projects; any project can branch.

marc-hb added a commit to marc-hb/sof that referenced this pull request Jun 13, 2023
This is a partial fix for thesofproject#7709; doc updates still to be done.

Quoting @cujomalainey in
- thesofproject#7699
> I still don't see the benefit here. This branch and IPC3 are mostly
> stable/archived. Hence anything we fuzz on main we should be able to
> cherry-pick down. Nothing new should be landing on this branch so I
> don't see the benefit of continued fuzzing past support on main.

Quoting @andyross in
- thesofproject#7675
> I guess my gut says that fuzzing is a technique for validation of
> new code. It has minimal (but sure, not zero) value on maintenance
> branches that are expected to be protocol-compatible in perpetuity.

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

marc-hb commented Jun 13, 2023

stable-v2.2 removal submitted in

kv2019i pushed a commit that referenced this pull request Jun 14, 2023
This is a partial fix for #7709; doc updates still to be done.

Quoting @cujomalainey in
- #7699
> I still don't see the benefit here. This branch and IPC3 are mostly
> stable/archived. Hence anything we fuzz on main we should be able to
> cherry-pick down. Nothing new should be landing on this branch so I
> don't see the benefit of continued fuzzing past support on main.

Quoting @andyross in
- #7675
> I guess my gut says that fuzzing is a technique for validation of
> new code. It has minimal (but sure, not zero) value on maintenance
> branches that are expected to be protocol-compatible in perpetuity.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
marc-hb added a commit to marc-hb/sof that referenced this pull request Sep 22, 2023
This is a partial fix for thesofproject#7709; doc updates still to be done.

Quoting @cujomalainey in
- thesofproject#7699
> I still don't see the benefit here. This branch and IPC3 are mostly
> stable/archived. Hence anything we fuzz on main we should be able to
> cherry-pick down. Nothing new should be landing on this branch so I
> don't see the benefit of continued fuzzing past support on main.

Quoting @andyross in
- thesofproject#7675
> I guess my gut says that fuzzing is a technique for validation of
> new code. It has minimal (but sure, not zero) value on maintenance
> branches that are expected to be protocol-compatible in perpetuity.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
(cherry picked from commit 3ddd15c)
lgirdwood pushed a commit that referenced this pull request Sep 26, 2023
This is a partial fix for #7709; doc updates still to be done.

Quoting @cujomalainey in
- #7699
> I still don't see the benefit here. This branch and IPC3 are mostly
> stable/archived. Hence anything we fuzz on main we should be able to
> cherry-pick down. Nothing new should be landing on this branch so I
> don't see the benefit of continued fuzzing past support on main.

Quoting @andyross in
- #7675
> I guess my gut says that fuzzing is a technique for validation of
> new code. It has minimal (but sure, not zero) value on maintenance
> branches that are expected to be protocol-compatible in perpetuity.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
(cherry picked from commit 3ddd15c)
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.

2 participants