Azure / Azure/autorest

Openapi To Typespec flaky unit test

Open
#5,119 0 comments 0 reactions 0 assignees View on GitHub
openapi-to-tsp
Dominant language
TypeSpec
Stars
4.8k
Forks
736
Avg merge
2d 14h
Merged PRs (30d)
1

Description

It seems like its randomly not generating certain examples

Warning gets logged by tsp autorest emitter
```
warning @azure-tools/typespec-autorest/example-loading: Skipping example loading from /mnt/vss/_work/1/s/packages/extensions/openapi-to-typespec/test/arm-test/tsp-output/examples/2023-10-12 because there was an error reading the directory.

```

it always a different spec and every run has between 1-2 failures

Contributor guide

Open the contributing guide

Research direction

Start with the OpenAPI-to-TypeSpec test area at packages/extensions/openapi-to-typespec/test/arm-test/tsp-output/examples/2023-10-12 and reproduce the run that reports the example-loading warning. Trace why generated examples are intermittently missing across different specs; done means the unit test runs consistently without the warning or failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.