Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Expose coverage/exec_sec for libfuzzer targets via CLI #325

Merged
8 commits merged into from
Nov 19, 2020

Conversation

bmc-msft
Copy link
Contributor

Adds debug subcommands to the SDK/CLI that simplify querying Application Insights for libfuzzer telemetry.

Querying for the latest execs_sec for a job, by job_id fragment.

$ onefuzz debug job libfuzzer_execs_sec 88 --limit 1
[
    {
        "execs_sec": "191035",
        "machine_id": "b2dbe720-4fd8-4342-957a-6cb0979d2187",
        "timestamp": "2020-11-18T00:08:53.98Z",
        "worker_id": "0"
    }
]

Querying for the latest coverage for a job, by job_id fragment.

$ onefuzz debug job libfuzzer_coverage 88 --limit 1
[
    {
        "covered": "10",
        "features": "21",
        "rate": "0.47619047619047616",
        "timestamp": "2020-11-18T00:09:40.793Z"
    }
]

src/cli/onefuzz/debug.py Show resolved Hide resolved
src/cli/onefuzz/debug.py Show resolved Hide resolved
@ghost
Copy link

ghost commented Nov 18, 2020

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 18 hours, a condition that will be fulfilled in about 12 hours 16 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 31a661f into microsoft:main Nov 19, 2020
@bmc-msft bmc-msft deleted the add-coverage-execsec-cli branch January 20, 2021 11:09
@ghost ghost locked as resolved and limited conversation to collaborators Apr 17, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants