Skip to content

Commit 8c3498d

Browse files
committed
Resolve conflict in ai_movie_poster.ipynb
2 parents 09bcb58 + e9c52b1 commit 8c3498d

1,645 files changed

Lines changed: 208447 additions & 12301 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gemini/config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configure the behavior of the gemini code assist bot.
2+
# More info:
3+
# https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github
4+
have_fun: false
5+
code_review:
6+
pull_request_opened:
7+
help: false
8+
code_review: true
9+
include_drafts: true
10+
ignore_patterns:
11+
- "packages/**/services/**/client.py"
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy BigFrames docs to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
paths:
8+
- "packages/bigframes/docs/**"
9+
- ".github/workflows/bigframes-docs-deploy.yaml"
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# Build job
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v6
33+
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
34+
# See https://github.com/googleapis/google-cloud-python/issues/12013
35+
# and https://github.com/actions/checkout#checkout-head.
36+
with:
37+
fetch-depth: 2
38+
- name: Setup Python
39+
uses: actions/setup-python@v6
40+
with:
41+
python-version: "3.10"
42+
- name: Install nox
43+
run: |
44+
python -m pip install --upgrade setuptools pip wheel
45+
python -m pip install nox
46+
- name: Run docs
47+
working-directory: ./packages/bigframes
48+
run: |
49+
nox -s docs
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v5
52+
with:
53+
path: packages/bigframes/docs/_build/html/
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
runs-on: ubuntu-latest
61+
needs: build
62+
steps:
63+
- name: Deploy to GitHub Pages
64+
id: deployment
65+
uses: actions/deploy-pages@v5
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: check that Librarian and legacylibrarian configs are consistent
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: read
9+
jobs:
10+
config-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
# Use this action, rather than a file filter so that we can make this
15+
# mandatory.
16+
# See https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-including-branches
17+
# for more details.
18+
- uses: dorny/paths-filter@v4
19+
id: filter
20+
with:
21+
filters: |
22+
librarian:
23+
- 'librarian.yaml'
24+
- '.librarian/config.yaml'
25+
- '.librarian/state.yaml'
26+
- name: Config check
27+
id: config-check
28+
if: steps.filter.outputs.librarian == 'true'
29+
run: |
30+
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
31+
go run "github.com/googleapis/librarian/tool/cmd/configcheck@${V}" .
32+
- name: Report any failures
33+
if: failure() && steps.config-check.outcome == 'failure'
34+
run: |
35+
echo "Library configuration is different between state.yaml and librarian.yaml.
36+
Update library configuration in the configs according to the error message and
37+
regenerate libraries using:
38+
39+
V=\$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
40+
go run github.com/googleapis/librarian/cmd/librarian@\${V} generate --all
41+
"
42+
# Make sure this step fails too, so that it's highlighted in the action logs.
43+
exit 1
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Regenerate all packages after merging to main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
issues: write
11+
12+
jobs:
13+
regenerate:
14+
runs-on: ubuntu-latest
15+
env:
16+
PANDOC_VERSION: 3.8.2
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
22+
- name: Install Go
23+
uses: actions/setup-go@v6
24+
with:
25+
go-version: '1.26.x'
26+
27+
- name: Install protoc
28+
uses: arduino/setup-protoc@v3
29+
with:
30+
version: "25.3"
31+
32+
- name: Install pandoc
33+
run: |
34+
mkdir /tmp/pandoc
35+
curl -fsSL --retry 5 --retry-delay 15 -o /tmp/pandoc.tar.gz \
36+
https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz
37+
tar -xvf /tmp/pandoc.tar.gz -C /tmp/pandoc --strip-components=1
38+
39+
- name: Install Python packages for Librarian
40+
run: |
41+
version=$(sed -n 's/^version: *//p' librarian.yaml)
42+
go run "github.com/googleapis/librarian/cmd/librarian@${version}" install
43+
44+
- name: Regenerate
45+
run: |
46+
version=$(sed -n 's/^version: *//p' librarian.yaml)
47+
PATH=$PATH:/tmp/pandoc/bin
48+
go run "github.com/googleapis/librarian/cmd/librarian@${version}" generate -all -v
49+
50+
- name: Create issue on diff
51+
env:
52+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
run: |
54+
if [ -n "$(git status --porcelain)" ]; then
55+
TITLE="Regeneration check found diff"
56+
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
57+
DIFF_STAT=$(git diff --stat)
58+
BODY="The post-submit [regeneration check]($RUN_URL) found a diff.
59+
60+
Diff summary:
61+
\`\`\`
62+
$DIFF_STAT
63+
\`\`\`"
64+
65+
EXISTING_ISSUE=$(gh issue list --state open --search "in:title \"$TITLE\"" --json number --jq '.[0].number')
66+
if [ -z "$EXISTING_ISSUE" ]; then
67+
gh issue create --title "$TITLE" --body "$BODY"
68+
else
69+
echo "Issue #$EXISTING_ISSUE already exists, adding a comment."
70+
gh issue comment "$EXISTING_ISSUE" --body "Another failure with diff occurred: $RUN_URL"
71+
fi
72+
fi
73+
- name: Create issue on generation failure
74+
if: failure()
75+
env:
76+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
run: |
78+
TITLE="Regeneration failed"
79+
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
80+
BODY="The post-submit [regeneration check]($RUN_URL) failed."
81+
EXISTING_ISSUE=$(gh issue list --state open --search "in:title \"$TITLE\"" --json number --jq '.[0].number')
82+
if [ -z "$EXISTING_ISSUE" ]; then
83+
gh issue create --title "$TITLE" --body "$BODY"
84+
else
85+
echo "Issue #$EXISTING_ISSUE already exists, adding a comment."
86+
gh issue comment "$EXISTING_ISSUE" --body "Another regeneration failure occurred: $RUN_URL"
87+
fi

.librarian/config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ libraries:
3333
# TODO(https://github.com/googleapis/google-cloud-python/issues/16780): Disabling automatic releases until resolved.
3434
- id: "google-cloud-compute"
3535
release_blocked: true
36+
# TODO(https://github.com/googleapis/google-cloud-python/issues/16962):
37+
# Disable automatic releases until tests stabilize.
38+
- id: "pandas-gbq"
39+
release_blocked: true
40+
# TODO(https://github.com/googleapis/google-cloud-python/issues/16970):
41+
# Disable automatic releases until system tests are sped up or reorganized.
42+
- id: "google-cloud-firestore"
43+
release_blocked: true
3644

.librarian/generator-input/client-post-processing/allow-docs-warnings.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ url: https://github.com/googleapis/gapic-generator-python/issues/2490
1717
# is annoying, but that's what synthtool expects and it's not worth fixing that
1818
# at this stage.
1919
replacements:
20+
- paths: [
21+
packages/google-ads-admanager/noxfile.py,
22+
]
23+
before: ' "-W", # warnings as errors\n'
24+
after: ''
25+
count: 1
2026
- paths: [
2127
packages/google-analytics-data/noxfile.py,
2228
]

.librarian/generator-input/client-post-processing/bigtable-integration.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,14 @@ replacements:
565565
def mypy(session):
566566
"""Verify type hints are mypy compatible."""
567567
session.install("-e", ".")
568+
# TODO(https://github.com/googleapis/google-cloud-python/issues/16984):
569+
# Update to the latest version of mypy
568570
session.install(
569-
"mypy", "types-setuptools", "types-protobuf", "types-mock", "types-requests"
571+
"mypy<2.0.0",
572+
"types-setuptools",
573+
"types-protobuf",
574+
"types-mock",
575+
"types-requests",
570576
)
571577
session.install("google-cloud-testutils")
572578
session.run("mypy", "-p", "google.cloud.bigtable.data")

0 commit comments

Comments
 (0)