oxidecomputer / oxidecomputer/omicron
cargo xtask openapi generate should warn users about tests that need updating
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
Specifically, after adding an endpoint to an external Nexus API, test_unauthorized_coverage will fail. It needs to be re-run with EXPECTORATE=overwrite. Warning will prevent users from finding out from CI and waiting for another round trip.
While we could automatically run this test from within cargo xtask openapi generate it would significantly slow down that operation as it would require building nexus and running the test even for changes that are not to nexus.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The entry point is cargo xtask openapi generate; start by locating its implementation and reviewing how it handles external Nexus API changes. Check test_unauthorized_coverage and its EXPECTORATE=overwrite workflow, then verify the command warns users to rerun the test without executing it automatically.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, rust
- Domain
- api, testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100