Skip to content

docs: document backport workflow for generator fixes to stable branches#111

Open
jwulf wants to merge 1 commit into
mainfrom
docs/backport-generator-fixes
Open

docs: document backport workflow for generator fixes to stable branches#111
jwulf wants to merge 1 commit into
mainfrom
docs/backport-generator-fixes

Conversation

@jwulf
Copy link
Copy Markdown
Member

@jwulf jwulf commented Apr 17, 2026

Adds a "Backporting generator fixes to stable/* branches" section to .github/copilot-instructions.md, mirroring the equivalent section recently added to the JS SDK (camunda/orchestration-cluster-api-js#161).

What & why

Codifies the strategy we have been using on the JS SDK and now want to apply consistently across all three SDK repos: when a Dependabot bump of a generator dependency (e.g. Microsoft.OpenApi, YamlDotNet) breaks generation on stable/N, we should land a generator-only fix on main and cherry-pick it to stable/N so the bump can succeed.

Definition of "generator code" (for this repo)

  • src/Camunda.Orchestration.Sdk.Generator/ (the generator project)
  • src/Camunda.Orchestration.Sdk/Runtime/ (hand-written runtime, ships unchanged)
  • src/Camunda.Orchestration.Sdk/CamundaClient.cs (partial-class infrastructure)
  • scripts/build*.sh, scripts/bundle-spec.sh
  • The camunda-schema-bundler integration

NOT generator code (no auto-backport):

  • src/Camunda.Orchestration.Sdk/Generated/ (regenerated)
  • Anything that changes public API surface or runtime behaviour

Why it's safe here

.github/workflows/release.yml already regenerates Generated/ on every release of stable/*, auto-commits drift as fix(gen): regenerate artifacts, and publishes via semantic-release. A generator-only cherry-pick:

  1. Doesn't change Generated/ under the currently pinned generator dependencies (verify locally).
  2. Lets the next Dependabot bump succeed.
  3. Auto-publishes a clean N.x patch with no behavioural change.

Notes

@jwulf
Copy link
Copy Markdown
Member Author

jwulf commented Apr 23, 2026

@dependabot rebase

Port the backport-workflow section into AGENTS.md (the consolidated agent
guidelines file). The previous home, .github/copilot-instructions.md, was
removed as part of #121's docs consolidation, so the original commit on
this branch could not be cherry-picked verbatim.

The content is unchanged from the original PR — definition of generator
code (including runtime + partial-class infrastructure), why backporting
is safe (release CI regenerates Generated/ on stable/*), the cherry-pick
workflow, the local verification checklist, and the anti-patterns.
@jwulf jwulf force-pushed the docs/backport-generator-fixes branch from 0f0ff31 to 77f4940 Compare April 29, 2026 06:21
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.

1 participant