generic load test based on molotov: https://github.com/loads/molotov
- Python 3.5+
molotov -c -d 1 loadtest.py
sudo make docker-build
make docker-run
make clean
generic load test based on molotov: https://github.com/loads/molotov
molotov -c -d 1 loadtest.py
sudo make docker-build
make docker-run
make clean
When running:
molotov -cx -d 1 loadtest.py
using molotov 0.2, I now see (https://gist.github.com/stephendonner/10f62588df81c315ebc589b4d90dfba0)
Successfully installed molotov-0.2
You are using pip version 7.1.2, however version 9.0.1 is available.
(stubattribution-loadtests) sdonner-17447:stubattribution-loadtests sdonner$ molotov -cx -d 1 loadtest
loadtest.py loadtest_output.txt
(stubattribution-loadtests) sdonner-17447:stubattribution-loadtests sdonner$ molotov -cx -d 1 loadtest.py
Traceback (most recent call last):
File "/Users/sdonner/.pyenv/versions/stubattribution-loadtests/bin/molotov", line 9, in <module>
load_entry_point('molotov==0.2', 'console_scripts', 'molotov')()
File "/Users/sdonner/.pyenv/versions/3.5.0/envs/stubattribution-loadtests/lib/python3.5/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/sdonner/.pyenv/versions/3.5.0/envs/stubattribution-loadtests/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
return ep.load()
File "/Users/sdonner/.pyenv/versions/3.5.0/envs/stubattribution-loadtests/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2355, in load
return self.resolve()
File "/Users/sdonner/.pyenv/versions/3.5.0/envs/stubattribution-loadtests/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2361, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Users/sdonner/.pyenv/versions/3.5.0/envs/stubattribution-loadtests/lib/python3.5/site-packages/molotov/run.py", line 8, in <module>
from molotov.fmwk import runner, get_scenarios
ImportError: cannot import name 'get_scenarios'
As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:
If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].
(Message COC001)
Running https://github.com/stephendonner/stubattribution-loadtests/blob/97d033071cf08b73d5af84ed49aef7d530c9fa00/loadtest.py against https://stubattribution-default.stage.mozaws.net/ as follows:
molotov -cx -d 1 loadtest.py
yields:
**** Molotov v0.2. Happy breaking! ****
[30818] Preparing 1 workers...OK
..
2 OK, 0 Failed
However, we see the following HMAC validation exception thrown, in Sentry:
https://sentry.prod.mozaws.net/operations/stub_attribution-stage/issues/379693/
could not validate attribution_code: source%3D(not+set)%26medium%3Dbac72540-45d6-4698-a0b7-63a00adcbea3%26campaign%3D(not+set)%26content%3D(not+set)%26timestamp%3D1485414893: HMAC would not validate. given: 87789e4c3815345752a686d323c476f9350f0d16f919e3ee7b2858c19b4ae07a expected: ca365c22665a271e1bf50eb9350d9cac15c499fcf8853e73e6e841f80c35ad4b
With the utm_source whitelist in https://github.com/mozilla-services/stubattribution/blob/2c9f8a9d93ab544599209bf847980beb6c187984/attributioncode/sourcewhitelist.go, and the utm_medium and utm_campaign values in https://docs.google.com/spreadsheets/d/1U-0JHpc3INJnBwTFkdrPqpk7yqvpEn16DJtp6d6TRiY/edit#gid=1275474795 (some of them - we don't need to go all out), we should:
@tarekziade or @pmac either one of you be up for helping with this? While I'm going to take a look at it, my Python + coding skills in general are weak/rusty - thanks!
This Mozilla repository has been identified as lacking a license. Consistent with Mozilla's Licensing Policy an open source license should be applied to the code in this repository.
Please add an appropriate LICENSE.md file to the root directory of the project. In general, Mozilla's licensing policies are as follows:
Client-side products created by Mozilla employees or contributors should use the Mozilla Public License, Version 2.0 (MPL).
Server-side products or utilities that support Mozilla products may use either the MPL or the Apache License 2.0 (Apache 2.0).
In special cases, another license might be appropriate. If the repository is a fork of another repository it must apply the license of the original. Similarly, another license might be appropriate to match that of a broader project (for example Rust crates that Firefox depends on are published under an Apache 2.0 / MIT dual license, as that is the dual license used by the Rust programming language and projects).
Please ensure that any license added to the LICENSE.md file matches other licensing information in the repository (for example, it should match any license indicated in a setup.py or package.json file).
Mozilla staff can access more information in our Software Licensing Runbook – search for “Licensing Runbook” in Confluence to find it.
If you have any questions you can contact Daniel Nazer who can be reached at dnazer on Mozilla email or Slack.
OPENLIC-2023-01
Just keeping a note here to help organize my notes/thoughts/questions about which metrics/datapoints we care about (and how/can we measure them) during load testing:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.