-
Notifications
You must be signed in to change notification settings - Fork 587
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
Ubuntu: Cannot run the unit tests locally #1895
Comments
Thanks for the report @johnDeSilencio. |
Hi @johnDeSilencio, we've tried to reproduce this particular failure, but haven't yet. I've had teammates get passing unit tests on fresh checkouts on recent Debian VMs, Ubuntu docker images, and Ubuntu on WSL. I'm curious about this part of your output:
Specifically Are you able to browse to or |
@willmurphyscode thank you for getting back to me so quickly, especially on a "it doesn't work on my machine" issue 😄 From my Ubuntu on WSL environment, both
However, the URL
|
Hi @johnDeSilencio, thanks for checking on that so quickly. It looks like you're talking to maven repos though a proxy?
I don't know how that proxy might be configured, but here's my hand-wavy hypothesis:
I think that might be causing cert errors. But I think we're building those test fixtures in docker to avoid having people need to install a Java toolchain just to run our unit tests. Maybe you could unblock yourself by building the test fixture jars on the host or in WSL? I think we're downloading from the Jenkins repo directly, not from maven central. Let me know if that helps! |
@willmurphyscode you were right to suspect the proxy! We use Artifactory at my company. Turns out, we already have a maven mirror set up. For future developers who also work at a company using Artifactory mirrors:
|
While I do have you, @willmurphyscode, when I run It appears that there are two unexpected files in the image file system:
Could this be another issue with my environment? |
@johnDeSilencio a teammate had that exact error earlier today running in an old Debian VM. They were able to get the tests passing by upgrading from Debian 11 to Debian 12, and upgrading docker and go. Your versions seem pretty recent, but that might be something you can try. |
Locks like I have the most recent version of As a workaround, I can add those files to the I think we got to root cause for the original issue. I now can build the unit tests, and am no longer blocked from contributing. All that being said, I'm going to close this issue as resolved. @willmurphyscode thank you again for all your help! Interacting with kind people like yourself is what makes open source enjoyable 😄 |
Should we try to capture this in the DEVELOPING.md? #1895 (comment) |
What happened:
I tried running the unit tests locally with
make unit
, and I received the following error. I've reproduced this error in a WSL environment, on a 2014 Macbook Air laptop running Ubuntu 22.04, and on a Windows Hyper-V Ubuntu 22.04 VM:If I go to the URL in question, I get a 404 error. So it makes sense that the script bailed, but I've never used maven before and am not sure how to debug this issue.
What you expected to happen:
The unit tests to run without errors
Steps to reproduce the issue:
syft/
directorymake bootstrap
and make sure it finishes successfullymake unit
Anything else we need to know?:
The company I work for is interested in creating a PR for syft to support cataloging dependencies installed with opkg. This bug is currently blocking that effort.
Environment:
The text was updated successfully, but these errors were encountered: