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

fix: add type checksum conversion of the function fetch_meta #5054

Closed
wants to merge 5 commits into from

Conversation

floralatin
Copy link
Contributor

@floralatin floralatin commented Aug 10, 2022

Goals:

there was a bug where pulling an Executor with build env vars would not work, because it tried to cache the keys of these env vars, but the DictKeys object can't be pickled. This PR converts these keys to a list, thus fixing the bug.

The diffs are large, but that's only because of the black.
The only relevant line is build_env=list(buildEnv.keys()) if buildEnv and isinstance(buildEnv, dict) else [], line 715 in hubio.py (and the added test).

@github-actions github-actions bot added size/XS area/core This issue/PR affects the core codebase labels Aug 10, 2022
@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #5054 (9ec1437) into master (6cc4497) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5054      +/-   ##
==========================================
- Coverage   88.15%   88.04%   -0.11%     
==========================================
  Files         115      115              
  Lines        9149     9149              
==========================================
- Hits         8065     8055      -10     
- Misses       1084     1094      +10     
Flag Coverage Δ
jina 88.04% <100.00%> (-0.05%) ⬇️

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

Impacted Files Coverage Δ
jina/hubble/hubio.py 87.73% <ø> (ø)
jina/__init__.py 64.63% <100.00%> (ø)
jina/orchestrate/pods/__init__.py 80.26% <0.00%> (-2.64%) ⬇️
...a/orchestrate/deployments/config/docker_compose.py 99.00% <0.00%> (-1.00%) ⬇️
jina/orchestrate/flow/base.py 89.88% <0.00%> (-0.57%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@floralatin floralatin requested a review from JoanFM August 10, 2022 12:11
@github-actions github-actions bot added size/S area/testing This issue/PR affects testing labels Aug 10, 2022
@floralatin
Copy link
Contributor Author

Have fixed by this pull request #5061

@floralatin floralatin closed this Aug 29, 2022
@JoanFM JoanFM deleted the fix-hubble-hubio-pull branch July 20, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing size/S size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant