fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.29k stars 173 forks source link

Strict mode #1463

Closed JeffreyHuynh1 closed 2 months ago

JeffreyHuynh1 commented 2 months ago

Overview

We should allow users to enforce that the first strategy within our list of strategies passes. This is to ensure ‘ideal’ results and that no fallback strategies are ran.

Acceptance criteria

Testing plan

Manually testing:

Risks

Would like to add some automated tests but wanted to get some opinions. Would it be sufficient to just create a test for guardStrictMode bc that's the main logic that powers strict mode? Unsure on how to best create tests for strict mode for specific languages / package managers.

Metrics

References

Checklist

csasarak commented 2 months ago

One thing I forgot to mention is that I think this should be pretty easy to write tests for. I think that if you go to the tests for each of these strategies there is likely one that gets results from the "ideal" analysis. You can run the analysis using strict mode and just check that the output equals the output of the other test. I'd like it if you could try to make a few of these and see what the effort is like. Let me know if you'd like any help.

carloskcheung commented 2 months ago

Carlos Cheung - Georgetown Club of Northern California, Board Member Twitter: @Carloskcheung | 415.515.1063 | http://www.linkedin.com/in/carloscheung "Learn to work then you'll always work; Work to learn then you'll always learn"

On Tue, Sep 3, 2024 at 10:45 AM Christopher Sasarak < @.***> wrote:

One thing I forgot to mention is that I think this should be pretty easy to write tests for. I think that if you go to the tests for each of these strategies there is likely one that gets results from the "ideal" analysis. You can run the analysis using strict mode and just check that the output equals the output of the other test. I'd like it if you could try to make a few of these and see what the effort is like. Let me know if you'd like any help.

— Reply to this email directly, view it on GitHub https://github.com/fossas/fossa-cli/pull/1463#issuecomment-2327092935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXKLILIL3ITIDRFTCQ6JYLZUXYVJAVCNFSM6AAAAABNNBEHFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRXGA4TEOJTGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>