Skip to content

ci: Remove the fuzz test job#1

Merged
adamwg merged 1 commit into
crossplane:mainfrom
adamwg:awg/remove-fuzz
May 5, 2026
Merged

ci: Remove the fuzz test job#1
adamwg merged 1 commit into
crossplane:mainfrom
adamwg:awg/remove-fuzz

Conversation

@adamwg

@adamwg adamwg commented May 5, 2026

Copy link
Copy Markdown
Member

Description of your changes

We don't actually have any fuzz tests yet, and this job relies on some configuration existing in the google oss-fuzz repository.

I have:

We don't actually have any fuzz tests yet, and this job relies on some
configuration existing in the google oss-fuzz repository.

Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
@adamwg adamwg requested a review from a team as a code owner May 5, 2026 20:47
@adamwg adamwg requested a review from bobh66 May 5, 2026 20:47
@adamwg adamwg merged commit f4564b3 into crossplane:main May 5, 2026
9 checks passed
@adamwg adamwg deleted the awg/remove-fuzz branch May 5, 2026 22:02
jcogilvie added a commit that referenced this pull request Jun 15, 2026
Reworks the validate package to address eight comments from the PR
review pass.

Renderer: polymorphic dispatch
* render.Renderer is now an interface; textRenderer, jsonRenderer, and
  yamlRenderer each implement it as their own concrete type. Adding a
  new format means adding a Renderer and registering it in the
  renderers map — no switch on string. (review #3, #4)
* OutputFormat.Render dispatches via the registry; the empty string
  defaults to text for safety of zero-value callers.
* renderText handles all per-resource line emission inline; the
  per-error prefix selection is encapsulated in a private helper that
  does not pretend to handle the [✓] or "[!] could not find" cases.

SchemaValidate: decomposed
* Extracted validateResource as a per-resource helper. SchemaValidate's
  body is now a clean fan-out and the //nolint:gocognit suppression is
  gone. (review #2)

Tests: tightened, idiomatic, end-to-end
* TestSchemaValidate now asserts on the full []FieldValidationError
  per resource (Type + Field), with cmpopts.IgnoreFields hiding the
  Message and Value strings that drift across k8s validator versions.
  Dropped the bespoke containsAllErrorTypes "at least once" matcher.
  (review #7)
* All tests that take a context now use t.Context() instead of
  context.Background(). (review #6)
* render text tests no longer compare full output bytes against a
  string constant; they assert on line counts plus per-line substrings
  with a generated summary line. (review #5)
* Dropped the validateAndRender helper on Cmd. The validation +
  rendering + error-shaping logic lives directly in Cmd.Run.
  cmd_test.go now drives the command end-to-end through kong.Parse +
  ctx.Run against real YAML fixtures, capturing stdout from a real
  kong.Context. To keep the e2e run offline, testdata/cache contains a
  stand-in crossplane image package.yaml and the tests pass a matching
  --crossplane-image. (review #1, #8)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
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