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

appengine.flexible.tasks.snippets_test: test_create_task failed #4650

Closed
flaky-bot bot opened this issue Sep 9, 2020 · 5 comments
Closed

appengine.flexible.tasks.snippets_test: test_create_task failed #4650

flaky-bot bot opened this issue Sep 9, 2020 · 5 comments
Assignees
Labels
api: appengine Issues related to the App Engine Admin API API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Sep 9, 2020

Note: #3983 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


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

Test output
Traceback (most recent call last):
  File "/workspace/appengine/flexible/tasks/snippets_test.py", line 51, in test_create_task
    TEST_PROJECT_ID, TEST_LOCATION, QUEUE_NAME_1)
  File "/workspace/appengine/flexible/tasks/snippets.py", line 102, in create_task
    response = client.create_task(parent=parent, task=task)
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/google/cloud/tasks_v2/services/cloud_tasks/client.py", line 1642, in create_task
    request.task = task
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/proto/message.py", line 534, in __setattr__
    pb_value = marshal.to_proto(pb_type, value)
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/proto/marshal/marshal.py", line 205, in to_proto
    pb_value = rule.to_proto(value)
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/proto/marshal/rules/message.py", line 32, in to_proto
    return self._descriptor(**value)
TypeError: 'POST' has type str, but expected one of: int, long
@flaky-bot flaky-bot bot added buildcop: issue priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Sep 9, 2020
@product-auto-label product-auto-label bot added api: appengine Issues related to the App Engine Admin API API. samples Issues that are directly related to samples. labels Sep 9, 2020
@ValentinMoullet
Copy link

I'm having the same error when trying to create a task in Python. This is new from today.

@busunkim96
Copy link
Contributor

This is likely googleapis/proto-plus-python#103. A fix was released in proto-plus==1.9.0 but reverted in 1.9.1 due to regressions observed in other libraries.

@ValentinMoullet If this was working for you before, you can temporarily pin to proto-plus==1.9.0. googleapis/proto-plus-python#118 should have the proper fix.

@ValentinMoullet
Copy link

@busunkim96 Thank you! It fixes it to pin to 1.9.0 indeed.

@flaky-bot
Copy link
Author

flaky-bot bot commented Sep 10, 2020

commit: 5e8ac2b
buildURL: Build Status, Sponge
status: failed

Test output
Traceback (most recent call last):
  File "/workspace/appengine/flexible/tasks/snippets_test.py", line 51, in test_create_task
    TEST_PROJECT_ID, TEST_LOCATION, QUEUE_NAME_1)
  File "/workspace/appengine/flexible/tasks/snippets.py", line 102, in create_task
    response = client.create_task(parent=parent, task=task)
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/google/cloud/tasks_v2/services/cloud_tasks/client.py", line 1642, in create_task
    request.task = task
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/proto/message.py", line 534, in __setattr__
    pb_value = marshal.to_proto(pb_type, value)
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/proto/marshal/marshal.py", line 205, in to_proto
    pb_value = rule.to_proto(value)
  File "/workspace/appengine/flexible/tasks/.nox/py-3-6/lib/python3.6/site-packages/proto/marshal/rules/message.py", line 32, in to_proto
    return self._descriptor(**value)
TypeError: 'POST' has type str, but expected one of: int, long

@flaky-bot
Copy link
Author

flaky-bot bot commented Sep 11, 2020

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

@flaky-bot flaky-bot bot closed this as completed Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: appengine Issues related to the App Engine Admin API API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants