Skip to content

Commit

Permalink
bug 1562412 - Notarization poller worker (#121)
Browse files Browse the repository at this point in the history
* [notarization_poller] initial commit

* [notarization_poller] worker.py

* [notarization_poller] add exceptions.py

* [notarization_poller] add task.py

* [notarization_poller] add config.py

* [notarization_poller] add constants.py

* .gitignore pip-wheel-metadata

* [scriptworker_client] init_config changes

* update old scriptworker comments, vars, and docstrings

* address review comments

* address review comments + fix bugs found while testing

* moar review comments

* frozendict->immutabledict; pin requirements

* also pin notarization_poller

* review comments

* moar review comments

* moar review comments
  • Loading branch information
escapewindow authored Feb 25, 2020
1 parent 75e06d9 commit bd93447
Show file tree
Hide file tree
Showing 49 changed files with 2,748 additions and 16 deletions.
1 change: 1 addition & 0 deletions .dirschema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ apps:
- /shipitscript
- /signingscript
- /treescript
- /notarization_poller
tools:
schema: https://raw.githubusercontent.com/mozilla-releng/releng-dirschemas/master/python-tool.yaml
projects:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var/
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
pip-wheel-metadata

# Unit test / coverage reports
htmlcov/
Expand Down
2 changes: 2 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ tasks:
- ['beetmoverscript', '38', '', 'mozilla/releng-beetmoverscript']
- ['bouncerscript', '37', '', '']
- ['bouncerscript', '38', '', 'mozilla/releng-bouncerscript']
- ['notarization_poller', '37', '', '']
- ['notarization_poller', '38', '', '']
- ['pushapkscript', '37', '${setup_pushapkscript}', '']
- ['pushapkscript', '38', '${setup_pushapkscript}', 'mozilla/releng-pushapkscript']
- ['pushsnapscript', '37', '${setup_pushsnapscript}', '']
Expand Down
1 change: 1 addition & 0 deletions maintenance/pin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ else
bouncerscript
configloader
iscript
notarization_poller
pushapkscript
pushsnapscript
scriptworker_client
Expand Down
5 changes: 5 additions & 0 deletions notarization_poller/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
branch = True
omit =
tests/*
.tox/*
3 changes: 3 additions & 0 deletions notarization_poller/.pyup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
update: all
pin: True
schedule: "every week on wednesday"
24 changes: 24 additions & 0 deletions notarization_poller/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.7

RUN groupadd --gid 10001 app && \
useradd -g app --uid 10001 --shell /usr/sbin/nologin --create-home --home-dir /app app

RUN apt-get update \
&& ln -s /app/docker.d/healthcheck /bin/healthcheck

USER app
WORKDIR /app

COPY . /app

RUN python -m venv /app \
&& cd notarization_poller \
&& /app/bin/pip install -r requirements/base.txt \
&& /app/bin/pip install . \
&& python -m venv /app/configloader_venv \
&& cd /app/configloader \
&& /app/configloader_venv/bin/pip install -r requirements/base.txt \
&& /app/configloader_venv/bin/pip install . \
&& cd /app

CMD ["/app/docker.d/init.sh"]
14 changes: 14 additions & 0 deletions notarization_poller/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG PYTHON_VERSION

FROM python:${PYTHON_VERSION}

WORKDIR /app

COPY MANIFEST.in setup.py tox.ini /app/
COPY requirements/ /app/requirements/

RUN pip install -r requirements/local.txt

COPY src/ /app/src/

ENTRYPOINT ["/usr/local/bin/tox", "-e"]
13 changes: 13 additions & 0 deletions notarization_poller/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Change Log
==========

All notable changes to this project will be documented in this file.
This project adheres to `Semantic Versioning <http://semver.org/>`__.

[Unreleased] - 2019-12-xx
-------------------------

Added
~~~~~

- Initial ``notarization_poller`` deployment
Loading

0 comments on commit bd93447

Please sign in to comment.