Skip to content

Fix glue-verify-code-gen CI: rebase onto main + code-generator ordering fix - #5

Open
HansG89 wants to merge 4 commits into
JonathanGraniero:jg_database_crd_supportfrom
HansG89:jg_database_crd_support
Open

Fix glue-verify-code-gen CI: rebase onto main + code-generator ordering fix#5
HansG89 wants to merge 4 commits into
JonathanGraniero:jg_database_crd_supportfrom
HansG89:jg_database_crd_support

Conversation

@HansG89

@HansG89 HansG89 commented Aug 19, 2026

Copy link
Copy Markdown

Root cause

glue-verify-code-gen was failing on this branch due to a Markdown list-marker mismatch (- vs *) between helm/crds/glue.services.k8s.aws_jobs.yaml and config/crd/bases/glue.services.k8s.aws_jobs.yaml for the same JobMode enum doc text.

This is an upstream aws-controllers-k8s/code-generator bug, not something introduced in this branch:

  • code-generator/scripts/build-controller.sh runs controller-gen crd for config/crd/bases before its gofmt -w pass.
  • code-generator/scripts/build-controller-release.sh (invoked right after, same make build-controller target, same working tree) runs a second controller-gen crd for helm/crds after that gofmt -w pass already ran.
  • Go's doc-comment formatter (Go 1.19+) rewrites * list markers to -. Since the two controller-gen crd calls straddle that rewrite, the two output targets permanently disagree on marker style for identical source text, regenerating locally just flips which file is "wrong."

Fix upstream: aws-controllers-k8s/code-generator#737 (moves the gofmt -w call to run immediately after ack-generate apis, before either controller-gen crd invocation, so both read consistently-formatted source).

What this PR does

  1. Merges current aws-controllers-k8s/glue-controller main into this branch (resolves the version-bump conflict in apis/v1alpha1/ack-generate-metadata.yaml — took main's newer values since that file is fully regenerated anyway).
  2. Regenerates all generated code (apis/, config/, helm/, pkg/) using the patched code-generator from PR #737 above, so config/crd/bases and helm/crds now agree.

Verified locally against the actual CI script (aws-controllers-k8s/test-infra's cd/scripts/verify-code-gen.sh, the same script Prow's glue-verify-code-gen job runs):

[INFO] Success: Generated code matches the committed code for glue-controller.
[INFO] No manual modifications detected.

No Database CRD schema or behavior changes, diff is confined to the main rebase plus generated-file formatting.

Feel free to merge this straight into jg_database_crd_support to unblock CI on aws-controllers-k8s#16.

michaelhtm and others added 4 commits August 12, 2026 23:41
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
…llers-k8s#29)

### Update to ACK runtime `v0.62.0`, code-generator `v0.62.1`

----------

* ACK code-generator `v0.62.1` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.62.1)
* ACK runtime `v0.62.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.62.0)

----------

NOTE:
This PR increments the release version of service controller from `v1.1.0` to `v1.1.1`

Once this PR is merged, release `v1.1.1` will be automatically created for `glue-controller`

**Please close this PR, if you do not want the new patch release for `glue-controller`**

----------

#### stdout for `make build-controller`:

```
building ack-generate ... ok.
installing controller-gen v0.19.0 ... ok.
==== building glue-controller ====
Copying common custom resource definitions into glue
Building Kubernetes API objects for glue
Generating deepcopy code for glue
Generating custom resource definitions for glue
Building service controller for glue
Running GO mod tidy
Generating RBAC manifests for glue
Running gofmt against generated code for glue
Updating additional GitHub repository maintenance files
==== building glue-controller release artifacts ====
Building release artifacts for glue-v1.1.1
Generating common custom resource definitions
Generating custom resource definitions for glue
Generating RBAC manifests for glue
```

----------

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
…port

# Conflicts:
#	apis/v1alpha1/ack-generate-metadata.yaml
Regenerates the controller using aws-controllers-k8s/code-generator#737,
which moves gofmt's doc-comment normalization to run before either
controller-gen crd invocation, instead of only after the first one.

Without this fix, config/crd/bases/*.yaml and helm/crds/*.yaml disagree
on Markdown list-marker style (* vs -) for the same enum description
text (e.g. Job.spec.jobMode), which is what was failing
glue-verify-code-gen on this PR. Both CRD YAML targets now agree.
@HansG89

HansG89 commented Aug 21, 2026

Copy link
Copy Markdown
Author

Hey @JonathanGraniero 👋 opened this to unblock CI on aws-controllers-k8s#16 — rebased onto main + pulled in the code-generator fix from aws-controllers-k8s/code-generator#737. Verified locally, should be a clean merge into your branch. Let me know if anything looks off!

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.

3 participants