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

Tools: metadata snippets parsing and validation #8

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DavidSouther
Copy link
Owner

This pull request brings the snippet extractor into the public repo, and uses it to do more snippet validation during GHA.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@DavidSouther DavidSouther marked this pull request as draft December 7, 2023 15:50
Comment on lines 80 to 90
for example in metadata:
for lang in example.languages:
language = example.languages[lang]
for version in language.versions:
for excerpt in version.excerpts:
for snippet_tag in excerpt.snippet_tags:
if snippet_tag not in snippets:
# Ensure all metadata snippets are found
errors.append(
MissingSnippet(file=example.file, tag=snippet_tag)
)

Choose a reason for hiding this comment

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

👀

@ford-at-aws ford-at-aws force-pushed the tools/metadata/dataclasses branch from 3c6d748 to b5893e9 Compare December 7, 2023 20:34
@DavidSouther DavidSouther force-pushed the tools/metadata/snippets branch from 958b028 to e82d3df Compare December 22, 2023 15:59
@DavidSouther DavidSouther changed the base branch from tools/metadata/dataclasses to main January 3, 2024 19:24
@DavidSouther DavidSouther force-pushed the tools/metadata/snippets branch from e82d3df to a4ba0e8 Compare January 3, 2024 21:43
@github-actions github-actions bot added CDK Relates to the AWS Cloud Development Kit (CDK) Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Python This issue relates to the AWS SDK for Python (boto3) Tools labels Jan 3, 2024
@DavidSouther DavidSouther force-pushed the tools/metadata/snippets branch from a4ba0e8 to 29889a1 Compare January 9, 2024 16:31
@github-actions github-actions bot removed CDK Relates to the AWS Cloud Development Kit (CDK) Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Python This issue relates to the AWS SDK for Python (boto3) labels Jan 9, 2024
@DavidSouther DavidSouther force-pushed the tools/metadata/snippets branch from 29889a1 to b149462 Compare January 9, 2024 17:41
@github-actions github-actions bot added C++ This issue relates to the AWS SDK for C++ Java-v2 This issue relates to the AWS SDK for Java V2 Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Kotlin This issue relates to the AWS SDK for Kotlin PHP This issue relates to the AWS SDK for PHP Python This issue relates to the AWS SDK for Python (boto3) Ruby This issue relates to the AWS SDK for Ruby Rust This issue relates to the AWS SDK for Rust (Preview) Swift This issue relates to the AWS SDK for Swift CLI Relates to the AWS CLI GitHub settings This affects GitHub settings labels Jan 9, 2024
@DavidSouther DavidSouther force-pushed the tools/metadata/snippets branch from 6f5061a to f36b2bc Compare January 17, 2024 18:16
@github-actions github-actions bot removed C++ This issue relates to the AWS SDK for C++ Java-v2 This issue relates to the AWS SDK for Java V2 labels Jan 17, 2024
@github-actions github-actions bot removed Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Kotlin This issue relates to the AWS SDK for Kotlin PHP This issue relates to the AWS SDK for PHP Python This issue relates to the AWS SDK for Python (boto3) Ruby This issue relates to the AWS SDK for Ruby Rust This issue relates to the AWS SDK for Rust (Preview) Swift This issue relates to the AWS SDK for Swift CLI Relates to the AWS CLI GitHub settings This affects GitHub settings labels Jan 17, 2024
@DavidSouther DavidSouther force-pushed the tools/metadata/snippets branch 2 times, most recently from f15509d to c0dcaba Compare January 18, 2024 15:20
@github-actions github-actions bot added the GitHub settings This affects GitHub settings label Jan 18, 2024
@rlhagerm rlhagerm force-pushed the tools/metadata/snippets branch from e3dadd4 to ae5c815 Compare January 18, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GitHub settings This affects GitHub settings Tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants