GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Docs build in google-ai-generativelanguage fails · Issue #16376 · googleapis/google-cloud-python

Docs build in google-ai-generativelanguage fails #16376

New issue
Copy link
New issue
Copy link
Closed
Closed
Docs build in google-ai-generativelanguage fails#16376
Copy link
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.type: processA process-related concern. May include testing, release, or the like.

Description

@parthea
parthea
opened on Sep 20, 2023
Issue body actions

I had to manually fix a google-cloud-python PR that had a comment looking like this:

        Returns:
            google.ai.generativelanguage_v1beta3.types.Permission:
                Permission resource grants user,
                group or the rest of the world access to
                the PaLM API resource (e.g. a tuned
                model, file).
                A role is a collection of permitted
                operations that allows users to perform
                specific actions on PaLM API resources.
                To make them available to users, groups,
                or service accounts, you assign roles.
                When you assign a role, you grant
                permissions that the role contains.
                There are three concentric roles. Each
                role is a superset of the previous
                role's permitted operations:
                 - reader can use the resource (e.g.
                  tuned model) for inference
                 - writer has reader's permissions and
                  additionally can edit and share
                 - owner has writer's permissions and
                  additionally can delete

The issue is that sphinx does not expect a blank space before a list item. Sphinx expects to see

        Returns:
            google.ai.generativelanguage_v1beta3.types.Permission:
                Permission resource grants user,
                group or the rest of the world access to
                the PaLM API resource (e.g. a tuned
                model, file).
                A role is a collection of permitted
                operations that allows users to perform
                specific actions on PaLM API resources.
                To make them available to users, groups,
                or service accounts, you assign roles.
                When you assign a role, you grant
                permissions that the role contains.
                There are three concentric roles. Each
                role is a superset of the previous
                role's permitted operations:
                - reader can use the resource (e.g.
                  tuned model) for inference
                - writer has reader's permissions and
                  additionally can edit and share
                - owner has writer's permissions and
                  additionally can delete

We should add this as a test here and also consider proposing an update to AIPs to check if the API protos could follow this convention as well.

See build log here which includes the full stack trace from #11670

Activity

Next
  1. vchudnov-g commented on Sep 21, 2023

    @vchudnov-g
    vchudnov-g
    on Sep 21, 2023
    Contributor
    More actions

    You mention blank lines, but the code snippets in your description and your fix don't deal with blank lines, just with out-denting the list items. At the same time, the build log you reference talks about the error being triggered by a lack of a blank line after the indented list items.

    Is the issue that when the list items are indented, they need to be followed by a blank line, so it's easier to not indent them if possible?

  2. parthea
    added a commit that references this issue on Sep 21, 2023

    fix: set google.ai.generativelanguage_v1beta3 as the default import (#…

    39ea699
  3. parthea
    added a commit that references this issue on Sep 30, 2023

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    e3b33e2
  4. ohmayr commented on Oct 16, 2023

    @ohmayr
    ohmayr
    on Oct 16, 2023
    Contributor
    More actions

    I agree with @vchudnov-g that we're not dealing with blank lines in the fix and it only includes outdenting the bullet points even though the build logs have the following error:

    Bullet list ends without a blank line; unexpected unindent.
    

    @parthea we'll need some more clarification here.

  5. ohmayr
    closed this as completedon Oct 16, 2023
  6. ohmayr
    added
    type: processA process-related concern. May include testing, release, or the like.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Oct 16, 2023
  7. ohmayr
    reopened this on Oct 16, 2023
  8. parthea commented on Oct 16, 2023

    @parthea
    parthea
    on Oct 16, 2023
    ContributorAuthor
    More actions

    The error mentions Bullet list ends without a blank line; unexpected unindent. but my comment doesn't mention blank line.

    The issue is that sphinx does not expect a blank space before a list item.

    Perhaps the error from sphinx is misleading. Please see my comment The issue is that sphinx does not expect a blank space before a list item.

  9. parthea
    added a commit that references this issue on Dec 7, 2023

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    05f8a41
  10. parthea
    changed the title [-]Docs build in google-ai-generativelanguage fails with Bullet list ends without a blank line; unexpected unindent[/-] [+]Docs build in google-ai-generativelanguage fails[/+] on Dec 9, 2023
  11. parthea commented on Dec 9, 2023

    @parthea
    parthea
    on Dec 9, 2023
    ContributorAuthor
    More actions

    Capturing another docs issue with google-ai-generativelanguage

    See https://github.com/googleapis/googleapis/blob/b54255c0ad0a432c29ae3e15fd79a53c5ebc03b1/google/ai/generativelanguage/v1beta/retriever.proto#L74-L75 where there is an asterisk character which is not surrounded by backticks or escaped.

    This caused the docs build to fail with

    sphinx.errors.SphinxWarning: /usr/local/google/home/partheniou/git/google-cloud-python/packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta/types/retriever.py:docstring of google.ai.generativelanguage_v1beta.types.retriever.Document:6:Inline emphasis start-string without end-string.
    
    Warning, treated as error:
    /usr/local/google/home/partheniou/git/google-cloud-python/packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta/types/retriever.py:docstring of google.ai.generativelanguage_v1beta.types.retriever.Document:6:Inline emphasis start-string without end-string.
    

    Instead of

      // Immutable. Identifier. The `Document` resource name. The ID (name excluding
      // the "corpora/*/documents/" prefix) can contain up to 40 characters that are
    

    It should be

      // Immutable. Identifier. The `Document` resource name. The ID (name excluding
      // the `corpora/*/documents/` prefix) can contain up to 40 characters that are
    

    See https://github.com/googleapis/google-cloud-python/actions/runs/7147914046/job/19468207013?pr=12106

    We should add a linter rule to check for unsupported formatting in proto comments via https://github.com/googleapis/api-linter .

  12. parthea
    added 2 commits that reference this issue on Dec 9, 2023

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    36a4bda

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    db13f8f
  13. parthea
    added a commit that references this issue on Jan 20, 2024

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    70d5f23
  14. 60 remaining items

  15. ohmayr
    added a commit that references this issue on Jun 24, 2024

    chore: fix the docs build in google-cloud-network-management (#12336)

    7909b0f
  16. parthea
    added a commit that references this issue on Jul 8, 2024

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    a50b248
  17. parthea
    added a commit that references this issue on Jul 30, 2024

    See https://github.com/googleapis/gapic-generator-python/issues/1776

    5ec98d6
  18. ohmayr
    added 8 commits that reference this issue on Aug 8, 2024

    chore: fix docs build in google-analytics-admin (#12341)

    155d91f

    chore: fix the docs in google-cloud-deploy (#12338)

    10bdd8f

    chore: fix docs build in google-cloud-documentai (#12346)

    a96cd71

    chore: fix the docs build in google-cloud-network-management (#12336)

    86955c6

    chore: fix the docs build in google-cloud-network-management (#12336)

    18fa529

    chore: fix docs build in google-cloud-documentai (#12346)

    85d0a82

    chore: fix the docs in google-cloud-deploy (#12338)

    b141be4

    chore: fix docs build in google-analytics-admin (#12341)

    81d5975
  19. parthea commented on Mar 26, 2026

    @parthea
    parthea
    on Mar 26, 2026
    ContributorAuthor
    More actions

    Transferring to google-cloud-python as the code for gapic-generator will be migrated there.

  20. parthea
    transferred this issue fromgoogleapis/gapic-generator-pythonon Mar 26, 2026
  21. parthea commented on Apr 28, 2026

    @parthea
    parthea
    on Apr 28, 2026
    ContributorAuthor
    More actions

    Closing as obsolete as we're no longer treating docs warnings as errors as of #16627

  22. parthea
    closed this as completedon Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: processA process-related concern. May include testing, release, or the like.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.