Skip to content

functions.v2.label_gce_instance.main_test: test_functions_label_gce_instance_should_set_label failed #8980

Closed

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: bb1c1df
buildURL: Build Status, Sponge
status: failed

Test output
Traceback (most recent call last):
  File "/workspace/functions/v2/label_gce_instance/main_test.py", line 66, in test_functions_label_gce_instance_should_set_label
    main.label_gce_instance(event)
  File "/workspace/functions/v2/label_gce_instance/main.py", line 58, in label_gce_instance
    instance = instances_client.get(
               ^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/cloud/compute_v1/services/instances/client.py", line 2325, in get
    response = rpc(
               ^^^^
  File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py", line 154, in __call__
    return wrapped_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/cloud/compute_v1/services/instances/transports/rest.py", line 2425, in __call__
    raise core_exceptions.from_http_response(response)
google.api_core.exceptions.NotFound: 404 GET https://compute.googleapis.com/compute/v1/projects/python-docs-samples-tests/zones/us-central1-a/instances/functions-label-gce-test-instance-py-311: The resource 'projects/python-docs-samples-tests/zones/us-central1-a/instances/functions-label-gce-test-instance-py-311' was not found

Activity

  1. added
    flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 13, 2023
  2. flaky-bot commented on Jan 14, 2023

    @flaky-bot
    Author

    Test passed for commit c954b52 (Build Status, Sponge)! Closing this issue.

  3. flaky-bot commented on Jan 14, 2023

    @flaky-bot
    Author

    Looks like this issue is flaky. 😟

    I'm going to leave this open and stop commenting.

    A human should fix and close this.


    commit: c954b52
    buildURL: Build Status, Sponge
    status: failed

    Test output
    Traceback (most recent call last):
      File "/workspace/functions/v2/label_gce_instance/main_test.py", line 66, in test_functions_label_gce_instance_should_set_label
        main.label_gce_instance(event)
      File "/workspace/functions/v2/label_gce_instance/main.py", line 58, in label_gce_instance
        instance = instances_client.get(
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/cloud/compute_v1/services/instances/client.py", line 2325, in get
        response = rpc(
                   ^^^^
      File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py", line 154, in __call__
        return wrapped_func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
        return callable_(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/workspace/functions/v2/label_gce_instance/.nox/py-3-11/lib/python3.11/site-packages/google/cloud/compute_v1/services/instances/transports/rest.py", line 2425, in __call__
        raise core_exceptions.from_http_response(response)
    google.api_core.exceptions.NotFound: 404 GET https://compute.googleapis.com/compute/v1/projects/python-docs-samples-tests/zones/us-central1-a/instances/functions-label-gce-test-instance-py-311: The resource 'projects/python-docs-samples-tests/zones/us-central1-a/instances/functions-label-gce-test-instance-py-311' was not found
  4. added
    flakybot: flakyTells the Flaky Bot not to close or comment on this issue.
    on Jan 14, 2023
  5. ace-n commented on Jan 18, 2023

    @ace-n

    #8872 (temporarily) added Python 3.11 tests to this sample. During that time, the python-docs-samples-tests project didn't have a matching functions-label-gce-test-instance-py-311 GCE instance - which was what caused this test to fail.

    I went ahead and created that instance, so this bug should now be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: cloudfunctionsIssues related to the Cloud Run functions API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions