Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rules): drop the unused argument #1953

Merged
merged 2 commits into from
Jun 12, 2024
Merged

fix(rules): drop the unused argument #1953

merged 2 commits into from
Jun 12, 2024

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Jun 12, 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.

Fixes #1954

@aignas aignas requested a review from rickeylev as a code owner June 12, 2024 09:09
@aignas
Copy link
Collaborator Author

aignas commented Jun 12, 2024

FYI @fmeum

@aignas
Copy link
Collaborator Author

aignas commented Jun 12, 2024

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

@aignas
Copy link
Collaborator Author

aignas commented Jun 12, 2024

@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:twine
WARNING: 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/_twine
INFO: Elapsed time: 22.087s, Critical Path: 10.20s
INFO: 22 processes: 17 internal, 5 linux-sandbox.
INFO: Build completed successfully, 22 total actions
INFO: Running command line: bazel-bin/tools/publish/twine
usage: 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
Copy link
Contributor

@rickeylev rickeylev left a comment

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 queue Jun 12, 2024
Merged via the queue into main with commit b07525c Jun 12, 2024
7 checks passed
@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.

Fixes bazelbuild#1954
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.

py_binary zip file on non-Windows is broken
2 participants