fossa-cli icon indicating copy to clipboard operation
fossa-cli copied to clipboard

[No Ticket] Track counts of experimental gradle config usage

Open meghfossa opened this issue 3 years ago • 0 comments

Overview

This PR,

  • tracks experimental Gradle configuration usage
  • tracks experimental binary discovery usage
  • tracks experimental scanner usage

Acceptance criteria

  1. Tracks usage of experimental Gradle config usage
  2. Tracks usage of experimental binary discovery
  3. Tracks usage of the experimental scanner

Testing plan

  1. Create sandbox
mkdir sandbox
echo 'numpy' > sandbox/reqs.txt
  1. Create sandbox/.fossa.yml
# file: sandbox/.fossa.yml
version: 3
experimental:
  gradle:
    configurations-only:
      - example-1-config-to-include
  1. Analyze
./fossa analyze sandbox --debug --project cliPr1063 --revision 0
cat fossa.telemetry.json | jq  '.cliUsageCounter' 
# should see:
# {
#  "ExperimentalGradleConfigurationUsage": 1
# }

Risks

N/A

References

N/A

Checklist

  • [x] I added tests for this PR's change (or explained in the PR description why tests don't make sense).
  • [x] 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 # Unreleased section at the top.
  • [x] If I made changes to .fossa.yml or fossa-deps.{json.yml}, I updated docs/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).

meghfossa avatar Sep 29 '22 09:09 meghfossa