-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
tests: test suite break when path contains #
#551
Comments
Could you provide a reproducible setup/example? |
dug into https://github.com/CycloneDX/cyclonedx-python-lib/files/14281372/error.log line of interest:
It appears, that I need to check with the leveraged https://pypi.org/project/lxml/ project, maybe there is a fix, or workaround, or an existing report/solution/advice. |
#
Thank you for your report, @hseg Since this project is community-driven, and contributions are welcome, I would ask you: are you interested in providing a solution to the problem? If so, please let me know. Please see our contribution guideline. |
On Wed, Feb 14, 2024 at 07:16:32AM -0800, Jan Kowalleck wrote:
Could you give a reproducible setup/example?
Reproducing the steps run by pacman:
```sh
cd "$(mktemp -td tmp#XXXXX)"
wget https://github.com/CycloneDX/cyclonedx-python-lib/archive/refs/tags/v6.4.1.tar.gz
tar xzf v6.4.1.tar.gz
cd cyclonedx-python-lib-6.4.1/
find tests -name 'invalid-metadata-timestamp-*.json' -exec rm -v '{}' ';'
find tests -name 'valid-signatures-*.json' -exec rm -v '{}' ';'
python -m build --wheel --no-isolation
python -m venv --clear --system-site-packages .venv
source .venv/bin/activate
pip install --force-reinstall --no-deps dist/*.whl
python -m unittest discover -v
deactivate
```
By contrast, if the `#` in the invocation to `mktemp` there is replaced with
`.`, everything passes.
|
On Wed, Feb 14, 2024 at 07:29:47AM -0800, Jan Kowalleck wrote:
Thank you for your report, @hseg
Since this project is community-driven, and contributions are welcome, I would ask you: are you interested in providing a solution to the problem? If so, please let me know. Please see our [contribution guideline](https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CONTRIBUTING.md).
I don't have much free time at the moment, if no one has fixed this by
2024-03-17 I'll take it on.
|
re: #551 (comment) re: #551 (comment) |
Tried tackling this, one complication to look out for is that `lxml` makes heavy use of cython, which I'm having trouble debugging. I'm giving up on this one.
One thing I _have_ noted playing around with this is that what is significant is the real path to the test files - in particular, a usable workaround is to have a clone somewhere with a saner path, and to have a symlink to it in the desired location.
El 14 de febrero de 2024 17:42:12 GMT+02:00, Jan Kowalleck ***@***.***> escribió:
…re: #551 (comment)
Thanks for providing the setup snippet. this should make it easy for others to work on this issue.
re: #551 (comment)
I flagged this issue as "help wanted" as in "this is free for contributors".
Whoever wants to tackle it, just drop a note here to let the others know.
--
Reply to this email directly or view it on GitHub:
#551 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
I've run a couple of exhaustive tests trying to find the forbidden patterns.
|
looks like these chars are all XML special chars. |
Right. ig the weird part about this is that the XML tooling is embedding raw paths into the files it constructs. I would expect any such serialization/deserialization to include a quote/unquote step as well.
El 26 de mayo de 2024 16:44:33 GMT+03:00, Jan Kowalleck ***@***.***> escribió:
…looks like these chars are all XML special chars.
makes sense, since the XML tooling crashes when it tries to resolve paths ...
--
Reply to this email directly or view it on GitHub:
#551 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Building from https://aur.archlinux.org/packages/python-cyclonedx-lib, I am getting ~400 errors if the path to the project contains a
#
character.Log attached
error.log
The text was updated successfully, but these errors were encountered: