[
https://issues.apache.org/jira/browse/BEAM-14440?focusedWorklogId=768013&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-768013
]
ASF GitHub Bot logged work on BEAM-14440:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 09/May/22 16:52
Start Date: 09/May/22 16:52
Worklog Time Spent: 10m
Work Description: jrmccluskey commented on code in PR #17587:
URL: https://github.com/apache/beam/pull/17587#discussion_r868218392
##########
sdks/go/pkg/beam/core/graph/coder/bytes_test.go:
##########
@@ -59,3 +59,23 @@ func TestEncodeDecodeBytes(t *testing.T) {
})
}
}
+
+func FuzzEncodeDecodeBytes(f *testing.F) {
Review Comment:
The continuous running element is something we can't/don't do right now, the
idea would be to eventually add Beam to OSS Fuzz
(https://google.github.io/oss-fuzz/) so we have that continuous coverage.
Right now these are mostly proof of concept and relatively simple. I don't
anticipate a big push to add fuzz testing everywhere, just targeted coverage
where appropriate over time.
Issue Time Tracking
-------------------
Worklog Id: (was: 768013)
Time Spent: 1h 20m (was: 1h 10m)
> Add coder fuzz tests to the Go SDK
> ----------------------------------
>
> Key: BEAM-14440
> URL: https://issues.apache.org/jira/browse/BEAM-14440
> Project: Beam
> Issue Type: Improvement
> Components: sdk-go
> Reporter: Jack McCluskey
> Assignee: Jack McCluskey
> Priority: P3
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> With the Go SDK now on minimum Go version 1.18, fuzz tests can be added to
> the test corpus. The coder package is a good place to start with this, as we
> handle primitives that can be directly generated by Go's native fuzz testing
> and can check that we are getting the same values out after encoding and
> decoding.
>
> An overview of potential fuzz testing in the Beam Go SDK can be found here:
> https://docs.google.com/document/d/1VHe5xFHjsmgOj2upH2k4zT90S5SCPtGYSJNcvPj5fig/edit?usp=sharing
--
This message was sent by Atlassian Jira
(v8.20.7#820007)