Azure / Azure/azure-sdk-for-rust

Make sure generated code is up to date in PRs

Open
#2,057 5 comments 0 reactions 0 assignees View on GitHub
Client CodeGen EngSys
Dominant language
Rust
Stars
884
Forks
365
Avg merge
2d 19h
Merged PRs (30d)
112

Description

Like in other languages, we need a way to make sure that generated code is up to date with the configured emitter version in the repo. This should fail the build and ask people to regenerate. We should constrain it to just the crates they touched. Plenty of precedent to draw upon from other languages.

Possibly related to #1972.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Review the existing PR build configuration and the approach discussed in related issue #1972, then define the check around only the crates touched by a PR. Done means the build fails when generated code does not match the configured emitter version and asks contributors to regenerate it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.