Skip to content

Commit 04f3af2

Browse files
committed
Merge remote-tracking branch 'origin/main' into docs/fix-time-to-py-docstring
2 parents ab7bb53 + 3b3f3f4 commit 04f3af2

70 files changed

Lines changed: 3670 additions & 4471 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.

.kokoro/system.sh

Lines changed: 56 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ run_package_test() {
6767
# 🪤 TRAP: Ensure cleanup of THIS specific temp dir on exit of this subshell
6868
trap 'rm -rf "$gcloud_config_dir"' EXIT
6969

70-
71-
echo "------------------------------------------------------------"
72-
echo "Configuring environment for: ${package_name}"
73-
echo "------------------------------------------------------------"
74-
7570
case "${package_name}" in
7671
"google-auth")
7772
# Copy files needed for google-auth system tests
@@ -92,6 +87,14 @@ run_package_test() {
9287
NOX_FILE="noxfile.py"
9388
fi
9489
;;
90+
"google-cloud-dns")
91+
# EXPERIMENTAL: Force running all system sessions to test mixed results. This will be reverted
92+
# before merge. You can safely ignore it.
93+
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
94+
GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/service-account.json"
95+
NOX_FILE="noxfile.py"
96+
NOX_SESSION="system"
97+
;;
9598
*)
9699
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
97100
GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/service-account.json"
@@ -125,7 +128,7 @@ run_package_test() {
125128
reap_parallel_results() {
126129
local retval=0
127130
local failed_count=0
128-
local passed_count=0
131+
local succeeded_count=0
129132

130133
if [ -z "$LOG_DIR" ]; then
131134
echo "Error: LOG_DIR is not set."
@@ -140,49 +143,76 @@ reap_parallel_results() {
140143
done
141144

142145
local total_tested=${#PACKAGES_TO_TEST[@]}
143-
passed_count=$((total_tested - failed_count))
146+
succeeded_count=$((total_tested - failed_count))
144147

145148
echo ""
146149
echo "=================================================="
147-
echo " TEST RUN SUMMARY "
150+
echo "@SUMMARY - TEST RUN RESULTS"
148151
echo "=================================================="
149-
echo "Total tested: $total_tested"
150-
echo "Passed: $passed_count"
151-
echo "Failed: $failed_count"
152+
echo "Total Packages: $total_tested"
153+
echo "Succeeded: $succeeded_count"
154+
echo "Failed: $failed_count"
152155
echo "=================================================="
153156

154-
local passed_packages=()
157+
local succeeded_packages=()
155158
for pkg in "${PACKAGES_TO_TEST[@]}"; do
156159
if [ ! -f "$LOG_DIR/$pkg.failed" ]; then
157-
passed_packages+=("$pkg")
160+
succeeded_packages+=("$pkg")
158161
fi
159162
done
160163

161-
if [ ${#passed_packages[@]} -gt 0 ]; then
162-
echo ""
163-
echo "PASSED PACKAGES:"
164-
printf "%s\n" "${passed_packages[@]}" | sort | sed 's/^/- /'
165-
fi
166-
167164
if [ "$failed_count" -gt 0 ]; then
168-
echo ""
169-
echo "!!! DETAILED LOGS FOR FAILED PACKAGES !!!"
165+
echo "=================================================="
166+
echo "@FAILED - DETAILED LOGS FOR FAILED PACKAGES"
167+
echo "=================================================="
168+
# List failed packages
169+
for failed in "$LOG_DIR"/*.failed; do
170+
if [ -f "$failed" ]; then
171+
basename "$failed" .failed
172+
fi
173+
done
170174
for failed in "$LOG_DIR"/*.failed; do
171175
if [ -f "$failed" ]; then
172176
local pkg=$(basename "$failed" .failed)
173177
echo "--------------------------------------------------"
174-
echo "LOGS FOR: $pkg"
178+
echo "@PACKAGE (FAILED): $pkg"
175179
echo "--------------------------------------------------"
176180
if [ -n "$KOKORO_ARTIFACTS_DIR" ] && [ -f "$KOKORO_ARTIFACTS_DIR/$pkg/sponge_log.log" ]; then
177181
cat "$KOKORO_ARTIFACTS_DIR/$pkg/sponge_log.log"
178-
else
182+
elif [ -f "$LOG_DIR/$pkg.log" ]; then
179183
cat "$LOG_DIR/$pkg.log"
184+
else
185+
echo "Warning: No log file found for failed package $pkg"
180186
fi
181187
echo ""
182188
fi
183189
done
184190
retval=1
185191
fi
192+
193+
if [ ${#succeeded_packages[@]} -gt 0 ]; then
194+
echo "=================================================="
195+
echo "@SUCCEEDED - DETAILED LOGS FOR SUCCEEDED PACKAGES"
196+
echo "=================================================="
197+
# List succeeded packages
198+
for pkg in "${succeeded_packages[@]}"; do
199+
echo "$pkg"
200+
done
201+
for pkg in "${succeeded_packages[@]}"; do
202+
echo "--------------------------------------------------"
203+
echo "@PACKAGE (SUCCEEDED): $pkg"
204+
echo "--------------------------------------------------"
205+
if [ -n "$KOKORO_ARTIFACTS_DIR" ] && [ -f "$KOKORO_ARTIFACTS_DIR/$pkg/sponge_log.log" ]; then
206+
cat "$KOKORO_ARTIFACTS_DIR/$pkg/sponge_log.log"
207+
elif [ -f "$LOG_DIR/$pkg.log" ]; then
208+
cat "$LOG_DIR/$pkg.log"
209+
else
210+
echo "Warning: No log file found for succeeded package $pkg"
211+
fi
212+
echo ""
213+
done
214+
fi
215+
186216
return $retval
187217
}
188218

@@ -272,9 +302,9 @@ export system_test_script PROJECT_ROOT KOKORO_GFILE_DIR
272302
# -P "$MAX_JOBS" controls concurrency
273303
# -I {} replaces {} with the package name
274304
printf '%s\n' "${PACKAGES_TO_TEST[@]}" \
275-
| xargs -P "$MAX_JOBS" -I {} \
305+
| xargs -n 1 -P "$MAX_JOBS" \
276306
bash -c '
277-
pkg="$1"
307+
pkg="$0"
278308
# Determine log location: prefer Sponge artifacts directory if available
279309
if [ -n "$KOKORO_ARTIFACTS_DIR" ]; then
280310
pkg_log_dir="$KOKORO_ARTIFACTS_DIR/$pkg"
@@ -286,7 +316,7 @@ printf '%s\n' "${PACKAGES_TO_TEST[@]}" \
286316
287317
# Run test; if it fails, create a .failed file to signal failure to the reaper
288318
run_package_test "$pkg" > "$log_file" 2>&1 || touch "$LOG_DIR/$pkg.failed"
289-
' _ "{}"
319+
'
290320

291321
reap_parallel_results || RETVAL=1
292322

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"packages/bigframes": "2.46.0",
2+
"packages/bigframes": "2.47.0",
33
"packages/google-cloud-bigquery": "3.42.3",
44
"packages/google-crc32c": "1.8.0",
5-
"packages/pandas-gbq": "0.35.0"
5+
"packages/pandas-gbq": "0.35.0",
6+
"preview-packages/google-cloud-compute": "1.51.0-preview.1"
67
}

librarian.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ default:
7474
library_type: GAPIC_AUTO
7575
libraries:
7676
- name: bigframes
77-
version: 2.46.0
77+
version: 2.47.0
7878
python:
7979
library_type: INTEGRATION
8080
- name: bigquery-magics

packages/bigframes/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
[1]: https://pypi.org/project/bigframes/#history
66

7+
## [2.47.0](https://github.com/googleapis/google-cloud-python/compare/bigframes-v2.46.0...bigframes-v2.47.0) (2026-08-03)
8+
9+
10+
### Features
11+
12+
* **bigframes:** add ai.embed and ai.similarity to bigquery accessor ([#17927](https://github.com/googleapis/google-cloud-python/issues/17927)) ([2d1372b](https://github.com/googleapis/google-cloud-python/commit/2d1372b25b871aaebba0296f516dbbdd9ef43a37))
13+
14+
15+
### Bug Fixes
16+
17+
* **bigframes:** fix mypy errors in _magics.py related to get_ipython ([#17979](https://github.com/googleapis/google-cloud-python/issues/17979)) ([24d955e](https://github.com/googleapis/google-cloud-python/commit/24d955e7573acf5e2941f9d10b342b171d9def24))
18+
* bump brace-expansion from 5.0.6 to 5.0.7 in /packages/bigframes/bigframes/display/table_widget_angular ([#17794](https://github.com/googleapis/google-cloud-python/issues/17794)) ([2df1bb5](https://github.com/googleapis/google-cloud-python/commit/2df1bb5cb53906bfc41de92c10fdb5a8920ce36f))
19+
* bump fast-uri from 3.1.1 to 3.1.4 in /packages/bigframes/bigframes/display/table_widget_angular ([#17828](https://github.com/googleapis/google-cloud-python/issues/17828)) ([8ce495a](https://github.com/googleapis/google-cloud-python/commit/8ce495ab51d35cc56332f27589ce33b035215abf))
20+
* bump hono from 4.12.16 to 4.12.31 in /packages/bigframes/bigframes/display/table_widget_angular ([#17829](https://github.com/googleapis/google-cloud-python/issues/17829)) ([6d6fa39](https://github.com/googleapis/google-cloud-python/commit/6d6fa399b1578dd6c0ed7b2284b35f6bb0922da8))
21+
* bump immutable from 5.1.7 to 5.1.9 in /packages/bigframes/bigframes/display/table_widget_angular ([#17830](https://github.com/googleapis/google-cloud-python/issues/17830)) ([6abb1da](https://github.com/googleapis/google-cloud-python/commit/6abb1da519e7d4acdbdd531982530047fdafe854))
22+
* bump postcss from 8.5.14 to 8.5.23 in /packages/bigframes/bigframes/display/table_widget_angular ([#17908](https://github.com/googleapis/google-cloud-python/issues/17908)) ([e68eb8f](https://github.com/googleapis/google-cloud-python/commit/e68eb8ff03948b4a694aca465b69543ae0be6c27))
23+
* bump tar from 7.5.16 to 7.5.20 in /packages/bigframes/bigframes/display/table_widget_angular ([#17793](https://github.com/googleapis/google-cloud-python/issues/17793)) ([3502d41](https://github.com/googleapis/google-cloud-python/commit/3502d4183d9864e4310b3daf063ec90be9969e25))
24+
* require Protobuf 6.33.5+ ([#17743](https://github.com/googleapis/google-cloud-python/issues/17743)) ([d267342](https://github.com/googleapis/google-cloud-python/commit/d26734293c23f06ccce048f7d9b0fa365e813410))
25+
726
## [2.46.0](https://github.com/googleapis/google-cloud-python/compare/bigframes-v2.45.0...bigframes-v2.46.0) (2026-07-16)
827

928

packages/bigframes/bigframes/_magics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
)
3838
def _cell_magic(line, cell):
3939
ipython = get_ipython()
40+
if ipython is None:
41+
raise RuntimeError("BigQuery magic must be run in an IPython environment.")
42+
4043
args = magic_arguments.parse_argstring(_cell_magic, line)
4144
if not cell:
4245
print("Query is missing.")

0 commit comments

Comments
 (0)