Skip to content

Normalize archive paths with posixpath and mark discovery builds partial - #5548

Draft
notvictorl wants to merge 1 commit into
google:masterfrom
notvictorl:liuvic/drop
Draft

notvictorl wants to merge 1 commit into
google:masterfrom
notvictorl:liuvic/drop

Conversation

@notvictorl

Copy link
Copy Markdown
Collaborator

wip

b/563414378

@notvictorl
notvictorl requested a review from a team as a code owner October 20, 2026 18:30
@notvictorl
notvictorl marked this pull request as draft October 20, 2026 18:31
if not self.list_members():
return ''
return os.path.commonpath([f.name for f in self.list_members()])
# Member names always use '/', whatever the host OS, so don't use os.path

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this worth documenting at the class level?

def is_fuzz_target(file_path, file_opener: Optional[Callable] = None):
"""Returns whether |file_path| is a fuzz target binary (local path)."""
if '@' in file_path:
normalized_path = file_path.replace('\\', '/')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do we need any of these utils.py changes? Can we just limit the path normalization to build_archive.py and archive.py? Then these utils would continue to be OS agnostic.

Can you confirm whether or not Linux bots process Windows archives or manifests? If they do, then we could normalize once when extracting the fuzz targets, rather than each check.

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.

No, we can probably limit it to the archive files.

Linux bots never process Windows archives or manifests so changes are not needed in utils.py.

This branch has not been deployed

No deployments
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.

2 participants