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

Ensure that if resources are exhausted the test status reflects this #901

Open
canihavesomecoffee opened this issue Jun 26, 2024 · 0 comments

Comments

@canihavesomecoffee
Copy link
Member

log.critical("Could not find an artifact for this commit")

If the resources in the region are exhausted, the line above will print the error, but not reflect the test status, so the end user will not be aware of this.

The error below should be parsed, and the status of the test should be updated to reflect that this is happening.

{'kind': 'compute#operation', 'id': '****', 'name': 'operation-****', 'zone': 'https://www.googleapis.com/compute/v1/projects/****/zones/us-central1-a', 'operationType': 'insert', 'targetLink': 'https://www.googleapis.com/compute/v1/projects/***/zones/us-central1-a/instances/windows-5115', 'targetId': '*****', 'status': 'DONE', 'user': '***.iam.gserviceaccount.com', 'progress': 100, 'insertTime': '2024-06-26T11:42:22.006-07:00', 'startTime': '2024-06-26T11:42:22.007-07:00', 'endTime': '2024-06-26T11:42:29.294-07:00', 'error': {'errors': [{'code': 'ZONE_RESOURCE_POOL_EXHAUSTED', 'message': "The zone 'projects/****/zones/us-central1-a' does not have enough resources available to fulfill the request.  Try a different zone, or try again later.", 'errorDetails': [{'help': {'links': [{'description': 'Troubleshooting documentation', 'url': 'https://cloud.google.com/compute/docs/resource-error'}]}}, {'localizedMessage': {'locale': 'en-US', 'message': 'A n1-standard-1 VM instance is currently unavailable in the us-central1-a zone. Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the troubleshooting documentation.'}}, {'errorInfo': {'reason': 'resource_availability', 'domain': 'compute.googleapis.com', 'metadatas': {'attachment': '', 'vmType': 'n1-standard-1', 'zone': 'us-central1-a', 'zonesAvailable': ''}}}]}]}, 'httpErrorStatusCode': 503, 'httpErrorMessage': 'SERVICE UNAVAILABLE', 'selfLink': 'https://www.googleapis.com/compute/v1/projects/****/zones/us-central1-a/operations/operation-***'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant