Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev tool] Add design docs for README snippets #24537

Merged
merged 19 commits into from
Mar 28, 2023
Merged

Conversation

mpodwysocki
Copy link
Member

Packages impacted by this PR

  • [dev-tool]

Issues associated with this PR

Describe the problem that is addressed by this PR

Adds a design document on how we are going to do snippet extraction for READMEs and source code.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

Copy link
Member

@witemple-msft witemple-msft left a comment

Choose a reason for hiding this comment

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

Updated a bunch of text to reflect the state of the extractor.

design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Show resolved Hide resolved
design/readme-snippets.md Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
design/readme-snippets.md Outdated Show resolved Hide resolved
Co-authored-by: Will Temple <witemple@microsoft.com>
mpodwysocki and others added 16 commits March 2, 2023 20:39
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
Co-authored-by: Will Temple <witemple@microsoft.com>
@joheredi
Copy link
Member

Do you think it may be worth adding some assertions to the snippet test? The assertions could be ignored by dev-tool when extracting, but it will help us validate that the snippet not only runs, but that it still does what it was designed to do.

@mpodwysocki
Copy link
Member Author

Do you think it may be worth adding some assertions to the snippet test? The assertions could be ignored by dev-tool when extracting, but it will help us validate that the snippet not only runs, but that it still does what it was designed to do.

@joheredi there is no prior art for example in the C# code to test whether it compiles and doesn't crash. There should already be unit and integration level tests that should have the assertions.

@joheredi
Copy link
Member

Yeah, that's fair!

@mpodwysocki
Copy link
Member Author

/check-enforcer override

@mpodwysocki mpodwysocki enabled auto-merge (squash) March 28, 2023 14:53
@mpodwysocki mpodwysocki merged commit 07b9aed into main Mar 28, 2023
@mpodwysocki mpodwysocki deleted the feat/design-readme branch March 28, 2023 14:53
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