]>
source.dussan.org Git - rspamd.git/log
Vsevolod Stakhov [Mon, 15 Oct 2018 15:23:18 +0000 (16:23 +0100)]
[Minor] Fix function invocation
Vsevolod Stakhov [Mon, 15 Oct 2018 15:23:00 +0000 (16:23 +0100)]
[Minor] Fix error when using plain unix socket in DCC plugin
Vsevolod Stakhov [Mon, 15 Oct 2018 14:56:38 +0000 (15:56 +0100)]
[Feature] Use verdict instead of the plain action in plugins
Vsevolod Stakhov [Mon, 15 Oct 2018 14:50:01 +0000 (15:50 +0100)]
[Minor] Add function lua_util.get_task_verdict
Vsevolod Stakhov [Mon, 15 Oct 2018 14:22:47 +0000 (15:22 +0100)]
[Minor] Add task:get_metric_result() method
Vsevolod Stakhov [Mon, 15 Oct 2018 14:22:33 +0000 (15:22 +0100)]
[Minor] Store more information about symbols added
Vsevolod Stakhov [Sun, 14 Oct 2018 14:24:23 +0000 (15:24 +0100)]
Merge pull request #2590 from heraklit256/onion-uri-2
add rule for .onion URIs
Anton Yuzhaninov [Sun, 14 Oct 2018 08:38:57 +0000 (04:38 -0400)]
Drone coverage fix (#2592)
* Build as nobody
This showld fix coverage files writing. At least some coverage files
(*.gcda, *.gcno) are written by rspamd running as nobody.
* Comment luacov-coveralls
* Run rspamd-test as nobody too
* Run coveralls from build root (/rspamd/build)
It need to find all `.gcda` files.
* Hack for coveralls was moved to Docker image
* Add test debug
* More debug
* Workaround to writing *.gcda from different users
*.gcda files written in parallel by root and by nobody
* Remove debug
* Use current build number instead of previous
* Remove unused variable
* Add more parameters
- If CI detected we don't need to check if service_job_id and other
fields in json already filled - this info anyway comes from environment
- coveralls.io API is not documented. Code from:
https://github.com/lemurheavy/coveralls-ruby/
and
https://github.com/coveralls-clients/coveralls-python/
was used as an example.
* In case of error there is no url in json respnse
Print message field anyway - it can contain useful error message.
* Add debug
* Simplify
* Fix: for pull request CI_BUILD_EVENT set to 'pull_request'
* Remove debug
Vsevolod Stakhov [Sun, 14 Oct 2018 08:38:42 +0000 (09:38 +0100)]
Merge pull request #2593 from moisseev/eslint
[WebUI] Colorize symbols
Alexander Moisseev [Sun, 14 Oct 2018 07:52:09 +0000 (10:52 +0300)]
[Minor] Remove unused CSS rule-sets
heraklit256 [Sat, 13 Oct 2018 18:47:23 +0000 (20:47 +0200)]
add HAS_ONION_URI to HAS_ANON_DOMAIN
heraklit256 [Sat, 13 Oct 2018 18:46:56 +0000 (20:46 +0200)]
add HAS_ONION_URI rule
heraklit256 [Sat, 13 Oct 2018 18:43:34 +0000 (18:43 +0000)]
Merge pull request #7 from rspamd/master
merge upstream into local master
Alexander Moisseev [Sat, 13 Oct 2018 17:46:53 +0000 (20:46 +0300)]
[WebUI] Colorize symbols
Vsevolod Stakhov [Sat, 13 Oct 2018 14:35:59 +0000 (15:35 +0100)]
[Minor] Python...
Vsevolod Stakhov [Sat, 13 Oct 2018 14:24:34 +0000 (15:24 +0100)]
[Minor] Python...
Vsevolod Stakhov [Sat, 13 Oct 2018 13:59:48 +0000 (14:59 +0100)]
[Minor] Fucking python
Vsevolod Stakhov [Sat, 13 Oct 2018 13:57:56 +0000 (14:57 +0100)]
[Feature] Add only unique elements to Clickhouse url arrays
Vsevolod Stakhov [Sat, 13 Oct 2018 13:48:01 +0000 (14:48 +0100)]
[Minor] Another try to fix bloody python
Vsevolod Stakhov [Sat, 13 Oct 2018 13:41:09 +0000 (14:41 +0100)]
[Minor] Set number of threads on load as precaution
Vsevolod Stakhov [Sat, 13 Oct 2018 13:40:19 +0000 (14:40 +0100)]
[Minor] Always set number of threads when performing learn
Vsevolod Stakhov [Sat, 13 Oct 2018 13:33:28 +0000 (14:33 +0100)]
[Minor] Further try to fix bloody python
Vsevolod Stakhov [Sat, 13 Oct 2018 13:23:00 +0000 (14:23 +0100)]
[Minor] Allow to edit empty maps
Vsevolod Stakhov [Sat, 13 Oct 2018 13:19:14 +0000 (14:19 +0100)]
[Minor] Use python3
Vsevolod Stakhov [Sat, 13 Oct 2018 12:30:07 +0000 (13:30 +0100)]
[Minor] Include module name when setting pre result
Vsevolod Stakhov [Sat, 13 Oct 2018 12:26:51 +0000 (13:26 +0100)]
Update README.md
Anton Yuzhaninov [Sat, 13 Oct 2018 10:16:34 +0000 (06:16 -0400)]
Drone speedup (#2588)
* Start switchind test to custom Docker images
Using Docker images with pre-installed delendencies will speedup
testing.
* Debug build in drone.io
* Use variable instead hardcoded path to the source
* Debug variable substitution by drone
Also according to comments in code DRONE_WORKSPACE is deprecated and
CI_WORKSPACE is a new form.
* One more try to use variables.
It looks like drone uses same rules as docker-compose:
https://docs.docker.com/compose/compose-file/#variable-substitution
* Cleanup debug
* Less verbose make output
* Be consistent in variable escaping
It works without escaping only becuse ${VAR} currently expanded by
drone, but $VAR is not.
* Use alpine base image for nodejs
It is smaller.
* Return rspamd-test
* Revert variable escaping
Wihtout escaping it is more easy to copy-past command for testing.
Just don't use ${var} when var should be expanded by shell and not
drone.
* Add debug
* Fix yaml parsing error
* Fix exit code capture
It should be done on the same line, because drone insert 'echo + cmd'
between commands.
* Remove debug
* Readability
No functional changes.
* Return functional tests
* Be consistent
* Add git stub for coveralls
* Send coverage
* Fix yaml parsing error
* Add links to Dockerfiles
* Send test log in case of test failure
XXX if rspamd-test failed, but functional was successful robot log will be
attached (but not useful).
* Don't run rspamd-test and functional tests in parallel
It looks like there is a race condition in writing coverage files.
* Try to run tests in parallel
* Add debug
* Fix parallel test run
test/rspamd-test and functional test both use luacov.stats.out file
in current directory. Run ./rspamd-test from anther directory.
* Use drone condition for sending coveralls report
Also don't send report if empty tocken was provided.
* Add mininal python3 compatibility
Vsevolod Stakhov [Fri, 12 Oct 2018 16:57:08 +0000 (17:57 +0100)]
[Minor] Improve errors logging
Vsevolod Stakhov [Fri, 12 Oct 2018 16:43:49 +0000 (17:43 +0100)]
[Minor] Do not call legacy API in modern OpenSSL
Issue: #2587
Closes: #2587
Vsevolod Stakhov [Fri, 12 Oct 2018 16:40:34 +0000 (17:40 +0100)]
Merge pull request #2586 from moisseev/eslint
[WebUI] Add symbols sorting buttons
Vsevolod Stakhov [Fri, 12 Oct 2018 16:33:20 +0000 (17:33 +0100)]
[Test] Fix tests that are not RFC conformant
Vsevolod Stakhov [Fri, 12 Oct 2018 16:09:10 +0000 (17:09 +0100)]
[Minor] Fix some tests
Vsevolod Stakhov [Fri, 12 Oct 2018 15:44:21 +0000 (16:44 +0100)]
[Rework] Completely rewrite DMARC checks logic
Vsevolod Stakhov [Fri, 12 Oct 2018 15:44:01 +0000 (16:44 +0100)]
[Minor] Remove stupid debugging
Vsevolod Stakhov [Fri, 12 Oct 2018 08:48:58 +0000 (09:48 +0100)]
[CritFix] Fix options insertion
Alexander Moisseev [Mon, 8 Oct 2018 11:25:50 +0000 (14:25 +0300)]
[WebUI] Add symbols sorting buttons
to detail history rows
Vsevolod Stakhov [Thu, 11 Oct 2018 19:48:50 +0000 (20:48 +0100)]
[Minor] Add some fail-safety
Vsevolod Stakhov [Thu, 11 Oct 2018 17:41:18 +0000 (18:41 +0100)]
[Minor] Fix stack index
Vsevolod Stakhov [Thu, 11 Oct 2018 16:27:07 +0000 (17:27 +0100)]
[Conf] Log forced action by default
Vsevolod Stakhov [Thu, 11 Oct 2018 16:26:02 +0000 (17:26 +0100)]
[Minor] Add logging variable for forced actions
Vsevolod Stakhov [Thu, 11 Oct 2018 16:19:00 +0000 (17:19 +0100)]
[Minor] Fix score set in passthrough mode
Vsevolod Stakhov [Thu, 11 Oct 2018 14:35:07 +0000 (15:35 +0100)]
[Project] Finish rework of passthrough actions
Vsevolod Stakhov [Thu, 11 Oct 2018 13:32:11 +0000 (14:32 +0100)]
[Rework] Always create result for a task
Vsevolod Stakhov [Wed, 10 Oct 2018 10:26:19 +0000 (11:26 +0100)]
[Minor] Fix comments with multiple addresses
Issue: #2578
Closes: #2578
Vsevolod Stakhov [Tue, 9 Oct 2018 17:30:35 +0000 (18:30 +0100)]
[Feature] Allow to disable actions by users settings
Vsevolod Stakhov [Tue, 9 Oct 2018 16:19:04 +0000 (17:19 +0100)]
Merge pull request #2581 from negram/drone-ci
Drone ci
Mikhail Galanin [Tue, 9 Oct 2018 16:17:25 +0000 (17:17 +0100)]
[Minor] Adopted merger to work with drone
Mikhail Galanin [Tue, 9 Oct 2018 16:17:04 +0000 (17:17 +0100)]
[Minor] Add .drone.yml
Vsevolod Stakhov [Tue, 9 Oct 2018 13:58:44 +0000 (14:58 +0100)]
[Minor] Fixes for the previous project
Vsevolod Stakhov [Tue, 9 Oct 2018 11:37:30 +0000 (12:37 +0100)]
[Conf] Add composite to negate policies when fuzzy/bayes found
Vsevolod Stakhov [Tue, 9 Oct 2018 11:37:02 +0000 (12:37 +0100)]
[Feature] Allow `g+:` and `g-:` composite atoms
Vsevolod Stakhov [Tue, 9 Oct 2018 11:36:23 +0000 (12:36 +0100)]
[Minor] Add more operations sanity check in expressions parser
Vsevolod Stakhov [Tue, 9 Oct 2018 11:11:10 +0000 (12:11 +0100)]
[Conf] Increase default bayes score
Vsevolod Stakhov [Tue, 9 Oct 2018 11:07:28 +0000 (12:07 +0100)]
[Feature] Store url object in images
Vsevolod Stakhov [Tue, 9 Oct 2018 10:59:30 +0000 (11:59 +0100)]
[Conf] Add dkim checks for some surbl rules
Vsevolod Stakhov [Tue, 9 Oct 2018 10:59:17 +0000 (11:59 +0100)]
[Feature] Allow dkim domains check in surbl
Vsevolod Stakhov [Tue, 9 Oct 2018 10:24:11 +0000 (11:24 +0100)]
Merge pull request #2579 from negram/fixed-unit-test
[Test] fixed unit test
Mikhail Galanin [Tue, 9 Oct 2018 08:24:49 +0000 (09:24 +0100)]
[Test] fixed unit test
Vsevolod Stakhov [Mon, 8 Oct 2018 17:07:41 +0000 (18:07 +0100)]
Merge pull request #2577 from negram/fix-edge-case
Fix edge case
Vsevolod Stakhov [Mon, 8 Oct 2018 17:07:25 +0000 (18:07 +0100)]
Merge pull request #2576 from negram/more-coverage
[Test] Collect coverage in all functional tests
Vsevolod Stakhov [Mon, 8 Oct 2018 17:07:16 +0000 (18:07 +0100)]
Merge pull request #2575 from negram/coverage-doc
[Minor] Added coverage collection documentation
Mikhail Galanin [Mon, 8 Oct 2018 16:53:50 +0000 (17:53 +0100)]
[Test] one more test case
Mikhail Galanin [Mon, 8 Oct 2018 16:53:33 +0000 (17:53 +0100)]
[Minor] Fix checking table size when inserting/deleting
Vsevolod Stakhov [Mon, 8 Oct 2018 16:34:24 +0000 (17:34 +0100)]
[Minor] Add missing #endif
Vsevolod Stakhov [Mon, 8 Oct 2018 16:29:51 +0000 (17:29 +0100)]
[Minor] Update cached libevent time when possible
Vsevolod Stakhov [Mon, 8 Oct 2018 16:15:19 +0000 (17:15 +0100)]
[Fix] Stop libevent from using cached time in rspamadm
Vsevolod Stakhov [Mon, 8 Oct 2018 16:08:38 +0000 (17:08 +0100)]
[Minor] Check for cached libevent time routines
Mikhail Galanin [Mon, 8 Oct 2018 15:28:55 +0000 (16:28 +0100)]
[Test] Collect coverage in all functional tests
Vsevolod Stakhov [Mon, 8 Oct 2018 15:22:43 +0000 (16:22 +0100)]
Merge pull request #2543 from heraklit256/extended-dnswl-scores
leaving original symbols if DNSWL composite rules are triggered
heraklit256 [Mon, 8 Oct 2018 15:03:03 +0000 (17:03 +0200)]
lower weight of RCVD_DKIM_ARC_DNSWL_HI to -1.0
Mikhail Galanin [Mon, 8 Oct 2018 14:52:22 +0000 (15:52 +0100)]
[Minor] Added coverage collection documentation
Vsevolod Stakhov [Mon, 8 Oct 2018 11:21:31 +0000 (12:21 +0100)]
[Minor] Print timestamps when rspamadm is started in debug mode
Vsevolod Stakhov [Mon, 8 Oct 2018 10:51:09 +0000 (11:51 +0100)]
[Fix] Various fixes in redis sync interface
Vsevolod Stakhov [Mon, 8 Oct 2018 10:50:53 +0000 (11:50 +0100)]
[CritFix] Plug memory leak in redis pool
Vsevolod Stakhov [Mon, 8 Oct 2018 09:41:12 +0000 (10:41 +0100)]
Merge pull request #2574 from negram/store-and-merge-lua-coverage
Store and merge lua coverage
Mikhail Galanin [Mon, 8 Oct 2018 08:00:25 +0000 (09:00 +0100)]
[Test] Reworked build script to correctly collect merge coverage data
Mikhail Galanin [Mon, 8 Oct 2018 07:59:23 +0000 (08:59 +0100)]
[Test] Coverage merge/push script
Mikhail Galanin [Mon, 8 Oct 2018 07:58:50 +0000 (08:58 +0100)]
[Test] Collect coverage from rspamd workers
Vsevolod Stakhov [Sun, 7 Oct 2018 18:53:12 +0000 (19:53 +0100)]
Merge pull request #2573 from moisseev/eslint
[WebUI] Fix symbol description tooltips display
Alexander Moisseev [Sun, 7 Oct 2018 07:51:08 +0000 (10:51 +0300)]
[WebUI] Fix symbol description tooltips display
when the total number of rows is less than number of rows per page
Vsevolod Stakhov [Sat, 6 Oct 2018 16:15:24 +0000 (17:15 +0100)]
[Minor] Fix desctruction order
Vsevolod Stakhov [Sat, 6 Oct 2018 16:13:12 +0000 (17:13 +0100)]
[Fix] Fix parsing address with comments
Vsevolod Stakhov [Sat, 6 Oct 2018 12:35:14 +0000 (13:35 +0100)]
[Minor] Fix event pending checks
Vsevolod Stakhov [Sat, 6 Oct 2018 12:35:02 +0000 (13:35 +0100)]
[Minor] Fix symbols cache saving
Vsevolod Stakhov [Sat, 6 Oct 2018 09:29:32 +0000 (10:29 +0100)]
[Fix] Fix boundaries detection and rework stop words algorithm
Issue: #2541
Closes: #2541
Vsevolod Stakhov [Sat, 6 Oct 2018 08:52:32 +0000 (09:52 +0100)]
[Fix] Remove one letter stop words
Vsevolod Stakhov [Sat, 6 Oct 2018 08:28:10 +0000 (09:28 +0100)]
[Minor] Fix CMA calculations
Vsevolod Stakhov [Sat, 6 Oct 2018 08:26:18 +0000 (09:26 +0100)]
[Minor] Don't load torch unless really needed
Vsevolod Stakhov [Sat, 6 Oct 2018 08:25:55 +0000 (09:25 +0100)]
[Conf] Slashing: use lua rules from local confdir instead of confdir
Vsevolod Stakhov [Sat, 6 Oct 2018 08:23:03 +0000 (09:23 +0100)]
[Minor] Support local confdir in lua
Vsevolod Stakhov [Fri, 5 Oct 2018 19:01:28 +0000 (20:01 +0100)]
[Fix] Slashing: backport chunk logic from libucl
Vsevolod Stakhov [Fri, 5 Oct 2018 16:26:14 +0000 (17:26 +0100)]
Merge pull request #2572 from negram/fix-fatal-flag
[Minor] is_successful != fatal
Mikhail Galanin [Fri, 5 Oct 2018 16:25:08 +0000 (17:25 +0100)]
[Minor] is_successful != fatal
Vsevolod Stakhov [Fri, 5 Oct 2018 13:30:14 +0000 (14:30 +0100)]
Merge pull request #2571 from negram/misprint-2
[Minor] misprint
Vsevolod Stakhov [Fri, 5 Oct 2018 13:29:59 +0000 (14:29 +0100)]
Merge pull request #2570 from negram/lua-coverage-collector
Lua coverage collector
Mikhail Galanin [Fri, 5 Oct 2018 13:16:08 +0000 (14:16 +0100)]
[Minor] misprint
Mikhail Galanin [Fri, 5 Oct 2018 11:35:56 +0000 (12:35 +0100)]
[Test] global variable for coverage collector
Mikhail Galanin [Fri, 5 Oct 2018 11:35:31 +0000 (12:35 +0100)]
[Test] use the coverage collector in tests
Mikhail Galanin [Fri, 5 Oct 2018 11:34:37 +0000 (12:34 +0100)]
[Test] added Lua test coverage collector for functional tests
Vsevolod Stakhov [Thu, 4 Oct 2018 16:21:16 +0000 (17:21 +0100)]
[Minor] Prevent race condition in Redis ctx refcounting