-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
still register adapter when manifest is provided #9440
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9440 +/- ##
==========================================
+ Coverage 86.76% 87.87% +1.11%
==========================================
Files 185 167 -18
Lines 24321 22170 -2151
==========================================
- Hits 21101 19481 -1620
+ Misses 3220 2689 -531
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -277,6 +278,8 @@ def wrapper(*args, **kwargs): | |||
ctx.obj["manifest"] = parse_manifest( | |||
runtime_config, write_perf_info, write, ctx.obj["flags"].write_json | |||
) | |||
else: | |||
register_adapter(runtime_config, get_mp_context()) |
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.
I think we need to add:
adapter = get_adapter(runtime_config)
adapter.set_macro_context_generator(generate_runtime_macro_context)
adapter.set_macro_resolver(ctx.obj["manifest"])
to get the tests passing
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.
Thanks! Done!
This is a fix that we did when backporting a change to 1.7
6e33183#diff-beabcbe3aef83fe254d714ef250f484abd1f1ef314dc9506059eb54a9bfbf9a0R274