Skip to content
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
329 commits
Select commit Hold shift + click to select a range
315535c
ARXIVNG-904 mapping out a more sensical rollback
erickpeirson Nov 21, 2018
ffc3525
ARXIVNG-904 insert Publish during load from classic
erickpeirson Nov 23, 2018
c41f86e
refactor for consistency, clarity
erickpeirson Nov 24, 2018
26589c2
bringing classic testing utilities up to speed
erickpeirson Nov 24, 2018
02e1772
minor fixes
erickpeirson Nov 24, 2018
6f29d35
disable Publish validation for now, since it's only used as a placeho…
erickpeirson Nov 26, 2018
7d9032b
rc version
erickpeirson Nov 26, 2018
0b7377b
adding example-based tests to lock down integration
erickpeirson Nov 29, 2018
b8351f6
more tests; added revert command to abandon replacements
erickpeirson Nov 29, 2018
1be7963
tighten up tests, added a few more
erickpeirson Nov 30, 2018
fdcdcd7
fixed older failing tests
erickpeirson Nov 30, 2018
4786eda
more bugfixes, tests, decomposition
erickpeirson Nov 30, 2018
3532f8c
ensure that rollbacks don't clobber jrefs
erickpeirson Nov 30, 2018
666a255
ARXIVNG-904 better handling of rollbacks, new versions
erickpeirson Nov 30, 2018
a87b906
fixed bug related to withdrawals
erickpeirson Nov 30, 2018
eb637b4
ensure that all published versions show up in Submission.versions
erickpeirson Dec 3, 2018
6f1082a
increment patch version
erickpeirson Dec 3, 2018
eb27607
first pass at request refactor
erickpeirson Dec 4, 2018
f69c70e
first pass at crosslist request
erickpeirson Dec 4, 2018
368b8f6
added a todo
erickpeirson Dec 4, 2018
034aa56
minor shuffle for clarity
erickpeirson Dec 4, 2018
30c360e
more tests for withdrawal, fixes
erickpeirson Dec 5, 2018
6518692
support multiple categories in cross list request
erickpeirson Dec 5, 2018
4c85954
ARXIVNG-1408 added updated field to requests
erickpeirson Dec 6, 2018
da937e5
make this 0.5.3rc1
erickpeirson Dec 6, 2018
3a5e45b
refactor submission loading for clarity/sanity
erickpeirson Dec 6, 2018
d673ea0
incremented rc
erickpeirson Dec 6, 2018
c7bd2e8
fix bug with multiple requests
erickpeirson Dec 6, 2018
31d7698
ARXIVNG-1414 early passes at duplicate detection based on title; anno…
erickpeirson Dec 6, 2018
c49ee82
ARXIVNG-1414 early passes at duplicate detection based on title; anno…
erickpeirson Dec 6, 2018
7c06526
Merge pull request #44 from cul-it/feature/ARXIVNG-1408
erickpeirson Dec 7, 2018
917caf1
fixed some minor bugs
erickpeirson Dec 19, 2018
fe9e625
incremented rc number
erickpeirson Dec 19, 2018
a0a9c1e
rules
erickpeirson Dec 19, 2018
bc7932e
resolved merge conflict
erickpeirson Dec 19, 2018
4150c5c
adding Submission.compilations: List[Compilation]
JaimieMurdock Jan 3, 2019
1b3ad82
SubmissionCompiled -> SubmissionProduct
JaimieMurdock Jan 3, 2019
f40777c
first pass on async tasks
erickpeirson Jan 11, 2019
25fa524
slow steady progress
erickpeirson Jan 11, 2019
fcb6587
tweaks and cleanup to event hooks
erickpeirson Jan 14, 2019
9505b6b
config tweaks
erickpeirson Jan 14, 2019
7f7230e
added tests
erickpeirson Jan 14, 2019
5341de5
added some docs, etc
erickpeirson Jan 14, 2019
2ca2fc1
fixed tests, added more docs
erickpeirson Jan 14, 2019
d3691bf
ARXIVNG-1367 implemented integration with classic classifier service
erickpeirson Jan 14, 2019
33c9cee
ARXIVNG-1413 first pass at sketching plaintext, classifier rules
erickpeirson Jan 14, 2019
dcd4ad6
ARXIVNG-1413 working on QA annotations
erickpeirson Jan 15, 2019
652d7a9
ARXIVNG-1366 implemented integration module for plaintext extraction …
erickpeirson Jan 15, 2019
7fef34c
ARXIVNG-1366 added module-level tests
erickpeirson Jan 15, 2019
b3c0200
upgraded arxiv-base dependency
erickpeirson Jan 15, 2019
a7b0eb0
fixed docstring
erickpeirson Jan 17, 2019
cc7615f
importing classify() into services.classifier.__init__
erickpeirson Jan 17, 2019
1e946de
Merge pull request #47 from arXiv/feature/ARXIVNG-1367
erickpeirson Jan 17, 2019
576a04c
Merge pull request #46 from arXiv/task/ARXIVNG-1414-redux
erickpeirson Jan 17, 2019
c95c317
import main API in plaintext module into root of module
erickpeirson Jan 17, 2019
a4c9053
Merge branch 'develop' into feature/ARXIVNG-1366
erickpeirson Jan 17, 2019
ca2ed27
Merge pull request #48 from arXiv/feature/ARXIVNG-1366
erickpeirson Jan 17, 2019
7d31cfd
Merge branch 'develop' into task/ARXIVNG-1413
erickpeirson Jan 20, 2019
9521152
ARXIVNG-1422 added admin log entry generation
erickpeirson Jan 20, 2019
bc4d702
ARXIVNG-1422 admin log integration
erickpeirson Jan 21, 2019
03c6352
Merge branch 'task/ARXIVNG-1422' into task/ARXIVNG-1413
erickpeirson Jan 21, 2019
066741b
ARXIVNG-1413 support for creating proposals, DRY-ed out event class d…
erickpeirson Jan 21, 2019
1aa3b54
ARXIVNG-1413 plugging away at classic qa checks
erickpeirson Jan 21, 2019
6744ade
updated docstring
erickpeirson Jan 22, 2019
fad432b
Merge pull request #49 from arXiv/task/ARXIVNG-1422
erickpeirson Jan 22, 2019
473a31e
refactor flags, processes, and related events
erickpeirson Jan 23, 2019
c023c5d
ARXIVNG-1413 crazy cleanup
erickpeirson Jan 23, 2019
edd14b5
reorganized rules to reflect policy
erickpeirson Jan 23, 2019
4794790
minor
erickpeirson Jan 23, 2019
88de66a
minor
erickpeirson Jan 23, 2019
9eef27a
minor
erickpeirson Jan 23, 2019
88d69d1
minor
erickpeirson Jan 24, 2019
7a7ae2e
ARXIVNG-1413 added tests for classification workflow and feature checks
erickpeirson Jan 24, 2019
6ffff07
minor
erickpeirson Jan 24, 2019
4430d81
added test cases for proposals based on classifier results
erickpeirson Jan 24, 2019
3b6d97f
added tests for reclassification rules
erickpeirson Jan 24, 2019
7ea9b06
fixed failing tests
erickpeirson Jan 24, 2019
4c70e44
updated travis
erickpeirson Jan 24, 2019
db03a9a
fixed typo
erickpeirson Jan 24, 2019
d1802ed
more tests
erickpeirson Jan 24, 2019
8aa7049
extend classic db test
erickpeirson Jan 24, 2019
bb40c01
Merge pull request #50 from arXiv/task/ARXIVNG-1413
erickpeirson Jan 24, 2019
7611154
fixing test error in Compilation constructor
JaimieMurdock Jan 24, 2019
e3de55f
adding CompilationStatus
JaimieMurdock Jan 24, 2019
2ace19a
removing CompilationProduct and CompilationContent
JaimieMurdock Jan 24, 2019
4f0520f
correcting imports
JaimieMurdock Jan 24, 2019
f7b4f3d
updating default
JaimieMurdock Jan 24, 2019
ad055ea
completing removal of submission content
JaimieMurdock Jan 24, 2019
2cc0f00
readdiing SubmissionContent
JaimieMurdock Jan 24, 2019
f8c338c
rebuild api docs
erickpeirson Jan 25, 2019
9e32335
ARXIVNG-1629 wrote a bunch of docs about using arxiv.submission package
erickpeirson Jan 25, 2019
95b52e9
minor
erickpeirson Jan 25, 2019
e34dd73
Merge pull request #51 from arXiv/task/ARXIVNG-1629
erickpeirson Jan 25, 2019
1eeaed2
finishing migration of compilation_products to compilations
JaimieMurdock Jan 26, 2019
512d5d1
updating submission.json
JaimieMurdock Jan 30, 2019
3414e1e
Merge branch 'develop' into task/ARXIVNG-1463
JaimieMurdock Jan 30, 2019
752b562
Merge pull request #45 from arXiv/task/ARXIVNG-1463
JaimieMurdock Jan 30, 2019
1c5aa8a
incremented minor version
erickpeirson Jan 30, 2019
7cf941e
fixed missing imports
erickpeirson Jan 31, 2019
050ed28
adding mypy_extensions to deps for submission.domain.annotation and s…
JaimieMurdock Feb 1, 2019
4fe0909
minor bugfix; incremented to rc2
erickpeirson Feb 1, 2019
e7a2467
Merge pull request #52 from task/ARXIVNG-1650
JaimieMurdock Feb 1, 2019
a089533
ARXIVNG-1440 integrating compilation into events and hooks
erickpeirson Feb 7, 2019
7ea87dd
ARXIVNG-1440 tweaks to support coherent compilation workflow
erickpeirson Feb 8, 2019
6104106
ARXIVNG-1440 support compilation short-circuit, redirects
erickpeirson Feb 8, 2019
fb21d2e
ARXIVNG-1440 compiler service integration tests passing
erickpeirson Feb 10, 2019
3bf6a8c
updated tests
erickpeirson Feb 11, 2019
f42d1b8
ARXIVNG-1440 tweaks to support UI workflow
erickpeirson Feb 12, 2019
529a1e3
incremented rc
erickpeirson Feb 12, 2019
e9f59b8
fixed some tests
erickpeirson Feb 12, 2019
7748866
fixed wonky tests
erickpeirson Feb 13, 2019
ed85bb9
Merge pull request #53 from arXiv/task/ARXIVNG-1440
erickpeirson Feb 13, 2019
ec6458c
ARXIVNG-1783 implemented versioning for event classes
erickpeirson Feb 17, 2019
0be5a33
ARXIVNG-1783 added more docs and built out the example
erickpeirson Feb 17, 2019
ad36da1
fixed a typo
erickpeirson Feb 17, 2019
194ee47
ARXIVNG-1301 size -> uncompressed|compressed_size
erickpeirson Feb 17, 2019
67ff840
ARXIVNG-1301 minor fixes
erickpeirson Feb 18, 2019
14d7380
ARXICNG-1301 added tests for size limits
erickpeirson Feb 18, 2019
45d8ea5
ARXIVNG-1375 created placeholder for email confirmation
erickpeirson Feb 19, 2019
f1476ac
adding update-docs script
JaimieMurdock Feb 19, 2019
d788d0a
Merge pull request #55 from arXiv/task/ARXIVNG-1301
erickpeirson Feb 20, 2019
b7ef908
Merge pull request #56 from arXiv/task/ARXIVNG-1634
JaimieMurdock Feb 21, 2019
0e41d72
Added a bit more context for event data versioning
erickpeirson Feb 23, 2019
2f0d586
minor
erickpeirson Feb 25, 2019
e9cc327
Merge branch 'develop' into feature/ARXIVNG-1783
erickpeirson Feb 25, 2019
076714d
deps
erickpeirson Feb 25, 2019
ee9b8b7
deps
erickpeirson Feb 25, 2019
df64147
Merge branch 'develop' into feature/ARXIVNG-1783
erickpeirson Feb 25, 2019
dcece3f
Merge pull request #54 from arXiv/feature/ARXIVNG-1783
erickpeirson Feb 25, 2019
df81adb
ARXIVNG-1776 let flask-sqlalchemy worry about connection management
erickpeirson Mar 4, 2019
1be6900
ARXIVNG-1776 added som retry logic to classic db integration
erickpeirson Mar 4, 2019
6c2af02
fixes for serializer/deserializer
erickpeirson Mar 7, 2019
b93fdc9
using backported datetime.fromisoformat for deserialization
erickpeirson Mar 8, 2019
8bc4342
odd dependency things
erickpeirson Mar 8, 2019
5736c40
updated pytz dep
erickpeirson Mar 8, 2019
48e21c7
refactored classifier to use arxiv.integration.api
erickpeirson Mar 8, 2019
95b0275
refactored compiler to use arxiv.integration.api
erickpeirson Mar 8, 2019
917d9fd
refactoring around arxiv.integration.api
erickpeirson Mar 8, 2019
73ef5be
minor
erickpeirson Mar 8, 2019
f33e1ea
various fixes and tweaks
erickpeirson Mar 8, 2019
cf29c72
tweaks and fixes to support UI work
erickpeirson Mar 14, 2019
101e59f
Merge branch 'develop' into task/ARXIVNG-1776
erickpeirson Mar 14, 2019
7bf8bc9
fixed failing tests
erickpeirson Mar 14, 2019
7d36042
disabling linter for now; astroid is hitting a weird bug
erickpeirson Mar 14, 2019
a26fb8e
Merge pull request #57 from arXiv/task/ARXIVNG-1776
erickpeirson Mar 14, 2019
1a60f39
Merge branch 'develop' into feature/ARXIVNG-1375
erickpeirson Mar 14, 2019
bd56afb
ARXIVNG-1375 generate a confirmation e-mail upon finalization
erickpeirson Mar 18, 2019
78e1c8a
updated http status codes
erickpeirson Mar 18, 2019
ff3bf27
added support for monitoring task id, fixes for packaging email templ…
erickpeirson Mar 19, 2019
8ec13db
Update email_notifications.py
erickpeirson Mar 19, 2019
e97b1b8
removed abs macro from html email
erickpeirson Mar 19, 2019
755171e
Merge branch 'feature/ARXIVNG-1375' of github.com:arXiv/arxiv-submiss…
erickpeirson Mar 19, 2019
a74c1a7
Merge pull request #58 from arXiv/feature/ARXIVNG-1375
erickpeirson Mar 19, 2019
79d0ad1
minor
erickpeirson Mar 19, 2019
a86427c
ARXIVNG-1804 ensure that users can safely abandon submissions, replac…
erickpeirson Mar 20, 2019
1c61a54
minor
erickpeirson Mar 20, 2019
434f791
all kinds of refactor
erickpeirson Mar 21, 2019
8205ad4
Publish? What?
erickpeirson Mar 21, 2019
3d90031
tweaks to tests, states
erickpeirson Mar 21, 2019
2a476c5
docs
erickpeirson Mar 21, 2019
5b57390
bump version
erickpeirson Mar 21, 2019
38b931f
ARXIVNG-1804 minor bugfixes
erickpeirson Mar 21, 2019
ce13eeb
ARXIVNG-2006 link to preview submission
erickpeirson Mar 21, 2019
1fa06cf
ARXIVNG-2013 stash submission content info in db
erickpeirson Mar 22, 2019
51c754a
minor
erickpeirson Mar 22, 2019
418c5a1
Merge pull request #59 from arXiv/feature/ARXIVNG-1804
erickpeirson Mar 22, 2019
288b09f
Merge branch 'develop' into task/ARXIVNG-2013
erickpeirson Mar 22, 2019
5b8c7b8
ARXIVNG-2023 cleanup, cleanup
erickpeirson Mar 26, 2019
3f9af99
ARXIVNG-2029 moving rule-based async process logic to submission agen…
erickpeirson Mar 29, 2019
a8b9bc7
ARXIVNG-2029 refactoring tests
erickpeirson Mar 31, 2019
683190b
ARXIVNG-2029 refactoring tests
erickpeirson Mar 31, 2019
b12f84c
ARXIVNG-2029 more tests
erickpeirson Apr 1, 2019
e2686f8
minor
erickpeirson Apr 1, 2019
0ae8bd8
let compilation service tell the whole story
erickpeirson Apr 1, 2019
6bff5dc
minor
erickpeirson Apr 1, 2019
b353eaf
hooked in stream publisher; using pytest
erickpeirson Apr 1, 2019
4a5eeb6
more work on agent
erickpeirson Apr 1, 2019
543e503
big ol docs update
erickpeirson Apr 4, 2019
8999f54
minor fixes
erickpeirson Apr 4, 2019
26886b7
minor
erickpeirson Apr 4, 2019
0294e61
minor
erickpeirson Apr 4, 2019
80b4b2e
minor
erickpeirson Apr 4, 2019
7771db2
minor
erickpeirson Apr 4, 2019
3af2b3c
minor
erickpeirson Apr 4, 2019
749d770
Merge pull request #62 from arXiv/feature/ARXIVNG-2029
erickpeirson Apr 4, 2019
85a7efb
ARXIVNG-2029 consistency tweaks
erickpeirson Apr 5, 2019
317b86f
minor fixes
erickpeirson Apr 5, 2019
427dce6
ARXIVNG-2047 updates to arch docs
erickpeirson Apr 16, 2019
d299abb
New release number 0.7.1rc16.
DavidLFielding Apr 19, 2019
a68b656
Add label and link arguments for PS/PDF stamp. [ARXIVNG-2064] David
DavidLFielding Apr 19, 2019
a476516
Merge pull request #63 from arXiv/ARXIVNG-2064
DavidLFielding Apr 23, 2019
da2bad7
improved consistency management
erickpeirson May 3, 2019
109e9b8
Merge branch 'develop' of github.com:arXiv/arxiv-submission-core into…
erickpeirson May 3, 2019
fedd13c
fixed two tests
erickpeirson May 3, 2019
adbd726
allow InvalidEvent to percolate
erickpeirson May 3, 2019
5722d15
updated docs
erickpeirson May 3, 2019
ceb34b2
cleanup
erickpeirson May 3, 2019
7009f3e
updated arxiv base
erickpeirson May 9, 2019
169b561
minor bugfix in agent.factory
erickpeirson May 9, 2019
bb09063
updated dependencies to address CVE-2019-7164, CVE-2019-7548, CVE-201…
erickpeirson May 9, 2019
a040286
ARXIVNG-2144 check service status at start-up
erickpeirson May 15, 2019
ac216d1
ARXIVNG-2144 adding availability checks for service modules
erickpeirson May 15, 2019
74393a7
ARXIVNG-2144 adding stream initialization
erickpeirson May 16, 2019
3adcdd0
ARXIVNG-2144 tweaks and fixes to availability checks
erickpeirson May 16, 2019
bcd84e4
ARXIVNG-2144 tweaks to fix secrets management behavior
erickpeirson May 20, 2019
8aef924
adjusted status probe timeouts; other minor tweaks
erickpeirson May 28, 2019
9bc62d1
ARXIVNG-2020 added profile for agent
erickpeirson May 28, 2019
e9bdad6
Apply suggestions from code review
erickpeirson May 29, 2019
7a2e28b
minor init_app improvement
erickpeirson May 29, 2019
cbcf088
updated config.py
erickpeirson May 30, 2019
1a4b868
Merge pull request #65 from arXiv/task/ARXIVNG-2144
erickpeirson May 30, 2019
57cca44
changed size limit config vars to include units
erickpeirson May 30, 2019
dfb8f5a
Apply suggestions from code review
erickpeirson May 30, 2019
5853564
Update agent/agent/config.py
erickpeirson May 30, 2019
f6064b7
changes to description of agent and worker processes in agent/agent/_…
erickpeirson May 30, 2019
bddb0a9
Merge branch 'develop' of github.com:arXiv/arxiv-submission-core into…
erickpeirson May 30, 2019
043e5b2
added pdf size limit to hold/release messages
erickpeirson May 30, 2019
a059a01
cleanup
erickpeirson May 30, 2019
b6fb0c1
renamed predicates
erickpeirson May 30, 2019
8372c74
fixed ENABLE_CALLBACKS param in configs
erickpeirson May 30, 2019
cd56c8e
ARXIVNG-2020 added helm chart, tweaks for deployment
erickpeirson May 31, 2019
f3c02d6
PR #64 use arxiv.taxonomy.CATEGORIES to get archive
erickpeirson May 31, 2019
ccb6c2f
cleaning up configs
erickpeirson May 31, 2019
070b665
Update core/arxiv/submission/domain/submission.py
erickpeirson May 31, 2019
1b15e1c
minor
erickpeirson May 31, 2019
3254493
Merge branch 'develop' of github.com:arXiv/arxiv-submission-core into…
erickpeirson May 31, 2019
7f98a5d
ARXIVNG-2020 deployment tweaks
erickpeirson Jun 2, 2019
18c6b84
deployment tweaks and fixes
erickpeirson Jun 3, 2019
1da7479
minor
erickpeirson Jun 3, 2019
1feb15d
PR #64 fixing predicate names, type annotations
erickpeirson Jun 3, 2019
4644bea
Update core/arxiv/submission/domain/event/versioning/_base.py
erickpeirson Jun 3, 2019
578dfa1
PR #16 fix freeze time
erickpeirson Jun 3, 2019
464334f
PR #64 fix single character var name
erickpeirson Jun 3, 2019
ec8955b
Merge branch 'develop' of github.com:arXiv/arxiv-submission-core into…
erickpeirson Jun 3, 2019
ed8a86f
fixes and tweaks to accommodate legacy integration
erickpeirson Jun 3, 2019
1173bc8
minor fixes
erickpeirson Jun 3, 2019
bb0a8c1
fixed celery serialization config
erickpeirson Jun 4, 2019
a4f9a0d
Update core/arxiv/submission/services/plaintext/plaintext.py
erickpeirson Jun 5, 2019
f727774
Update core/arxiv/submission/services/plaintext/plaintext.py
erickpeirson Jun 5, 2019
057609d
tweak deployment
erickpeirson Jun 6, 2019
e95bad0
Abstract paragraphs (#69)
bdc34 Jun 21, 2019
c52dc4f
Merge branch 'develop' of github.com:arXiv/arxiv-submission-core into…
erickpeirson Jun 28, 2019
b02bef7
Submission dashboard should not show classic submissions in progress …
bdc34 Jul 10, 2019
a809f81
minor?
erickpeirson Jul 16, 2019
8f6f98f
Merge branch 'develop' of github.com:arXiv/arxiv-submission-core into…
erickpeirson Jul 16, 2019
b1d5398
make classifier path configurable
erickpeirson Jul 16, 2019
2cb9281
incremented version in setup.py
erickpeirson Jul 16, 2019
bcd2ded
ARXIVNG-2212 should not be able to load non-NG submission
erickpeirson Jul 16, 2019
1cce312
tweaks to dockerfile per ARXIVNG-2462
erickpeirson Jul 19, 2019
265dbfa
minor tweaks
erickpeirson Jul 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ omit =
setup.py
docs/*
test*
*/test*
*/app.py
*/wsgi.py
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
sudo: required
services:
- docker
cache: pip
#cache: pip
env:
MIN_PYLINT_SCORE: 8
os:
Expand All @@ -11,10 +11,11 @@ python:
- "3.6"
script:
- pip install pipenv
- pipenv install
- pipenv install --dev
- pipenv run nose2 --with-coverage
- tests/lint.sh
- tests/docstyle.sh
- pipenv install ./core
- pipenv run pip show arxiv-base
- pipenv run pytest --cov=agent/agent --cov=core/arxiv --cov-report=term-missing agent/agent core/arxiv
after_success:
- coveralls
# - tests/lint.sh
- tests/docstyle.sh
33 changes: 33 additions & 0 deletions Dockerfile-agent
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# arxiv/submission-agent

FROM arxiv/base

WORKDIR /opt/arxiv

ENV LC_ALL en_US.utf8
ENV LANG en_US.utf8

# We're using MariaDB for testing/development, but production is MySQL (for
# now).
RUN yum -y install mariadb-devel

# Add Python consumer and configuration.
RUN pip install pipenv
RUN pipenv install

ENV AWS_ACCESS_KEY_ID ""
ENV AWS_SECRET_ACCESS_KEY ""

ADD core/ /opt/arxiv/core/
RUN pipenv install /opt/arxiv/core/
ADD agent/agent/ /opt/arxiv/agent/

ENV KINESIS_STREAM "SubmissionEvents"
ENV KINESIS_SHARD_ID "0"
ENV KINESIS_START_TYPE "TRIM_HORIZON"
ENV SUBMISSION_AGENT_DATABASE_URI ""
ENV LOGLEVEL 10

ENV JWT_SECRET "foo"

ENTRYPOINT ["pipenv", "run", "python3.6", "-m", "agent.consumer"]
11 changes: 6 additions & 5 deletions Dockerfile-metadata
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# arxiv/submission-api

FROM arxiv/base:0.7.1
FROM arxiv/base

WORKDIR /opt/arxiv

Expand All @@ -12,14 +12,14 @@ ENV LANG en_US.utf8
RUN yum -y install mariadb-devel

# Add Python consumer and configuration.
ADD Pipfile /opt/arxiv/Pipfile
ADD Pipfile.lock /opt/arxiv/Pipfile.lock
ADD metadata/Pipfile /opt/arxiv/Pipfile
RUN pip install pipenv
RUN pipenv install

ADD core/ /opt/arxiv/core/
RUN pipenv install /opt/arxiv/core/

ADD metadata/ /opt/arxiv/
ADD authorization/authorization/ /opt/arxiv/authorization/
ADD core/events/ /opt/arxiv/events/
ADD metadata/bin/entrypoint.sh /opt/arxiv/entrypoint.sh

ENV JWT_SECRET "foo"
Expand All @@ -29,5 +29,6 @@ EXPOSE 8000

CMD ./entrypoint.sh --http-socket :8000 -w wsgi -M \
-t 3000 --manage-script-name \
--buffer-size 65535 \
--processes 8 --threads 1 --async 100 --ugreen \
--mount /submission=wsgi.py
26 changes: 26 additions & 0 deletions Dockerfile-worker
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# arxiv/submission-worker

FROM arxiv/base

WORKDIR /opt/arxiv

ENV LC_ALL en_US.utf8
ENV LANG en_US.utf8

# We're using MariaDB for testing/development, but production is MySQL (for
# now).
RUN yum -y install mariadb-devel

# Add Python consumer and configuration.
RUN pip install pipenv
RUN pipenv install

ADD core/ /opt/arxiv/core/
RUN pipenv install /opt/arxiv/core/
ADD agent/agent/ /opt/arxiv/agent/

ENV JWT_SECRET "foo"
EXPOSE 8000

ENTRYPOINT ["pipenv", "run", "celery", "worker"]
CMD ["-A", "agent.worker.worker_app", "--loglevel=INFO", "-E", "--concurrency=2"]
56 changes: 37 additions & 19 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,50 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

flask = "*"
dataclasses = "*"
pyjwt = "*"
jsonschema = "*"
arxiv-base = "==0.7.1"
sqlalchemy = "*"
pyyaml = "*"
pytz = "*"
uwsgi = "*"
mysqlclient = "*"
mimesis = "*"

flask = "==1.0.2"
dataclasses = "==0.6"
pyjwt = "==1.6.4"
jsonschema = "==2.6.0"
sqlalchemy = ">=1.3.0"
pytz = "==2018.7"
uwsgi = "==2.0.17.1"
mysqlclient = "==1.3.13"
mimesis = "==2.1.0"
bleach = ">=3.0.2"
python-dateutil = "*"
unidecode = "*"
celery = "==4.1.0"
arxiv-auth = "==0.3.2rc5"
mypy_extensions = "*"
kombu = "==4.1.0"
semver = "*"
flask-sqlalchemy = "*"
retry = "*"
backports-datetime-fromisoformat = "*"
arxiv-base = "==0.15.7rc8"
arxiv-submission-core = {path = "./core"}
alembic = "*"
urllib3 = ">=1.24.2"
Jinja2 = ">=2.10.1"
pyyaml = ">=4.2b1"

[dev-packages]

"nose2" = "*"
openapi-spec-validator = "*"
coverage = "*"
coveralls = "*"
pylint = "*"
pydocstyle = "*"
mypy = "*"
pylint = "<2"
mypy = "==0.660"
mimesis = "*"
sphinx = "*"
sphinx-autodoc-typehints = "*"
pydocstyle = "==3.0.0"
pytest = "*"
pytest-cov = "*"
sphinx-jekyll-builder = "*"

[pipenv]
allow_prereleases = true
Loading