Skip to content

chore: regenerate all READMEs with Python 3.11 to match CI#94

Closed
emjay0921 wants to merge 1 commit into19.0from
fix/regenerate-readmes-python311
Closed

chore: regenerate all READMEs with Python 3.11 to match CI#94
emjay0921 wants to merge 1 commit into19.0from
fix/regenerate-readmes-python311

Conversation

@emjay0921
Copy link
Copy Markdown
Contributor

Why is this change needed?

CI pre-commit workflow uses Python 3.11, but these auto-generated files were committed using Python 3.12. The docutils library produces slightly different HTML between versions (column widths, text wrapping in tables), causing every PR to fail the pre-commit check.

How was the change implemented?

Ran oca-gen-addon-readme under Python 3.11 to regenerate all README.rst and static/description/index.html files. This is a one-time alignment — future PRs will pass pre-commit as long as contributors use Python 3.11 for the OCA readme generator.

New unit tests

Unit tests executed by the author

How to test manually

  1. Create any PR after this is merged
  2. Pre-commit CI should pass without README diffs

Related links

CI pre-commit uses Python 3.11. The docutils library produces slightly
different HTML output between Python 3.11 and 3.12 (column widths, text
wrapping). This one-time regeneration aligns all auto-generated files
with CI to prevent pre-commit failures on future PRs.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.65%. Comparing base (839f83e) to head (315d426).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             19.0      #94      +/-   ##
==========================================
+ Coverage   70.39%   70.65%   +0.25%     
==========================================
  Files         674      697      +23     
  Lines       37005    38304    +1299     
==========================================
+ Hits        26051    27063    +1012     
- Misses      10954    11241     +287     
Flag Coverage Δ
endpoint_route_handler 75.38% <ø> (?)
fastapi 84.21% <ø> (ø)
spp_aggregation 85.06% <ø> (ø)
spp_alerts 94.08% <ø> (ø)
spp_api_v2 79.96% <ø> (ø)
spp_api_v2_change_request 60.29% <ø> (ø)
spp_api_v2_cycles 71.12% <ø> (ø)
spp_api_v2_data 64.41% <ø> (ø)
spp_api_v2_entitlements 70.19% <ø> (ø)
spp_api_v2_gis 71.52% <ø> (ø)
spp_api_v2_service_points 70.94% <ø> (ø)
spp_api_v2_simulation 69.61% <ø> (ø)
spp_api_v2_vocabulary 57.26% <ø> (ø)
spp_approval 50.29% <ø> (ø)
spp_area 79.26% <ø> (?)
spp_area_hdx 81.43% <ø> (ø)
spp_base_common 90.26% <ø> (ø)
spp_programs 45.51% <ø> (ø)
spp_security 66.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 23 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@emjay0921
Copy link
Copy Markdown
Contributor Author

Closing — READMEs were regenerated without the custom template flag, which brought back the OCA banner. Will redo correctly.

@emjay0921 emjay0921 closed this Mar 12, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request synchronizes the auto-generated documentation files across the repository with the Python 3.11 environment used in continuous integration. The previous generation using Python 3.12 led to minor formatting discrepancies in the HTML output, causing pre-commit checks to fail. By regenerating these files with the correct Python version, we ensure that future contributions will pass CI without unexpected documentation diffs.

Highlights

  • CI Pre-commit Fix: Resolved recurring CI pre-commit failures caused by inconsistencies in auto-generated documentation files.
  • Documentation Regeneration: All README.rst and static/description/index.html files were regenerated using Python 3.11 to align with the CI environment.
  • Docutils Compatibility: Addressed differences in HTML output produced by the docutils library between Python 3.11 and 3.12, ensuring consistent documentation rendering.
Changelog
  • *.html files
    • Changed the HTML <title> tag content from the module name to 'README.rst'.
    • Incorporated the Odoo Community Association (OCA) banner image into the HTML output.
    • Updated the source digest SHA256 hash.
    • Adjusted HTML heading levels (e.g., <h1> to <h2>, <h2> to <h3>, <h3> to <h4>) to standardize document structure.
    • Corrected minor text wrapping and column width differences in tables due to docutils version changes.
  • *.rst files
    • Added the Odoo Community Association (OCA) banner image at the top of each README.
    • Updated the source digest SHA256 hash to reflect the regenerated content.
    • Some READMEs also included a new link for 'More details on development status'.
Activity
  • emjay0921 created this pull request to address persistent CI failures related to documentation generation.
  • The author regenerated all affected documentation files to ensure compatibility with the Python 3.11 environment used in CI.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request regenerates all README files using Python 3.11 to align with the CI environment. The changes primarily consist of formatting adjustments in .rst and .html files, such as table column widths, text wrapping, and heading structures, which are expected from the docutils library version change. I've identified a minor regression in all generated index.html files where the page title is set to "README.rst" instead of the more descriptive addon name. I've left a specific comment on one file to address this, which should be applied across all similar files. Apart from this, the changes are consistent with the goal of the pull request.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Endpoint route handler</title>
<title>README.rst</title>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The page title has been changed to README.rst, which is not descriptive for users viewing the page in a browser tab. It would be better to use the addon name as the title, as it was before (Endpoint route handler). This seems to be a regression in the oca-gen-addon-readme tool and should be corrected for a better user experience. This issue is present in all generated index.html files in this pull request.

Suggested change
<title>README.rst</title>
<title>Endpoint route handler</title>

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.

1 participant