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

[util,tlgen] Lots of changes to get tlgen examples working again #25455

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rswarbrick
Copy link
Contributor

The schema of the hjson input changed last year (see commit 3ff8ebd) and it looks like we didn't update the examples.

Fixes #25356.

Before this change, you get a confusing error message if you don't
supply it. The original author also obviously imagined that
log.error() would end the program, but it doesn't! Bail properly if
needed.

Finally, tighten up the test with is_dir() because Path('') gives the
current directory (which is a directory...)

Signed-off-by: Rupert Swarbrick <[email protected]>
@rswarbrick rswarbrick added the Component:Tooling Issues related to tooling, e.g. tools/scripts for doc, code generation (docgen, reggen), CSR label Nov 29, 2024
@rswarbrick
Copy link
Contributor Author

Ahah! I just looked more closely at when the schema changed. The change was only merged into master last month.

This was ripped out with commit 1299fa1.

Signed-off-by: Rupert Swarbrick <[email protected]>
Also, allow a situation where node is an instance of Host but doesn't
have an addr_space argument (which previously threw a KeyError).

Signed-off-by: Rupert Swarbrick <[email protected]>
This changed in topgen last year and it looks like we hadn't updated
the examples to match.

Signed-off-by: Rupert Swarbrick <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:Tooling Issues related to tooling, e.g. tools/scripts for doc, code generation (docgen, reggen), CSR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tlgen] tlgen completely broken as a standalone util
1 participant