Commit Graph

240 Commits

Author SHA1 Message Date
Rahul Rudragoudar 33cd6c0525
Minor reformat
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-15 11:40:23 +05:30
Rahul Rudragoudar a33b9f1ab5
Decouple data access methods
Improve error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-15 11:34:30 +05:30
Rahul Rudragoudar f5cd94ec6c
Add base trait
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-15 11:34:09 +05:30
Rahul Rudragoudar 29b22d799b
Improve error handling
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-15 11:33:15 +05:30
Rahul Rudragoudar 8f9719acbf
Merge remote-tracking branch 'upstream/master' into Error-handling 2021-04-14 12:59:55 +05:30
hrj 3a1b01688a
Merge pull request #85 from UprootStaging/simplifiedConstructor
Code simplifications and updated test script
2021-04-14 10:47:18 +05:30
hrj 660447798f Debug Captcha: Print mismatches
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-14 10:08:33 +05:30
hrj 8fd294f0cf simpleTest.py : use debug level of difficulty
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-14 10:08:33 +05:30
hrj 352424e8f5 simpleTest: use XDG_RUNTIME_DIR for storing temp files
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-14 10:08:33 +05:30
hrj 433621f046 Update simpleTest to latest API and solve before answering
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-14 10:08:33 +05:30
hrj d3a2c6fa35 Minor: use Map.of()
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-14 10:08:33 +05:30
hrj 321bc67897 update readme with more details and clarifications 2021-04-13 17:58:21 +05:30
hrj ab64bb217c
Merge pull request #83 from UprootStaging/debugCaptcha
Add Debug Captcha and functional tests
2021-04-13 17:44:49 +05:30
hrj caf3669bd9 functional tests: show failed answers
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 1d746f7655 functional test: reduce failure criteria
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 96b5808628 correctly parse parameter values from config
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 1ff4a30da7 use tesseract instead of gocr
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj b765399f68 debug captcha: use safe alphabets only
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 41bdbc7fbf debug captcha: use a larger font
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 954399042c debug catpcha: only use alphabets
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 332bb2113b minor, typos in comment
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 328f046379 make locust output less verbose
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 3845645f9a use debug config
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj c0ac570746 simplify locust file
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 68dcfb1e49 CI: fix permission error
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj a51defd2c7 install gocr during CI
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj 3cfba7a08e run functional test
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj d9fefca841 minor, spacing
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj dd1129b484 added a debug captcha
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
Rahul Rudragoudar 9c7eb426ff
Merge remote-tracking branch 'upstream/master' into Error-handling 2021-04-12 23:23:05 +05:30
Rahul Rudragoudar 19a6d570ba
Minor reformat
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-12 23:15:11 +05:30
Rahul Rudragoudar 706cf2f2da
Improve error handling/messages
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-12 23:14:42 +05:30
Rahul Rudragoudar de4a853452
Update models
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-12 23:12:54 +05:30
Rahul Rudragoudar 8c18600902
Add image error fields
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-12 23:12:37 +05:30
hrj 2d7f229d30 bump to latest sbt version 2021-04-12 19:55:27 +05:30
hrj f8de5a5932 minor: added comment about per thread connections 2021-04-12 17:01:24 +05:30
hrj 79428bc5e7 reduce number of users in locust stress test
by reducing wait time, we can generate same load with fewer users
2021-04-12 16:56:59 +05:30
hrj e8416ff70e internal change: make maxAttempts easier to specify 2021-04-12 16:37:09 +05:30
hrj 8840a13a8f minor: moved blob variable to inner scope 2021-04-12 09:25:33 +05:30
hrj 43e1a379ac use an unbounded thread pool
mimics the performance with JLHttpServer
2021-04-12 07:22:53 +05:30
hrj fb400a6aea remove debug print 2021-04-12 07:10:00 +05:30
hrj 6fd34c16ac optimise string operations 2021-04-12 07:06:44 +05:30
hrj 89eeb76c46 Use a fork join pool executor with parallelism = 4 2021-04-12 07:00:53 +05:30
Rahul Rudragoudar 4612dfa1cd
Migrate to HttpServer (#76)
* Migrate to Fibry

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Improve error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update models and fields

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Enable fibry server

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update .gitignore

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Convert captcha class to object

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Rollback error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update models

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Migrate to sun http server

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Refactor: Linter and formatter

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Remove redundant dependancy

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-11 17:57:15 +05:30
hrj ff666396b8 readme: added a note on current status 2021-04-02 18:40:33 +05:30
hrj 12668d3785 readme: add quick start instructions with Java 2021-04-02 18:38:00 +05:30
hrj 02e9115641
Merge pull request #72 from UprootStaging/testing
Run locust tests in CI
2021-04-02 18:37:23 +05:30
hrj 7e87f6721b test script: fix path to activate 2021-04-02 16:51:48 +05:30
hrj c9abe141ec fail early in test script 2021-04-02 16:42:00 +05:30
hrj 30f5705aa5 exit test script with locust's exit code 2021-04-02 16:41:33 +05:30