fossa-cli
fossa-cli copied to clipboard
[ANE-380] Waits for revision cache before producing report
Overview
This PR modified the report command such that,
- If the endpoint server supports polling for revision's dependency cache status, we poll until
READYstatus is received - If the endpoint server does not support polling for revision's dependency cache status, we wait for the issues scan (this is current behaviour)
Acceptance criteria
- If the endpoint server supports polling for revision's dependency cache status, we poll until the
READYstatus is received - If the endpoint server does not support polling for revision's dependency cache status, we wait for the issues scan (this is current behaviour)
Testing plan
Sibing PR: https://github.com/fossas/FOSSA/pull/8522.
- Perform
git checkout master && git pull origin && git checkout feat/adds-report-polling && make install-local - Ensure your LOCAL endpoint is at: https://github.com/fossas/FOSSA/pull/8522.
- Perform until Step 3 from the sibling PR testing plan.
- Perform
./fossa report attribution --format json --project ane380 --revision 0 --endpoint http://localhost:9578 --fossa-api-key <API-KEY>
- Perform Step 4 from the sibling PR testing plan.
- CLI should successfully produce the report.
Risks
N/A
References
Checklist
- [x] I added tests for this PR's change (or explained in the PR description why tests don't make sense).
- [ ] If this PR introduced a user-visible change, I added documentation into
docs/. - [x] If this change is externally visible, I updated
Changelog.md. If this PR did not mark a release, I added my changes into an# Unreleasedsection at the top. - [x] If I made changes to
.fossa.ymlorfossa-deps.{json.yml}, I updateddocs/references/files/*.schema.json. You may also need to update these if you have added/removed new dependency type (e.g.pip) or analysis target type (e.g.poetry).