Skip to content

chore: cherry-picks for 2.3.2 - #4089

Merged
rickeylev merged 6 commits into
release/2.3from
aignas.chore.release-2-3-2-chpx
Aug 22, 2026
Merged

chore: cherry-picks for 2.3.2#4089
rickeylev merged 6 commits into
release/2.3from
aignas.chore.release-2-3-2-chpx

Conversation

@aignas

@aignas aignas commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

aignas and others added 6 commits August 22, 2026 22:04
A followup to #4043 to split code into multiple files to make the
interaction
and reuse more intentional and explicit.

Work towards #2948.

---------

Co-authored-by: Richard Levasseur <richardlev@gmail.com>
(cherry picked from commit 6ba12ce)
Source-less wheels with dependency metadata fail analysis because the
generated wrapper `py_library` puts an empty `:srcs` target in its
`srcs` attribute.

This forwards `:srcs` through the wrapper only when it produces Python
sources, while retaining it in `deps` for `PyInfo` propagation. Before
this change, [`py-spy==0.4.1`](https://pypi.org/project/py-spy/0.4.1/)
dependency fails during analysis. Afterward, it can be used as a
dependency.

Adds regression coverage for source-less, sourceful, and generated
namespace-package source targets, along with a news entry.

Largely implemented with Opus.

Fixes #4053.

---------

Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
(cherry picked from commit 4f4eafd)
Git sources in `uv.lock` can include a revision in the URL query and
fragment. `pip.parse` currently includes those components in the derived
filename, which can produce an invalid Bazel repository name.

Derive the filename from only the URL path while preserving the complete
revision-bearing Git URL. Regression coverage verifies the filename is
clean
and the fetch URL remains unchanged.

Fixes #4084

(cherry picked from commit 984d485)
With this change we just ignore unsupported args from the implementation
rules. Whilst this is a blunt tool to get the job done, it should work
for now and it is extendible to do failures or warnings in the future.

Fixes #4077

(cherry picked from commit b1b9bf0)
@aignas
aignas requested a review from rickeylev as a code owner August 22, 2026 13:14
@aignas aignas mentioned this pull request Aug 22, 2026
7 tasks
@aignas

aignas commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator Author

FYI, we don't have a flow for this, but this is not too difficult to potentially automate. The rough list of commands:

git checkout main
git pull
git checkout release/2.3
git pull
for pr in 4044 4045; do
    git cherry-pick -x "$(git log --oneline main | grep "$pr" | awk '{print $1}')"
done

# create a changelog entry - I think we have a script for that, but I did it manually
# ensure the VERSION_NEXT_FEATURE and similar are correctly accounted for.

We probably are not doing enough bugfixes to warrant automation though.

@rickeylev

Copy link
Copy Markdown
Collaborator

I created a workflow for this

@rickeylev
rickeylev merged commit 281e98a into release/2.3 Aug 22, 2026
8 checks passed
@rickeylev
rickeylev deleted the aignas.chore.release-2-3-2-chpx branch August 22, 2026 14:33
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.

4 participants