Skip to content

fix(rules): drop the unused argument - #1953

Merged
rickeylev merged 2 commits into
mainfrom
fix/build-zip
Jun 12, 2024
Merged

fix(rules): drop the unused argument#1953
rickeylev merged 2 commits into
mainfrom
fix/build-zip

Conversation

@aignas

@aignasaignas commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator

It seems that there is an extra argument that is there but I am not sure about
the reason, it is most likely a leftover. As part of this change we add an
analysis test for non-windows zip building. I could reproduce the failure and
now the newly added test passes.

Fixes#1954

@aignas
aignas requested a review from rickeylev as a code ownerJune 12, 2024 09:09
@aignas

Copy link
Copy Markdown
CollaboratorAuthor

FYI @fmeum

@aignas

Copy link
Copy Markdown
CollaboratorAuthor

Once this is merged, we will need to cherry-pick and release a 0.33.1, IMHO.

@aignas

aignas commented Jun 12, 2024

Copy link
Copy Markdown
CollaboratorAuthor

@rickeylev, feel free to take over the PR and finish it. Since I have started it, if you stamp after making any extra changes, you should be able to merge it. :)

EDIT: I took a stab at implementing the tests myself, let me know what you think. I amended the CHANGELOG to assume that we are releasing 0.33.1 straight after and I checked locally with:

$ bazel run --build_python_zip //tools/publish:twineWARNING: Build option --build_python_zip has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).INFO: Analyzed target //tools/publish:twine (61 packages loaded, 6988 targets configured).INFO: Found 1 target...Target //tools/publish:twine up-to-date: bazel-bin/tools/publish/_twine.zip bazel-bin/tools/publish/rules_python_entry_point_twine.py bazel-bin/tools/publish/_twineINFO: Elapsed time: 22.087s, Critical Path: 10.20sINFO: 22 processes: 17 internal, 5 linux-sandbox.INFO: Build completed successfully, 22 total actionsINFO: Running command line: bazel-bin/tools/publish/twineusage: twine [-h] [--version] [--no-color] {check,upload,register}twine: error: the following arguments are required: command, args

So it does indeed seem to be an extra argument.

It seems that there is an extra argument that is there but I am not sure about
the reason, it is most likely a leftover. As part of this change we add an
analysis test for non-windows zip building. I could reproduce the failure and
now the newly added test passes.
Fixes#1954

@rickeylevrickeylev 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.

Oops, thanks. Yeah, I missed that arg and there weren't tests covering it. Fix LGTM.

@rickeylev
rickeylev added this pull request to the merge queueJun 12, 2024
Merged via the queue into main with commit b07525cJun 12, 2024
@rickeylev
rickeylev deleted the fix/build-zip branch June 12, 2024 21:51
rickeylev pushed a commit to rickeylev/rules_python that referenced this pull request Jun 13, 2024
It seems that there is an extra argument that is there but I am not sure
about
the reason, it is most likely a leftover. As part of this change we add
an
analysis test for non-windows zip building. I could reproduce the
failure and
now the newly added test passes.
Fixesbazel-contrib#1954
Sign up for freeto 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.

py_binary zip file on non-Windows is broken

2 participants

@aignas@rickeylev