Skip to content

run.django.e2e_test: test_end_to_end failed #5252

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

Closed
flaky-bot bot opened this issue Jan 17, 2021 · 8 comments
Closed

run.django.e2e_test: test_end_to_end failed #5252

flaky-bot bot opened this issue Jan 17, 2021 · 8 comments
Assignees
Labels
api: run Issues related to the Cloud Run API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in 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 Jan 17, 2021

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

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


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

Test output
Traceback (most recent call last):
  File "/workspace/run/django/e2e_test.py", line 254, in container_image
    subprocess.run(
  File "/usr/local/lib/python3.9/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gcloud', 'builds', 'submit', '--config', 'cloudmigrate.yaml', '--substitutions', '_INSTANCE_NAME=test-instance-pg,_REGION=us-central1,_SERVICE_NAME=polls-6ba854bb19,_SECRET_SETTINGS_NAME=django_settings-6ba854bb19', '--project', 'python-docs-samples-tests']' returned non-zero exit status 1.
@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 Jan 17, 2021
@product-auto-label product-auto-label bot added api: run Issues related to the Cloud Run API. samples Issues that are directly related to samples. labels Jan 17, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Jan 18, 2021

Looks like this issue is flaky. 😟

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

A human should fix and close this.


When run at the same commit (a16413e), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@averikitsch
Copy link
Contributor

@glasnt can you take a look? Looks like the error is in the build config: build step 3 "gcr.io/google-appengine/exec-wrapper" failed: step exited with non-zero status: 1 and potentially due to the addition of py3.9 testings.

@grant grant removed their assignment Jan 19, 2021
@glasnt glasnt self-assigned this Jan 19, 2021
@glasnt
Copy link
Contributor

glasnt commented Jan 19, 2021

Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/google/cloud/_http.py", line 438, in api_request
Step #3 - "collect static":     raise exceptions.from_http_response(response)
Step #3 - "collect static": google.api_core.exceptions.GatewayTimeout: 504 GET https://storage.googleapis.com/storage/v1/b/python-docs-samples-tests-media-6ba854bb19/o/admin%2Fjs%2Fcalendar.js?projection=noAcl&prettyPrint=false:

Possibly related to behaviour seen in #5174

Step #3 - "collect static": ---------- EXECUTE COMMAND ----------
Step #3 - "collect static": python manage.py collectstatic --no-input
Step #3 - "collect static": Traceback (most recent call last):
Step #3 - "collect static":   File "manage.py", line 36, in <module>
Step #3 - "collect static":     main()
Step #3 - "collect static":   File "manage.py", line 32, in main
Step #3 - "collect static":     execute_from_command_line(sys.argv)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
Step #3 - "collect static":     utility.execute()
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
Step #3 - "collect static":     self.fetch_command(subcommand).run_from_argv(self.argv)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv
Step #3 - "collect static":     self.execute(*args, **cmd_options)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute
Step #3 - "collect static":     output = self.handle(*args, **options)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 194, in handle
Step #3 - "collect static":     collected = self.collect()
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 118, in collect
Step #3 - "collect static":     handler(path, prefixed_path, storage)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 355, in copy_file
Step #3 - "collect static":     self.storage.save(prefixed_path, source_file)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/django/core/files/storage.py", line 52, in save
Step #3 - "collect static":     return self._save(name, content)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/storages/backends/gcloud.py", line 156, in _save
Step #3 - "collect static":     file = GoogleCloudFile(name, 'rw', self)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/storages/backends/gcloud.py", line 32, in __init__
Step #3 - "collect static":     self.blob = storage.bucket.get_blob(name)
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/google/cloud/storage/bucket.py", line 1202, in get_blob
Step #3 - "collect static":     blob.reload(
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/google/cloud/storage/_helpers.py", line 218, in reload
Step #3 - "collect static":     api_response = client._connection.api_request(
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/google/cloud/storage/_http.py", line 63, in api_request
Step #3 - "collect static":     return call()
Step #3 - "collect static":   File "/usr/local/lib/python3.8/site-packages/google/cloud/_http.py", line 438, in api_request
Step #3 - "collect static":     raise exceptions.from_http_response(response)
Step #3 - "collect static": google.api_core.exceptions.GatewayTimeout: 504 GET https://storage.googleapis.com/storage/v1/b/python-docs-samples-tests-media-6ba854bb19/o/admin%2Fjs%2Fcalendar.js?projection=noAcl&prettyPrint=false:
Finished Step #3 - "collect static"
ERROR
ERROR: build step 3 "gcr.io/google-appengine/exec-wrapper" failed: step exited with non-zero status: 1

@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Jan 24, 2021
@JustinBeckwith JustinBeckwith added flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. and removed buildcop: flaky labels Jan 25, 2021
@glasnt
Copy link
Contributor

glasnt commented Jan 28, 2021

I think this test has been successful in more recent continuous builds, but I'm not 100% if it's been disabled or I'm reading fusion wrong. @averikitsch can you confirm?

@averikitsch
Copy link
Contributor

LGTM

@flaky-bot flaky-bot bot reopened this Feb 6, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Feb 6, 2021

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


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

Test output
Traceback (most recent call last):
  File "/workspace/run/django/e2e_test.py", line 254, in container_image
    subprocess.run(
  File "/usr/local/lib/python3.9/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gcloud', 'builds', 'submit', '--config', 'cloudmigrate.yaml', '--substitutions', '_INSTANCE_NAME=test-instance-pg,_REGION=us-central1,_SERVICE_NAME=polls-8033fcaf1a,_SECRET_SETTINGS_NAME=django_settings-8033fcaf1a', '--project', 'python-docs-samples-tests']' returned non-zero exit status 1.

@glasnt
Copy link
Contributor

glasnt commented Feb 7, 2021

Also addressing in #5307

@averikitsch averikitsch added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Feb 9, 2021
@yoshi-automation yoshi-automation removed the 🚨 This issue needs some love. label Feb 10, 2021
@glasnt
Copy link
Contributor

glasnt commented Feb 11, 2021

#5340 is now merged, should fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: run Issues related to the Cloud Run API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in 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

5 participants