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

tests: source_unit: remove incomplete submodule #1564

Merged
merged 5 commits into from
Jan 9, 2023
Merged

Conversation

elopez
Copy link
Member

@elopez elopez commented Jan 6, 2023

No description provided.

@elopez elopez changed the title tests: source_unit: add missing foundry submodule tests: source_unit: remove incomplete submodule Jan 6, 2023
@elopez elopez marked this pull request as ready for review January 6, 2023 15:41
@@ -1,5 +1,7 @@
from slither import Slither

# NB: read tests/source_unit/README.md before using this test
Copy link
Member

Choose a reason for hiding this comment

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

Could we detect if this was not done in the test itself, and raise a warning in pytest?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added a skipif, it will skip the test if deps are not met + log a skip reason

Screenshot 2023-01-06 at 15 35 18

This fixes some issues with the Docker build process

  * missing `git` in wheel build process - pip requires Git to pull
    dependencies expressed as `foo @ git+https://...`.

  * pip upgrade before building - it was disabled with an extra `echo`
    Thanks to @ahpaleus for reporting this!

  * final image installation - pip insists on rebuilding git-referenced
    dependencies, so this installs the wheels directly with `--no-deps`
    to get the desired behavior.
@montyly montyly merged commit 5c375a8 into dev Jan 9, 2023
@montyly montyly deleted the dev-fix-docker-build branch January 9, 2023 13:00
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.

None yet

2 participants