Name: amo2kinto-lambda
Owner: Mozilla Services
Description: Allow to run amo2kinto scripts on lambda.
Created: 2016-05-09 10:40:13.0
Updated: 2018-05-22 20:31:34.0
Pushed: 2018-05-23 06:41:56.0
Homepage: http://amo2kinto-lambda.readthedocs.io/
Size: 464
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
For example, run kinto-dist locally (see README).
Initialize the server with the Kinto Dist smoke tests:
sh /path/to/kinto-dist/tests/smoke-test.sh
ER=https://firefox.settings.services.mozilla.com/v1/ python aws_lambda.py validate_signature
collection list from /buckets/monitor/collections/changes
7 /buckets/blocklists/collections/addons: OK
7 /buckets/blocklists-preview/collections/addons: OK
7 /buckets/blocklists/collections/certificates: OK
7 /buckets/blocklists-preview/collections/certificates: OK
7 /buckets/blocklists/collections/plugins: OK
7 /buckets/blocklists-preview/collections/plugins: OK
7 /buckets/security-state-preview/collections/intermediates: SKIP
7 /buckets/security-state/collections/intermediates: SKIP
7 /buckets/blocklists-preview/collections/gfx: OK
7 /buckets/blocklists/collections/qa: OK
7 /buckets/fingerprinting-defenses/collections/fonts: OK
7 /buckets/fingerprinting-defenses-preview/collections/fonts: OK
7 /buckets/focus-preview/collections/experiments: SKIP
7 /buckets/pinning-preview/collections/pins: SKIP
7 /buckets/focus/collections/experiments: SKIP
7 /buckets/pinning/collections/pins: OK
7 /buckets/blocklists/collections/gfx: OK
FRESH_SIGNATURE_AUTH=reviewer:pass python aws_lambda.py refresh_signature
ing at /buckets/monitor/collections/changes:
ing at /buckets/source/collections/source: to-review at 2018-03-05 13:56:08 UTC ( 1520258168885 )
ing at /buckets/staging/collections/addons: Trigger new signature: signed at 2018-03-05 13:57:31 UTC ( 1520258251343 )
ing at /buckets/staging/collections/certificates: Trigger new signature: signed at 2018-03-05 13:57:31 UTC ( 1520258251441 )
ing at /buckets/staging/collections/plugins: Trigger new signature: signed at 2018-03-05 13:57:31 UTC ( 1520258251547 )
ing at /buckets/staging/collections/gfx: Trigger new signature: signed at 2018-03-05 13:57:31 UTC ( 1520258251640 )
You must run this on a linux x86_64 arch, the same as Amazon Lambda.
git checkout -b prepare-x.y.z
make clean
make zip
git add requirements.txt; git commit
git checkout master
git merge --no-ff prepare-x.y.z
git tag x.y.z
(with -a
if you are feeling fiesty)git push origin master; git push --tags origin
amo2kinto-lambda-x.y.z.zip
). If you don't have the lambda.zip
file from earlier, you can rebuild it by changing requirements.pip
in the Makefile to requirements.txt
and rerunning make zip