Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

'test_blob_upload_w_bucket_cmek_enabled' systest flakes #513

Closed

Description

@tseaver

From this Kokoro failure:

____________________ test_blob_upload_w_bucket_cmek_enabled ____________________

kms_bucket = <Bucket: gcp-systest-kms-1626804473143>
blobs_to_delete = [<Blob: gcp-systest-kms-1626804473143, test-blob, 1626804479031944>]
kms_key_name = 'projects/precise-truck-742/locations/us/keyRings/gcs-test/cryptoKeys/gcs-test'
file_data = {'big': {'hash': 'cEome4a+NYd7YIXzXQnR5Q==', 'path': '/tmpfs/src/github/python-storage/tests/data/five-point-one-mb-fi...ng'}, 'simple': {'hash': '3Hkwjv2WvCnKjNR6Z3CboA==', 'path': '/tmpfs/src/github/python-storage/tests/data/simple.txt'}}

    def test_blob_upload_w_bucket_cmek_enabled(
        kms_bucket, blobs_to_delete, kms_key_name, file_data,
    ):
        blob_name = "test-blob"
        payload = b"DEADBEEF"
        alt_payload = b"NEWDEADBEEF"

        kms_bucket.default_kms_key_name = kms_key_name
        kms_bucket.patch()
        assert kms_bucket.default_kms_key_name == kms_key_name

        blob = kms_bucket.blob(blob_name)
        blob.upload_from_string(payload)
        blobs_to_delete.append(blob)

        _helpers.retry_429_harder(blob.reload)()
        # We don't know the current version of the key.
>       assert blob.kms_key_name.startswith(kms_key_name)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

Activity

  1. added
    type: processA process-related concern. May include testing, release, or the like.
    on Jul 20, 2021
  2. self-assigned this
    on Jul 20, 2021
  3. added a commit that references this issue on Jul 20, 2021
    00cb6fd
  4. added a commit that references this issue on Jul 20, 2021
    1154d5a
  5. added 2 commits that reference this issue on Oct 13, 2021
    ee3f969
    0513863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/python-storage API.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions