Skip to content

Conversation

@ViniciustCosta
Copy link
Collaborator

@ViniciustCosta ViniciustCosta commented Oct 31, 2025

Fix missing testcase metadata when fuzz task is running on batch (or any non-local execution).

Context

Some build-related environment variables (build_url, build_key and gn_args_path) are set during the build setup on fuzz task main stage. These should be retrieved during postprocess to set the testcase's metadata, which is used to display the build url and the gn args config section on the clusterfuzz UI.

However, for non-local execution, these variables are not propagated through the uworker_output proto and are missing in postprocess, so any testcase created during fuzzing on batch is not displaying these values.

Changes

  • Added the build_url, build_key and gn_args fields to the fuzz task output message.
  • Added the logic to store these fields and use them to set the initial testcase metadata.

Tests

Bug: b/441128474
Related issue: #4914

@ViniciustCosta ViniciustCosta marked this pull request as ready for review November 3, 2025 13:20
def test_set(self):
"""Test set everything."""
def test_testcase_metadata_from_env(self):
"""Tests the initial testcase metadata set from the env vars."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice improvement :)

Copy link
Contributor

@javanlacerda javanlacerda left a comment

Choose a reason for hiding this comment

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

Could you provide any evidence this changes will not break anything in prod?

@ViniciustCosta
Copy link
Collaborator Author

Could you provide any evidence this changes will not break anything in prod?

I added to the PR description. PTAL

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.

4 participants