forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
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
DavidSouther
wants to merge
6
commits into
main
Choose a base branch
from
tools/metadata/snippets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpyle0819
reviewed
Dec 7, 2023
.tools/validation/validate.py
Outdated
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) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
ford-at-aws
force-pushed
the
tools/metadata/dataclasses
branch
from
December 7, 2023 20:34
3c6d748
to
b5893e9
Compare
DavidSouther
force-pushed
the
tools/metadata/snippets
branch
from
December 22, 2023 15:59
958b028
to
e82d3df
Compare
DavidSouther
force-pushed
the
tools/metadata/snippets
branch
from
January 3, 2024 21:43
e82d3df
to
a4ba0e8
Compare
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
force-pushed
the
tools/metadata/snippets
branch
from
January 9, 2024 16:31
a4ba0e8
to
29889a1
Compare
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
force-pushed
the
tools/metadata/snippets
branch
from
January 9, 2024 17:41
29889a1
to
b149462
Compare
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
force-pushed
the
tools/metadata/snippets
branch
from
January 17, 2024 18:16
6f5061a
to
f36b2bc
Compare
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
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
force-pushed
the
tools/metadata/snippets
branch
2 times, most recently
from
January 18, 2024 15:20
f15509d
to
c0dcaba
Compare
* Rework error collection * Scan for snippet errors during validation
Service definition tweaks
rlhagerm
force-pushed
the
tools/metadata/snippets
branch
from
January 18, 2024 16:06
e3dadd4
to
ae5c815
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.