Skip to content

Commit f364e3f

Browse files
committed
Merge remote-tracking branch 'origin/main' into tswast-patch-2
2 parents ed242d1 + fd8cef6 commit f364e3f

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

librarian.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ libraries:
854854
default_version: v1
855855
- name: google-cloud-datacatalog-lineage
856856
version: 0.6.0
857+
skip_generate: true
857858
apis:
858859
- path: google/cloud/datacatalog/lineage/v1
859860
python:

packages/bigframes/tests/system/conftest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
from datetime import datetime
2323
from typing import Dict, Generator, Optional
2424

25+
import fsspec # type: ignore[import-untyped]
26+
import gcsfs # type: ignore[import-untyped]
2527
import google.api_core.exceptions
2628
import google.cloud.bigquery as bigquery
2729
import google.cloud.bigquery_connection_v1 as bigquery_connection_v1
@@ -70,6 +72,15 @@ def _hash_digest_file(hasher, filepath):
7072
hasher.update(chunk)
7173

7274

75+
@pytest.fixture(scope="session", autouse=True)
76+
def configure_gcsfs():
77+
# gcsfs by default uses a cache that can be stale, causing file loads to
78+
# fail if the file was uploaded indirectly (eg via bq export job) during the
79+
# course of the tests. disable the cache to avoid this.
80+
fsspec.config.conf["gcs"] = {"use_listings_cache": False}
81+
gcsfs.GCSFileSystem.clear_instance_cache()
82+
83+
7384
@pytest.fixture(scope="session")
7485
def tokyo_location() -> str:
7586
return TOKYO_LOCATION

packages/bigframes/tests/system/small/ml/test_forecasting.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ def test_arima_plus_score(
474474
"root_mean_squared_error": [120.675442, 120.675442],
475475
"mean_absolute_percentage_error": [4.80044, 4.80044],
476476
"symmetric_mean_absolute_percentage_error": [4.744332, 4.744332],
477-
"mean_absolute_scaled_error": [0.400, 0.400],
478477
},
479478
dtype="Float64",
480479
)
@@ -490,7 +489,6 @@ def test_arima_plus_score(
490489
"root_mean_squared_error": [120.675442],
491490
"mean_absolute_percentage_error": [4.80044],
492491
"symmetric_mean_absolute_percentage_error": [4.744332],
493-
"mean_absolute_scaled_error": [0.400],
494492
},
495493
dtype="Float64",
496494
)
@@ -577,7 +575,6 @@ def test_arima_plus_score_series(
577575
"root_mean_squared_error": [120.675442, 120.675442],
578576
"mean_absolute_percentage_error": [4.80044, 4.80044],
579577
"symmetric_mean_absolute_percentage_error": [4.744332, 4.744332],
580-
"mean_absolute_scaled_error": [0.400, 0.400],
581578
},
582579
dtype="Float64",
583580
)
@@ -593,7 +590,6 @@ def test_arima_plus_score_series(
593590
"root_mean_squared_error": [120.675442],
594591
"mean_absolute_percentage_error": [4.80044],
595592
"symmetric_mean_absolute_percentage_error": [4.744332],
596-
"mean_absolute_scaled_error": [0.400],
597593
},
598594
dtype="Float64",
599595
)

0 commit comments

Comments
 (0)