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

Loadtests #2718

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

Loadtests #2718

wants to merge 14 commits into from

Conversation

scottatwood
Copy link

No description provided.

adamkrellenstein and others added 3 commits November 11, 2024 17:04
…eed to refined further (and some of the requests will are probably incorrect).
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pylint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

loadtests/locustfile.py Fixed Show fixed Hide fixed
loadtests/locustfile.py Fixed Show fixed Hide fixed
loadtests/locustfile.py Fixed Show fixed Hide fixed
loadtests/locustfile.py Fixed Show fixed Hide fixed
def get_random_tx_hash():
if NO_CACHE:
return HARDCODED_TX_HASHES[0]
return random.choice(HARDCODED_TX_HASHES)

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
def get_random_address():
if NO_CACHE:
return HARDCODED_ADDRESSES[0]
return random.choice(HARDCODED_ADDRESSES)

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
def get_random_order():
if NO_CACHE:
return HARDCODED_ORDERS[0]
return random.choice(HARDCODED_ORDERS)

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
def get_random_asset():
if NO_CACHE:
return 'PEPECASH'
return random.choice(['PEPECASH', 'BTC', 'ETH']) # Example of random choice

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
def get_random_quantity():
if NO_CACHE:
return 1000
return random.randint(1, 10000) # Example of random range

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
def get_random_limit():
if NO_CACHE:
return 1000
return random.randint(1, 1000)

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
def get_random_cursor():
if NO_CACHE:
return 1000
return random.randint(0, 100000)

Check notice

Code scanning / Bandit

Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note

Standard pseudo-random generators are not suitable for security/cryptographic purposes.
@adamkrellenstein
Copy link
Member

@ouziel-slama would you run this against the apidb branch to make sure all calls are performant?

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

Successfully merging this pull request may close these issues.

2 participants