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

still register adapter when manifest is provided #9440

Merged
merged 3 commits into from
Feb 9, 2024
Merged

Conversation

ChenyuLInx
Copy link
Contributor

@ChenyuLInx ChenyuLInx commented Jan 24, 2024

This is a fix that we did when backporting a change to 1.7

6e33183#diff-beabcbe3aef83fe254d714ef250f484abd1f1ef314dc9506059eb54a9bfbf9a0R274

@ChenyuLInx ChenyuLInx requested a review from a team as a code owner January 24, 2024 18:36
@ChenyuLInx ChenyuLInx requested a review from martynydbt January 24, 2024 18:36
@cla-bot cla-bot bot added the cla:yes label Jan 24, 2024
Copy link
Contributor

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.

@ChenyuLInx ChenyuLInx added the Skip Changelog Skips GHA to check for changelog file label Jan 24, 2024
@ChenyuLInx ChenyuLInx requested review from gshank, peterallenwebb and MichelleArk and removed request for martynydbt January 24, 2024 18:38
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (15704ab) 86.76% compared to head (cf96465) 87.87%.
Report is 45 commits behind head on main.

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     
Flag Coverage Δ
integration 85.44% <100.00%> (+1.30%) ⬆️
unit 61.85% <60.00%> (-1.87%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -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())
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Done!

@ChenyuLInx ChenyuLInx merged commit 6f603f6 into main Feb 9, 2024
51 checks passed
@ChenyuLInx ChenyuLInx deleted the cl/fix-register-1 branch February 9, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants