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

Add generic coverage task #763

Merged
66 commits merged into from
Jun 3, 2021
Merged

Add generic coverage task #763

66 commits merged into from
Jun 3, 2021

Conversation

ranweiler
Copy link
Member

@ranweiler ranweiler commented Apr 1, 2021

Todo:

@bmc-msft bmc-msft self-requested a review April 1, 2021 01:20
@ranweiler ranweiler marked this pull request as ready for review April 6, 2021 17:02
@ranweiler
Copy link
Member Author

ranweiler commented Apr 7, 2021

Blocked by #777.

@ranweiler ranweiler requested a review from bmc-msft May 26, 2021 21:01
@@ -72,6 +74,12 @@ def _create_tasks(
),
]

# We don't really need a separate timeout for crash reporting, and we could just
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compare with definition of coverage_timeout below.

Open to suggestions here; we could also just NOT introduce a new template arg, reuse crash_report_timeout, and unify them later as a breaking change.

@ranweiler
Copy link
Member Author

This failure seems unrelated to my changes: https://github.com/microsoft/onefuzz/pull/763/checks?check_run_id=2679243380

@bmc-msft
Copy link
Contributor

yeah, I'm seeing the same failure on another PR. #830 just failed with the same issue.

bmc-msft and others added 5 commits May 26, 2021 18:46
this fixes an issue related to object id reuse that can occur making the
object identification cache fail.  Instead, this simplifies the
hide_secrets to always recurse and use setattr to always set the value
based on the recursion.

Note, the object id reuse issue was seen in the
`events.filter_event_recurse` development and this was the fix for the
id reuse there.

Python documentation states:

id(object):

Return the “identity” of an object. This is an integer (or long integer)
which is guaranteed to be unique and constant for this object during its
lifetime. Two objects with non-overlapping lifetimes may have the same
id() value.
Copy link
Contributor

@bmc-msft bmc-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running the integration tests gives this error similar to this for all of the Linux jobs:

ERROR:integration:task failed: linux-libfuzzer - coverage (code=<ErrorCode.TASK_FAILED: 468> errors=['task failed. exit_status:code=1 signal=None success=False', '', '[2021-05-27T17:48:48Z INFO  onefuzz_agent::tasks::config] agent ready, dispatching task\n[2021-05-27T17:48:48Z INFO  onefuzz_agent::tasks::config] task_start event_type:coverage\n[2021-05-27T17:48:48Z INFO  onefuzz_agent::tasks::coverage::generic] starting coverage task\n[2021-05-27T17:48:50Z ERROR onefuzz_agent::managed::cmd] error running task: No such file or directory (os error 2)\nError: No such file or directory (os error 2)\n'])

and an error similar to this for all of the windows jobs:

ERROR:integration:task failed: windows-libfuzzer-linked-library - coverage (code=<ErrorCode.TASK_FAILED: 468> errors=['task failed. exit_status:code=1 signal=None success=False', '', '[2021-05-27T17:53:01Z INFO  onefuzz_agent::tasks::config] agent ready, dispatching task\n[2021-05-27T17:53:01Z INFO  onefuzz_agent::tasks::config] task_start event_type:coverage\n[2021-05-27T17:53:01Z INFO  onefuzz_agent::tasks::coverage::generic] starting coverage task\n[2021-05-27T17:53:04Z ERROR onefuzz_agent::managed::cmd] error running task: The system cannot find the file specified. (os error 2)\nError: The system cannot find the file specified. (os error 2)\n'])

@ranweiler ranweiler requested a review from bmc-msft May 27, 2021 22:27
@ghost
Copy link

ghost commented Jun 3, 2021

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.

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 2c72bd5 into microsoft:main Jun 3, 2021
@ranweiler ranweiler deleted the generic-cov-task branch June 3, 2021 23:44
@ghost ghost locked as resolved and limited conversation to collaborators Jul 4, 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