Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
I was debugging a problem the other day, and it would have been useful to know the exact time that commands were starting.
This PR adds the start time to events in the debug bundle.
Acceptance criteria
We show a start time in a human readable format wherever we show a duration in the debug bundle
Testing plan
Run cabal run fossa -- analyze --debug on a directory. Check out the bundleScope section of the debug bundle. Wherever there is a duration, there should also be a startTime.
[ ] 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/.
[ ] If this PR added docs, I added links as appropriate to the user manual's ToC in docs/README.ms and gave consideration to how discoverable or not my documentation is.
[ ] 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.
[ ] If I made changes to .fossa.yml or fossa-deps.{json.yml}, I updated docs/references/files/*.schema.json AND I have updated example files used by fossa init command. 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).
[ ] If I made changes to a subcommand's options, I updated docs/references/subcommands/<subcommand>.md.
Overview
I was debugging a problem the other day, and it would have been useful to know the exact time that commands were starting.
This PR adds the start time to events in the debug bundle.
Acceptance criteria
Testing plan
Run
cabal run fossa -- analyze --debug
on a directory. Check out thebundleScope
section of the debug bundle. Wherever there is aduration
, there should also be astartTime
.Risks
This is low risk.
Metrics
References
Checklist
docs/
.docs/README.ms
and gave consideration to how discoverable or not my documentation is.Changelog.md
. If this PR did not mark a release, I added my changes into an# Unreleased
section at the top..fossa.yml
orfossa-deps.{json.yml}
, I updateddocs/references/files/*.schema.json
AND I have updated example files used byfossa init
command. 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
).docs/references/subcommands/<subcommand>.md
.