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

Minor fixes #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Minor fixes #6

wants to merge 4 commits into from

Conversation

matt-phylum
Copy link
Collaborator

When I got my new computer I migrated my Git projects over using Git and the workareas all got cleaned. This PR fixes (most of) problems I encountered while getting this running again.

The Sonatype Java library wasn't set up correctly as a submodule so it wasn't getting checked out.

packageurl-js has changed a lot since the previous released version so I updated its code.

I must be using a new version of PHP I started getting deprecation warnings running packageurl-php. The deprecation warnings were getting written to stdout (I guess that's useful if PHP is running as CGI…) which is supposed to be lines of JSON. The JSON parse error would trigger the program to exit, but the cleanup would fail and the exception from failing to cleanup would replace the exception that caused the program to exit. I suppressed the warnings, added a handler for invalid json, and added a block to ignore errors when calling communicate to cleanly close the Docker connections.

The other problem is that on my new computer I'm using Podman and Podman Machine doesn't like when I try to simultaneously run 14 commands. Apparently it's using SSH to access the control socket and there's some sort of rate limit on new connections. I was able to work around it by synchronizing the code that launches the container and adding a delay, but I don't think that's really fit to include so I didn't include any fix for that here.

@matt-phylum matt-phylum requested review from a team as code owners February 5, 2025 19:00
Copy link
Contributor

@maxrake maxrake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion provided...but approving now in case it is not accepted.

survey/docker.py Show resolved Hide resolved
survey/docker.py Show resolved Hide resolved
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