Skip to content
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

Use random gcs bucket name #33151

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/ml/transforms/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
# pytype: skip-file

import os
import secrets
import shutil
import tempfile
import time
import typing
import unittest
from collections.abc import Sequence
Expand Down Expand Up @@ -699,7 +701,7 @@ def test_mltransform_to_ptransform_wrapper(self):

@unittest.skipIf(apiclient is None, 'apache_beam[gcp] is not installed.')
def test_with_gcs_location_with_none_options(self):
path = 'gs://fake_path'
path = f"gs://fake_path_{secrets.token_hex(3)}_{int(time.time())}"
with self.assertRaises(RuntimeError):
self.attribute_manager.save_attributes(
ptransform_list=[], artifact_location=path, options=None)
Expand Down
Loading