Skip to content

2018.3: bug: executors lazyloader is missing functions and proxy args#52772

Closed
mattp- wants to merge 5 commits intosaltstack:2018.3from
bloomberg:exec
Closed

2018.3: bug: executors lazyloader is missing functions and proxy args#52772
mattp- wants to merge 5 commits intosaltstack:2018.3from
bloomberg:exec

Conversation

@mattp-
Copy link
Copy Markdown
Contributor

@mattp- mattp- commented May 1, 2019

What does this PR do?

these are needed for this functionality to work

What issues does this PR fix or reference?

n/a

Tests written?

should be covered by existing tests

Commits signed with GPG?

No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@mattp- mattp- requested a review from a team as a code owner May 1, 2019 12:02
these are needed for this functionality to work, otherwise the dunders
are not available to generated executors.
@mattp- mattp- changed the title 2018.3: bug: executors lazyloader is missing functions and proxy lazyloader 2018.3: bug: executors lazyloader is missing functions and proxy args May 3, 2019
@mattp-
Copy link
Copy Markdown
Contributor Author

mattp- commented May 6, 2019

@waynew clean now. not sure what the ubuntu fail is from, but its unrelated to PR

@waynew
Copy link
Copy Markdown
Contributor

waynew commented May 16, 2019

🤦‍♂ Well. We fixed one of the msgpack failures, but it turns out there are several more that we'll have to address before getting this fix in:

ag "msgpack.*encoding"
tests/integration/__init__.py
156:        unpacker = msgpack.Unpacker(encoding='utf-8')

tests/integration/files/log_handlers/runtests_log_handler.py
98:            sock.sendall(msgpack.dumps(record.__dict__, encoding='utf-8'))

salt/transport/ipc.py
171:        unpacker = msgpack.Unpacker(encoding=encoding)
256:        self.unpacker = msgpack.Unpacker(encoding=encoding)

salt/utils/cloud.py
95:MSGPACK_ENCODING = 'utf-8'
2513:            index = salt.utils.data.decode(msgpack.load(fh_, encoding=MSGPACK_ENCODING))
2530:        msgpack.dump(index, fh_, encoding=MSGPACK_ENCODING)
2547:            index = salt.utils.data.decode(msgpack.load(fh_, encoding=MSGPACK_ENCODING))
2556:        msgpack.dump(index, fh_, encoding=MSGPACK_ENCODING)
2614:        msgpack.dump(data, fh_, encoding=MSGPACK_ENCODING)
2646:        cache_data = salt.utils.data.decode(msgpack.load(fh_, encoding=MSGPACK_ENCODING))
2651:        msgpack.dump(cache_data, fh_, encoding=MSGPACK_ENCODING)
2725:                    minions[driver][prov][minion_id] = salt.utils.data.decode(msgpack.load(fh_, encoding=MSGPACK_ENCODING))
2902:            msgpack.dump(nodes[node], fh_, encoding=MSGPACK_ENCODING)
2928:        msgpack.dump(node, fh_, encoding=MSGPACK_ENCODING)
3003:            cache_data = salt.utils.data.decode(msgpack.load(fh_, encoding=MSGPACK_ENCODING))

salt/utils/cache.py
142:            cache = salt.utils.data.decode(msgpack.load(fp_, encoding=__salt_system_encoding__))

(that, of course, is assuming that all of the msgpack and encoding calls are on the same line 😛 )

@waynew
Copy link
Copy Markdown
Contributor

waynew commented Feb 27, 2020

@mattp- would you mind rebasing this on master?

@sagetherage
Copy link
Copy Markdown
Contributor

@mattp- can you rebase this on master?

@waynew
Copy link
Copy Markdown
Contributor

waynew commented Apr 13, 2020

@mattp- what help do you need here?

@Ch3LL Ch3LL removed the request for review from a team April 15, 2020 14:45
@sagetherage sagetherage removed the request for review from DmitryKuzmenko November 18, 2020 18:08
@dwoz
Copy link
Copy Markdown
Contributor

dwoz commented Dec 10, 2023

Closing due to lack of activity. Anyone should feel free to re-open or create a new PR if they want to see this through to the end.

@dwoz dwoz closed this Dec 10, 2023
@dwoz dwoz added help-wanted Community help is needed to resolve this Abandoned labels Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Abandoned help-wanted Community help is needed to resolve this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants