Skip to content

Improve comments on app engine imports and add docs - #5449

Merged
notvictorl merged 4 commits into
google:masterfrom
notvictorl:comments
Sep 8, 2026
Merged

Improve comments on app engine imports and add docs#5449
notvictorl merged 4 commits into
google:masterfrom
notvictorl:comments

Conversation

@notvictorl

Copy link
Copy Markdown
Collaborator

Document developer pitfalls on App Engine imports and update comments to be clearer to be clearer on what and why it has to be imported locally.

b/552964079

@notvictorl
notvictorl requested a review from a team as a code owner September 2, 2026 21:42
Comment thread src/clusterfuzz/_internal/build_management/build_archive.py
Comment thread docs/contributing-code/source_code.md

@dylanjew dylanjew left a comment

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.

LGTM, pending comments.

This only changes documentation so is safe to merge, but will add @ViniciustCosta for visibility

@notvictorl
notvictorl requested a review from dylanjew September 3, 2026 20:48

@dylanjew dylanjew left a comment

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.

LGTM

Comment thread docs/contributing-code/source_code.md Outdated
"""
if self._fuzz_targets is None:
# Import here as this path is not available in App Engine context.
# IMPORTANT: `clusterfuzz._internal.bot` has to be imported locally since

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.

Tbh I'm not a big fan of the "IMPORTANT", I think the comment right above the import is pretty clear, now with the link to the doc for rationale.

@dylanjew dylanjew Sep 4, 2026

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.

I'm not a huge fan of it either, but if we're relying on comments to enforce correctness rather than tests I thought it might help it stand out.

I'm ok with keeping the previous text with the link

@notvictorl
notvictorl merged commit b37df97 into google:master Sep 8, 2026
15 checks passed
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