Skip to content

Conversation

@javanlacerda
Copy link
Collaborator

fix b/482257453

Update get_kernel_hash_and_build_id to return a tuple with None, None if the match fails. It avoids to have TypeError: cannot unpack non-iterable NoneType object.

It also create unit tests for src/clusterfuzz/_internal/platforms/android/kernel_utils.py.

@javanlacerda javanlacerda requested a review from decoNR February 9, 2026 20:29
@javanlacerda javanlacerda force-pushed the javan.fix.handle_tuple branch from 6064d67 to 9732f68 Compare February 9, 2026 20:36
Copy link
Contributor

@decoNR decoNR left a comment

Choose a reason for hiding this comment

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

Nice that you have added tests, thanks!

'clusterfuzz._internal.platforms.android.settings.get_build_product',
])

def test_default(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the following tests are missing doc strings, please add it to them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure!

return _get_prefix_and_full_hash(android_kernel_repo_data,
kernel_partial_hash)

return None, None
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know why here is returned None, None and line 117 returns None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is a bug, definitely.

@decoNR
Copy link
Contributor

decoNR commented Feb 9, 2026

Please fix check Run basic tests / build (pull_request).

Signed-off-by: Javan Lacerda <[email protected]>
@javanlacerda javanlacerda force-pushed the javan.fix.handle_tuple branch from 9732f68 to 091447b Compare February 10, 2026 14:11
Signed-off-by: Javan Lacerda <[email protected]>
@javanlacerda javanlacerda merged commit 14d4000 into master Feb 10, 2026
11 checks passed
@javanlacerda javanlacerda deleted the javan.fix.handle_tuple branch February 10, 2026 16:27
@cemon721-a11y
Copy link

cemon721-a11y commented Feb 10, 2026 via email

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.

3 participants