Skip to content

[NDB PERMISSION_DENIED] Introduce FuzzerRunOutputData and utils#5376

Open
IvanBM18 wants to merge 2 commits into
masterfrom
refactor/bb-logs-data-model
Open

[NDB PERMISSION_DENIED] Introduce FuzzerRunOutputData and utils#5376
IvanBM18 wants to merge 2 commits into
masterfrom
refactor/bb-logs-data-model

Conversation

@IvanBM18

@IvanBM18 IvanBM18 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Bug: b/532610906

Context

Overview

This First PR(Of 4) to tackle an instance of PERMISSION_DENIED issues when executing a BlackBox test case in a uworker bot.

This PR creates 2 new classes that will help us handle the processing of a test case execution in the next prs

Changes

  • Introduces two new classes to encapsulate all the info obtained from a BlackBox test case execution
    • The fuzzer output can be received either trough bits, a string, or a log file
  • Adds a new utils logic to read and delete a file after reading

PR stack

Current -> PR #5376: Introduce FuzzerRunOutputData and utils (Base: master)
PR #5377: Refactor _to_fuzzer_run_output to use FuzzerRunOutputData (Base: PR 1)
PR #5388: refactor: Add utils.create_temp_file helper (Base: PR 2)
PR #5378: Defer Blackbox Fuzzer Log Uploads (Base: PR 3)

Please only approve I'll merge the PRs to handle any merge conflicts :D

IvanBM18 added 2 commits July 23, 2026 02:55
Split output_or_file_path into _output and _file_path in FuzzerRunOutputData. Introduce from_file_path and from_memory factory classmethods to replace the single parameter initialization.
if self._file_path:
if not os.path.exists(self._file_path):
return None
output = utils.read_data_from_file_and_remove(

@IvanBM18 IvanBM18 Jul 24, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Deletes the files because output files are meant to be temp files that allows us to more easily capture the fuzzer's log output

@IvanBM18 IvanBM18 changed the title Introduce FuzzerRunOutputData and utils [NDB PERMISSION_DENIED] Introduce FuzzerRunOutputData and utils Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant