[DRIVERS-2365] Randomize project names with random value Created: 21/Jun/22  Updated: 28/Oct/23  Resolved: 13/Jul/22

Status: Closed
Project: Drivers
Component/s: Astrolabe
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Oleg Pudeyev (Inactive) Assignee: Oleg Pudeyev (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Driver Changes: Not Needed

 Description   

Summary

Currently Astrolabe uses salt + timestamp to produce the project name. This can cause multiple tests running at the same time to get the same exact project name, which would subsequently cause Astrolabe to attempt to create the same project twice and fail.

A random value should be added to the generated project name for each test run to avoid this issue.

This manifests as the following error:

[2022/06/08 05:12:28.972] atlasclient.exceptions.AtlasApiError: 404: Not Found. Error Code: 'NOT_ATLAS_GROUP': Group 62a02fbc189fa56883c86716 is not an Atlas group; use the Cloud Manager Public API at /api/public/v1.0 to access it. (GET https://cloud-qa.mongodb.com/api/atlas/v1.0/groups/byName/drivers-atlas-testing-1654665148)

https://evergreen.mongodb.com/task_log_raw/drivers_atlas_testing_tests_dotnet_windows__driver~dotnet_master_platform~windows_64_runtime~dotnet_async_netcoreapp2.1_failure_write_62a02cd157e85a577146cbd3_22_06_08_05_00_01/0?type=T&text=true

Motivation

Who is the affected end user?

Driver developers.

How does this affect the end user?

Users see test failures when there is no genuine failure to solve.

How likely is it that this problem or use case will occur?

The problem occurs rather frequently because many tests are scheduled to start at the same exact time (20+ across all languages).

If the problem does occur, what are the consequences and how severe are they?

The problem causes spurious test failures.

Is this issue urgent?

No

Is this ticket required by a downstream team?

No

Is this ticket only for tests?

No



 Comments   
Comment by Githook User [ 13/Jul/22 ]

Author:

{'name': 'Oleg Pudeyev', 'email': '39304720+p-mongo@users.noreply.github.com', 'username': 'p-mongo'}

Message: DRIVERS-2365 Append random number suffix to make project names more unique (#137)
Branch: master
https://github.com/mongodb-labs/drivers-atlas-testing/commit/20304421a6964083ce48c3dd2a4a935b4354a8ce

Generated at Thu Feb 08 08:25:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.