Skip to content

codegen: fail build on generator exception instead of stderr log #15

Description

@bokelley

Follow-up from #12 review.

SchemaCodegen.kt:62-65 catches any Exception from a per-schema generation attempt, prints the stack trace to stderr, and continues. The result is that CI shows a green build with one or more types silently missing from the generated output.

Acceptance: any exception from per-schema generation either fails the task immediately, or accumulates into a codegen-errors.txt artifact that the task fails on at the end. The build should never produce incomplete output and still pass.

Refs: build-logic/src/main/kotlin/codegen/SchemaCodegen.kt:62-65

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions