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
Update FOSSA configuration for new requirements layout #10848
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10848 +/- ##
==========================================
- Coverage 61.34% 61.12% -0.23%
==========================================
Files 380 380
Lines 24068 24083 +15
==========================================
- Hits 14765 14720 -45
- Misses 9303 9363 +60
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This reverts commit a97213d.
.fossa.yml
Outdated
| path: . | ||
| options: | ||
| requirements: ./requirements/base.txt | ||
| - name: docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this check, as the Docker requirements are only used for the "dev" image (which is used in docker-compose)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, it looks like the "lean" Docker image is using requirements/local.txt? This is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, lean gets "local" and dev gets "docker". When I did this, "local" already existed, so I reused it. I added "docker.txt" in order to append a few more deps for docker-compose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, removed it for now. May need some reworking after #10875 settles.
|
We should probably run the license check each time code is merged to master, as well as when the requirements files change. |
* Update FOSSA configuration * test FOSSA failure * Update FOSSA files changed regex * Revert "test FOSSA failure" This reverts commit a97213d. * pre-commit linting * remove docker.txt check


SUMMARY
FOSSA is not accurately checking or failing on license issues with modules in the base requirements. This PR updates the FOSSA config to test
baseanddockerrequirements for license issues, and fails the build if any are found.I've also made the FOSSA report public, so anyone should be able to view.
NOTE: there are currently dependencies in
base.txtthat do not meet Apache licensing requirements (e.g.mysqlclientandpsycopg2-binary), so the check is expected to fail.TEST PLAN
ADDITIONAL INFORMATION