Skip to content

Run generate-clijson cleanup via dedicated generate-clijson-post task - #6924

Merged
janniklasrose merged 5 commits into
mainfrom
janniklasrose/codegen-post-generate
Oct 12, 2026
Merged

janniklasrose merged 5 commits into
mainfrom
janniklasrose/codegen-post-generate

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Human TL;DR: move deterministic post cli.json generation steps into a separate generate-clijson-post Task. Preparation for SDK auto-bumper which runs genkit instead of task generate-clijson.


Changes

Relocate the post-genkit update-sdk cleanup for generate-clijson out of the step into a separate generate-clijson-post step.

Why

SDK bumper will not run task generate-clijson but genkit directly. The CLI-specific cleanup can be triggered separately.

This pull request and its description were written by Isaac.

Relocate the post-`genkit update-sdk` cleanup (restore .gitattributes, relocate
the tagging scripts, rewrite and format tagging.yml, drop the unused
next-changelog.yml, scrub internal proxy URLs from the genkit *.py.lock files)
from the generate-clijson Taskfile steps into .codegen.json's
toolchain.post_generate, so genkit performs it for every update-sdk caller
rather than only `./task generate-clijson`.

The SDK-version consistency check stays in the Taskfile for faster feedback when
running generate-clijson manually.

Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 97d5425

Run: 37955493181

Env 🔄​flaky ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 276 16 4:22
✅​ aws-windows-latest-4core-16gb 278 14 4:00
✅​ azure linux-2core-8gb 275 16 4:14
🔄​ azure-windows-latest-4core-16gb 1 276 14 6:11
✅​ gcp linux-2core-8gb 276 16 4:19
✅​ gcp-windows-latest-4core-16gb 278 14 3:37
Test Name azure-windows-latest-4core-16gb
🔄​ TestAccept 🔄​f
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:58 aws-windows-latest-4core-16gb TestAccept
3:36 gcp-windows-latest-4core-16gb TestAccept
2:46 azure-windows-latest-4core-16gb TestAccept

@janniklasrose
janniklasrose requested a review from pietern October 5, 2026 11:26
@janniklasrose
janniklasrose marked this pull request as ready for review October 5, 2026 11:26
@janniklasrose
janniklasrose requested a review from a team as a code owner October 5, 2026 11:26
Comment thread .codegen.json Resolved
janniklasrose and others added 3 commits October 9, 2026 15:06
Instead of running the post-`genkit update-sdk` cleanup from .codegen.json's toolchain.post_generate, keep it in the Taskfile as a dedicated generate-clijson-post task that generate-clijson references at the end. The SDK bumper can then invoke the same cleanup after its own update-sdk run.

The cleanup steps (restore .gitattributes, drop next-changelog.yml, relocate the tagging scripts, rewrite and format tagging.yml, scrub internal proxy URLs from the genkit *.py.lock files) and the trailing 'ws' whitespace step all move into the new task. The SDK-version consistency check stays inline in generate-clijson for faster feedback when run manually.

Co-authored-by: Isaac <no-reply@databricks.com>
…ate' into janniklasrose/codegen-post-generate
@janniklasrose
janniklasrose requested a review from denik October 9, 2026 16:09
@janniklasrose janniklasrose changed the title Run generate-clijson cleanup via .codegen.json post_generate Run generate-clijson cleanup via dedicated generate-clijson-post task Oct 12, 2026

@denik denik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SDK bumper will not run task generate-clijson but genkit directly.

why cannot we fix it to run ./task something?

@janniklasrose
janniklasrose added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 3fe720c Oct 12, 2026
35 checks passed
@janniklasrose
janniklasrose deleted the janniklasrose/codegen-post-generate branch October 12, 2026 11:26
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