Skip to content

feat(export): strict mode, layout verify, golden tests, revive#37

Merged
fmenesesg merged 1 commit into
mainfrom
feat/export-quality-bundle
Jun 11, 2026
Merged

feat(export): strict mode, layout verify, golden tests, revive#37
fmenesesg merged 1 commit into
mainfrom
feat/export-quality-bundle

Conversation

@fmenesesg

Copy link
Copy Markdown
Collaborator

Proposed change

Bundle of architecture review follow-ups for export quality and static analysis.

Type of change

  • New feature
  • Tests / CI

RHCL checklist

  • Tests added or updated (go test ./... or mvn test / npm test)
  • CI does not introduce -DskipTests without justification
  • No secrets in diff (tokens, kubeconfigs, OIDC secrets)
  • rhcl-ai docs updated if export/import contract changes
  • PR description and docs in English
  • Tested in local lab if applicable (seed → export → analyze)

C2 — --strict

  • Fails export when any product sidecar Admin API GET fails (ErrStrictSidecar)
  • Flag: threescale-export --strict

T12 — Integration assertions

  • export.VerifyExport(root) validates manifest schema, counts, and required dirs/files
  • TestIntegrationExport calls it after live export

T13 — Golden layout

  • TestExportGoldenLayout compares sorted export paths to testdata/golden-export-layout.txt

Revive linter

  • Enabled with package-comments/exported/unexported-return disabled to limit noise

Test plan

  • TestExportStrictFailsOnMissingSidecar
  • TestVerifyExportLayout + TestExportGoldenLayout
  • Integration test updated (runs with -tags=integration + secrets)
  • golangci-lint run ./... — clean
  • go test ./... — 125 tests; coverage 81.3%

Closes #36

Made with Cursor

Add --strict export flag (C2), VerifyExport for integration assertions
(T12), golden layout test (T13), and enable revive in golangci-lint.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fmenesesg fmenesesg requested a review from pcastelo as a code owner June 11, 2026 20:58
@fmenesesg fmenesesg added area/ci Pipelines CI/CD area/feature Feature request type:feature New feature or enhancement labels Jun 11, 2026
@fmenesesg fmenesesg merged commit dd0e2e6 into main Jun 11, 2026
1 check passed
@fmenesesg fmenesesg deleted the feat/export-quality-bundle branch June 11, 2026 21:00
fmenesesg added a commit that referenced this pull request Jun 11, 2026
…ndle

feat(export): strict mode, layout verify, golden tests, revive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci Pipelines CI/CD area/feature Feature request type:feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Export strict mode, layout verification, golden tests, revive linter

1 participant