Skip to content

fix: Hotfix for py_binary - #326

Merged
furtib merged 1 commit into
Ericsson:mainfrom
nettle:pybinary-hotfix
Sep 1, 2026
Merged

fix: Hotfix for py_binary#326
furtib merged 1 commit into
Ericsson:mainfrom
nettle:pybinary-hotfix

Conversation

@nettle

@nettle nettle commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Why:
The actions executed a per target symlink to the script py_binary,
and the stub looks for its runfiles next to argv[0],
which fails on a remote worker.
The quoted analyze options collapse into a single argument.

What:

  • Execute the script py_binary via files_to_run, drop the symlinks
  • Pass the analyze options as --analyze=
  • Always use plistlib load and dump, they exist since Python 3.4

@nettle nettle changed the title Hotfix for py_binary fix: Hotfix for py_binary Aug 31, 2026
@nettle nettle self-assigned this Aug 31, 2026
@nettle nettle added the bug Something isn't working label Aug 31, 2026

@furtib furtib left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!
Great patch!

@furtib
furtib requested a review from Szelethus September 1, 2026 07:28
@furtib
furtib merged commit 41d4d4e into Ericsson:main Sep 1, 2026
5 of 6 checks passed

@Szelethus Szelethus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM (albeit, post-merge). Upon further reading, this seems to be the idiomatic way of retrieving executables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants