Skip to content

Cherry pick release 0.3.17.post1#169

Closed
quentin-auge wants to merge 7 commits into
fork_0.3.17from
cherry-pick-release-0.3.17.post1
Closed

Cherry pick release 0.3.17.post1#169
quentin-auge wants to merge 7 commits into
fork_0.3.17from
cherry-pick-release-0.3.17.post1

Conversation

@quentin-auge

@quentin-auge quentin-auge commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Hotfix release

Paul Mathon:

  • New PEX uploads should be based on pex_hash property to prevent faulty cache hit

Alexander Mazurov:

  • Add support for custom user with environment variable C_PACK_USER

Paul Mathon and others added 4 commits February 3, 2026 18:34
Custer Pack is relying on the code_hash property of the PEX-INFO metadata file to determine whether it should upload a new env to the /user/{USER}/envs folder on HDFS.

According PEX' PyDoc (https://github.com/pex-tool/pex/blob/main/pex/pex_info.py):
- pex_hash: sha1 hash of all names/code and distributions in the pex
- code_hash: sha1 hash of all names/code in the archive

If dependencies change, the PEX changes as well, we should upload a new PEX, to do so we should rely on the pex_hash property rather that than the code_hash.
Introduce _get_current_user() function to allow overriding the
current user via the C_PACK_USER environment variable. This provides
more flexibility when generating package paths, especially in
containerized or shared environments where the system user might
not match the desired user.

Replaces direct calls to getpass.getuser() with the new function,
ensuring consistent user resolution across the packaging module.
Refactor test context managers in packaging tests to use
multi-line formatting for better readability and consistency.
This change enhances code clarity without altering test logic.
@quentin-auge
quentin-auge force-pushed the cherry-pick-release-0.3.17.post1 branch from 94b26e7 to b061227 Compare February 3, 2026 17:34
Minor version no longer available
@quentin-auge
quentin-auge force-pushed the cherry-pick-release-0.3.17.post1 branch from 42319d4 to ea866c3 Compare February 3, 2026 18:06
@quentin-auge
quentin-auge force-pushed the cherry-pick-release-0.3.17.post1 branch from ea866c3 to b8350e6 Compare February 3, 2026 18:13
@quentin-auge
quentin-auge force-pushed the cherry-pick-release-0.3.17.post1 branch from 5397114 to fced4c9 Compare February 3, 2026 18:31
Comment thread cluster_pack/uploader.py
@quentin-auge
quentin-auge force-pushed the cherry-pick-release-0.3.17.post1 branch from 783c4cf to fced4c9 Compare February 4, 2026 13:48
@quentin-auge

Copy link
Copy Markdown
Contributor Author

Closing this hotfix PR now 0.3.17.post1 is released on test-pypi

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants