Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

feat: microgen - adds source file gathering functions#2293

Merged
chalmerlowe merged 17 commits intoautogenfrom
feat/adds-source-file-gathering-functions
Sep 23, 2025
Merged

feat: microgen - adds source file gathering functions#2293
chalmerlowe merged 17 commits intoautogenfrom
feat/adds-source-file-gathering-functions

Conversation

@chalmerlowe
Copy link
Copy Markdown
Collaborator

@chalmerlowe chalmerlowe commented Sep 15, 2025

This pull request extends the generate.py module with functions that analyze and process the parsed source code information. New functions gather and filter data from the source files, preparing it for use in code generation templates.

Implements functions to analyze Python source files, including:

  • Filtering classes and methods based on configuration.
  • Building a schema of *Request classes and their arguments.
  • Processing service client files to extract structured data needed by the generator.

Migrates the empty __init__.py file to the microgenerator package.
Introduces the CodeAnalyzer class and helper functions for parsing Python code using the ast module. This provides the foundation for understanding service client structures.
    Implements functions to analyze Python source files, including:
    - Filtering classes and methods based on configuration.
    - Building a schema of request classes and their arguments.
    - Processing service client files to extract relevant information.
@chalmerlowe chalmerlowe requested review from a team and leahecole and removed request for a team September 15, 2025 15:17
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Sep 15, 2025
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Sep 15, 2025
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Sep 15, 2025
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Sep 15, 2025
@chalmerlowe chalmerlowe added this to the µgen PoC milestone Sep 16, 2025
@chalmerlowe
Copy link
Copy Markdown
Collaborator Author

For clarity:

  1. The GitHub Actions are being used to help ensure that unit tests pass.
    Screenshot 2025-08-20 at 9 14 08 AM
  2. The KOKORO tests are failing. This is a known problem and will be dealt with in a separate PR. It should not affect merging into the autogen dev branch.
    Screenshot 2025-08-20 at 9 13 45 AM

Base automatically changed from feat/add-ast-utilities to autogen September 22, 2025 18:28
@chalmerlowe chalmerlowe enabled auto-merge (squash) September 23, 2025 18:05
@chalmerlowe chalmerlowe added the automerge Merge the pull request once unit tests and other checks pass. label Sep 23, 2025
@chalmerlowe chalmerlowe merged commit 260eedf into autogen Sep 23, 2025
25 checks passed
@chalmerlowe chalmerlowe deleted the feat/adds-source-file-gathering-functions branch September 23, 2025 21:04
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants