chore: regenerate models from upstream schemas #21

Merged
stack72 merged 1 commit from automated/regenerate-models into main 2026-06-01 17:54:50 +00:00
Owner

Summary

Automated regeneration of extension models from upstream provider schemas.

Schema Sources

  • AWS: CloudFormation Resource Schema
  • GCP: Google Discovery Documents
  • Hetzner: Hetzner Cloud OpenAPI spec
  • DigitalOcean: DigitalOcean OpenAPI spec

Review Notes

  • Files under model/ are auto-generated — review the manifest.yaml diffs for version changes
  • CalVer versioning with content-based change detection ensures versions only bump when content changes
  • Publishing happens automatically when this PR is merged (via the publish workflow)
## Summary Automated regeneration of extension models from upstream provider schemas. ### Schema Sources - **AWS**: CloudFormation Resource Schema - **GCP**: Google Discovery Documents - **Hetzner**: Hetzner Cloud OpenAPI spec - **DigitalOcean**: DigitalOcean OpenAPI spec ### Review Notes - Files under `model/` are auto-generated — review the `manifest.yaml` diffs for version changes - CalVer versioning with content-based change detection ensures versions only bump when content changes - Publishing happens automatically when this PR is merged (via the publish workflow)
chore: regenerate models from upstream schemas (2026-06-01)
All checks were successful
CI / issue-lifecycle - test (pull_request) Has been skipped
CI / issue-lifecycle - lockfile up to date (pull_request) Has been skipped
CI / ssh - check (pull_request) Has been skipped
CI / ssh - fmt (pull_request) Has been skipped
CI / ssh - lint (pull_request) Has been skipped
CI / ssh - test (pull_request) Has been skipped
CI / ssh - lockfile up to date (pull_request) Has been skipped
CI / gcp models - sample check (pull_request) Successful in 1m39s
CI / kubernetes - check (pull_request) Has been skipped
CI / kubernetes - fmt (pull_request) Has been skipped
CI / kubernetes - lint (pull_request) Has been skipped
CI / kubernetes - lockfile up to date (pull_request) Has been skipped
CI / workflows/gcs-bootstrap - check (pull_request) Has been skipped
CI / workflows/s3-bootstrap - check (pull_request) Has been skipped
CI / workflows/gcs-bootstrap - fmt (pull_request) Has been skipped
CI / cve/dirtyfrag - check (pull_request) Has been skipped
CI / cve/dirtyfrag - fmt (pull_request) Has been skipped
CI / workflows/gcs-bootstrap - lockfile up to date (pull_request) Has been skipped
CI / Adversarial Code Review (pull_request) Has been skipped
CI / workflows/s3-bootstrap - lint (pull_request) Has been skipped
CI / workflows/s3-bootstrap - fmt (pull_request) Has been skipped
CI / workflows/gcs-bootstrap - lint (pull_request) Has been skipped
CI / workflows/gcs-bootstrap - test (pull_request) Has been skipped
CI / workflows/s3-bootstrap - test (pull_request) Has been skipped
CI / workflows/s3-bootstrap - lockfile up to date (pull_request) Has been skipped
CI / cve/dirtyfrag - lint (pull_request) Has been skipped
CI / cve/dirtyfrag - test (pull_request) Has been skipped
CI / CI Security Review (pull_request) Has been skipped
CI / Claude Code Review (pull_request) Successful in 3m56s
CI / Merge Gate (pull_request) Successful in 26s
55c885719c
Author
Owner

Code Review

Blocking Issues

None.

Suggestions

  1. CLAUDE.md rule alignment for automated regeneration: The review instructions state that model file changes beyond version/upgrade entries require corresponding codegen/ changes. This PR changes model/ files with schema content updates (new fields, new enum values, new resource actions) but makes no changes to codegen/. Per the letter of the stated rule this would be a blocking issue.

    However, contextual evidence strongly indicates this is legitimate automated regeneration rather than hand-editing:

    • The commit author is forgejo-actions[bot] (the automated CI workflow).
    • The commit message matches the standard chore: regenerate models from upstream schemas pattern.
    • Every previous regeneration on main (#8, #11, #14, #19, #177, …) follows the identical pattern: only model/ changes, no codegen/ changes. All were merged without issue.
    • The codegen/schemas/ directory contains only a .gitkeep — fetched schemas are not committed, so a pure upstream-schema-driven regeneration never produces codegen/ changes.
    • The changes themselves (new Zod schema fields, added enum variants, new resource action stubs) are structurally consistent with code-generator output, not hand-editing.

    The codegen/ also changes requirement in CLAUDE.md appears to describe the case where the codegen pipeline scripts are being modified alongside regeneration, not routine schema-driven regeneration. Consider clarifying CLAUDE.md to explicitly call out automated regeneration as a third legitimate case, so future reviewers aren't faced with the same ambiguity.

## Code Review ### Blocking Issues None. ### Suggestions 1. **CLAUDE.md rule alignment for automated regeneration**: The review instructions state that model file changes beyond version/upgrade entries require corresponding `codegen/` changes. This PR changes `model/` files with schema content updates (new fields, new enum values, new resource actions) but makes no changes to `codegen/`. Per the letter of the stated rule this would be a blocking issue. However, contextual evidence strongly indicates this is legitimate automated regeneration rather than hand-editing: - The commit author is `forgejo-actions[bot]` (the automated CI workflow). - The commit message matches the standard `chore: regenerate models from upstream schemas` pattern. - Every previous regeneration on `main` (#8, #11, #14, #19, #177, …) follows the identical pattern: only `model/` changes, no `codegen/` changes. All were merged without issue. - The `codegen/schemas/` directory contains only a `.gitkeep` — fetched schemas are not committed, so a pure upstream-schema-driven regeneration never produces `codegen/` changes. - The changes themselves (new Zod schema fields, added enum variants, new resource action stubs) are structurally consistent with code-generator output, not hand-editing. The `codegen/ also changes` requirement in CLAUDE.md appears to describe the case where the *codegen pipeline scripts* are being modified alongside regeneration, not routine schema-driven regeneration. Consider clarifying CLAUDE.md to explicitly call out automated regeneration as a third legitimate case, so future reviewers aren't faced with the same ambiguity.
stack72 deleted branch automated/regenerate-models 2026-06-01 17:54:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
swamp-club/swamp-extensions!21
No description provided.