Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Make the spam checker a module #2474

Merged
merged 5 commits into from Sep 27, 2017

Conversation

Projects
None yet
2 participants
Member

dbkr commented Sep 26, 2017

No description provided.

@@ -144,7 +143,7 @@ def callback(_, pdu, redacted):
)
return redacted
- if spamcheck.check_event_for_spam(pdu):
@erikjohnston

erikjohnston Sep 27, 2017

Owner

So we're requiring this to be run synchronously? I.e., no IO while checking?

@dbkr

dbkr Sep 27, 2017

Member

yeah, same as before basically (it doesn't yield on the function call)

@erikjohnston

erikjohnston Sep 27, 2017

Owner

I was more wondering whether we really want to preclude the spam checkers from e.g. accessing the DB, but ok.

dbkr added some commits Sep 27, 2017

LGTM, once the unit tests pasts

Don't test is spam_checker not None
Sometimes it's a Mock object which is not none but is still not
what we're after

@dbkr dbkr merged commit 74e494b into develop Sep 27, 2017

7 of 8 checks passed

Sytest Dendron (Commit) Build #2641 origin/dbkr/spam_check_module failed in 4 min 55 sec
Details
Sytest Dendron (Merged PR) Build finished.
Details
Sytest Postgres (Commit) Build #3475 origin/dbkr/spam_check_module succeeded in 4 min 26 sec
Details
Sytest Postgres (Merged PR) Build finished.
Details
Sytest SQLite (Commit) Build #3569 origin/dbkr/spam_check_module succeeded in 1 min 44 sec
Details
Sytest SQLite (Merged PR) Build finished.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@dbkr dbkr deleted the dbkr/spam_check_module branch Oct 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment