extensions: Add extensions metadata.yaml#16618
Conversation
c127c6a to
0e0042b
Compare
Signed-off-by: Ryan Northey <ryan@synca.io>
04f8c6f to
12bc41e
Compare
|
@htuch this is hopefully ready for review |
| # -r docs/requirements.txt | ||
| # sphinx | ||
| # sphinx-rtd-theme | ||
| # sphinx-tabs |
There was a problem hiding this comment.
Nit: if you could make changes to docs/requirements.txt in a separate PR, it would make life slightly easier for maintainers downstream.
There was a problem hiding this comment.
@dmitri-d on this point i would like to push back - adding yaml to the docs build requirements is not needed without this PR - it makes sense to add it here i think
There was a problem hiding this comment.
the extraneous changes here are produced by pip-compile not sure why they hadnt been set before - but im guessing that dependabot may be to blame for at least the hash ordering
|
Could you mention how to update metadata in https://github.com/envoyproxy/envoy/blob/main/CONTRIBUTING.md#adding-new-extensions? |
|
looks good, other than a couple of nits above. |
htuch
left a comment
There was a problem hiding this comment.
Great, thanks, a few comments.
/wait
| categories: | ||
| - envoy.wasm.runtime | ||
| security_posture: unknown | ||
| status: alpha |
There was a problem hiding this comment.
There were a bunch of comments around these status, i.e. that this alpha/unknown status can't change until we do deliberate review and change to threat model, for Wasm runtimes. Can you move these as well to this file? Also pleaes check we haven't missed other places there are similar comments we are missing.
There was a problem hiding this comment.
this PR hasnt removed the other comments yet - but yep - i will go through and add any comments i can find from the existing metadata registration
There was a problem hiding this comment.
@htuch i have gone through all of the BUILD files with wasm in the path (and quite a few of the others) and none contain comments
can you point me to any specific examples please ?
There was a problem hiding this comment.
Hah, not merged yet (I thought it had), see https://github.com/envoyproxy/envoy/pull/16057/files#diff-85815a26c8f765868f9c242a1968320d41e9c5798cbe94358339f3d99d0a70c2R16. We will need to update that PR.
| # Validate extension metadata | ||
|
|
||
| # This script expects a copy of the envoy source to be located at /source | ||
| # Alternatively, you can specify a path to the source dir with `ENVOY_SRCDIR` |
There was a problem hiding this comment.
I think it should default to using $PWD and then in Docker set /source via ENVOY_SRCDIR. The only place we expect to see /source is in Docker.
There was a problem hiding this comment.
this is very temporary - in the next PR most of this will be gone
There was a problem hiding this comment.
also - re "$PWD" - this cant do that because its inside the bazel build dir - a path must be passed, there cant be a default that is not hardcoded.
this is one of the reasons for doing this - we wont need the envoy_srcdir to be set at all once this code is trimmed down - the bazel env should have anything that is required
There was a problem hiding this comment.
also worth mentioning this is just a repurposing of the previous generate_extension_db script - hence the inclusion of the /source default etc
There was a problem hiding this comment.
Why do we need to merge this specific part of the PR if it goes in the next one?
There was a problem hiding this comment.
its just maintaining the equivalence of generate_extension_db - ie ensuring it works in the same circumstances (of being called from docs/build.sh)
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| sys.exit(validate_extensions()) |
There was a problem hiding this comment.
yes - can i do it in the next PR when much of this code will be removed - im more than happy to shift this to a Checker class and add the appropriate tests
| } | ||
|
|
||
|
|
||
| def compare_old_and_new(old_db, new_db): |
There was a problem hiding this comment.
Is this just to validate we're doing the right thing as scaffolding? Should it be deleted before merging?
There was a problem hiding this comment.
yes and no - its to ensure that transitioning from the old macro way of setting the metadata and the new yaml way nothing is lost
There was a problem hiding this comment.
...and for that reason i think its important to keep it until the macro way has been removed completely
There was a problem hiding this comment.
If you want to preserve this over two PRs, then can you mark everything with a comment that will be gone in the next PR, so we don't have to review it with scrutiny?
There was a problem hiding this comment.
ive added TODOs to all of the soon-to-be-removed code
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
|
I'm concerned about this as it is centralizing those metadata into a single file, which means it is harder for downstream builds to define those metadata in the extensions living there. While they won't included in our doc, but it is a good practice anyway. It is also making it harder when we move extensions to |
im very conscious of this - afaia the main downstream is envoy-mobile - so i have done quite a bit of work to figure out what will change and ease the transition i dont think it will make it harder to separate contrib - but will defo require a slightly different path |
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
3efd11d to
a69c5df
Compare
htuch
left a comment
There was a problem hiding this comment.
Let's merge this as is and iterate on next step. Generally prefer to see everything complete before merging, but this will make the larger lift presumably easier with a checkpoint.
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey ryan@synca.io
Commit Message: extensions: Add extensions metadata.yaml
Additional Description:
This is a breakout pr from #16496 as that will require a lot of change
This PR:
extensions_metdata.yamlfileprotodocgenerate_extension_db.pyvalidate_extension_db.pytoRisk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]