8000 ci: Configure Renovate to keep Python at 3.10 for docs workflow by chalmerlowe · Pull Request #2199 · googleapis/python-bigquery · GitHub
[go: up one dir, main page]

Skip to content

ci: Configure Renovate to keep Python at 3.10 for docs workflow #2199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 23, 2025

Conversation

chalmerlowe
Copy link
Collaborator
@chalmerlowe chalmerlowe commented May 23, 2025

When Renovate Bot checks for potential updates to dependency versions, it is currently updating a file that it should not be looking at: docs.yml and it is updating a matplotlib dependency in pyproject.toml that we need to have locked down tight when using Python 3.9.

This PR puts docs.yml on an excludes list so that Owlbot will ignore it.
It adds a regex line to renovate.json to ensure that the matplotlib dependency does not change.

This change adds a packageRule to `renovate.json` to prevent Renovate
from updating the Python version used in the `.github/workflows/docs.yml`
GitHub Actions workflow.

The rule specifically targets the `python-version` input of the
`actions/setup-python` step and restricts allowed versions to `<3.11`,
effectively pinning it to `3.10` for now.
@chalmerlowe chalmerlowe requested review from a team as code owners May 23, 2025 13:01
@chalmerlowe chalmerlowe requested a review from whuffman36 May 23, 2025 13:01
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label May 23, 2025
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label May 23, 2025
@product-auto-label product-auto-label bot added size: u Pull request is empty. and removed size: xs Pull request size is extra small. labels May 23, 2025
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: u Pull request is empty. labels May 23, 2025
@product-auto-label product-auto-label bot added size: u Pull request is empty. and removed size: s Pull request size is small. labels May 23, 2025
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: u Pull request is empty. labels May 23, 2025
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: s Pull request size is small. labels May 23, 2025
@chalmerlowe chalmerlowe added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 23, 2025
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels May 23, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 23, 2025
@chalmerlowe
Copy link
Collaborator Author
chalmerlowe commented May 23, 2025

The failing tests in unittest / unit (3.13) associated with test_magics.py are a known issue and are being addressed via a different PR.

unittest / cover gets skipped if any of the unittests fail since it can't make an accurate measure of coverage.

@chalmerlowe chalmerlowe self-assigned this May 23, 2025
Copy link
Contributor
@leahecole leahecole left a comment

Choose a reason for hiding this comment

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

✅ approving in the name of science and experimenting to get these configs just right! (once tests pass)

@chalmerlowe chalmerlowe merged commit 85ff5b1 into main May 23, 2025
26 of 27 checks passed
@chalmerlowe chalmerlowe deleted the renovate-pin-docs-python branch May 23, 2025 14:25
shollyman pushed a commit to shollyman/python-bigquery that referenced this pull request May 27, 2025
…leapis#2199)

* Configure Renovate to keep Python at 3.10 for docs workflow

This change adds a packageRule to `renovate.json` to prevent Renovate
from updating the Python version used in the `.github/workflows/docs.yml`
GitHub Actions workflow.

The rule specifically targets the `python-version` input of the
`actions/setup-python` step and restricts allowed versions to `<3.11`,
effectively pinning it to `3.10` for now.

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update renovate.json

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* adds files to excludes lists

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update owlbot.py

* adds packageRule about pyproject.toml

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0