Periodically publish results from mCaptcha/survey. #15

Merged
realaravinth merged 5 commits from publish-results into master 2023-03-12 21:15:42 +05:30

5 Commits

Author SHA1 Message Date
Aravinth Manivannan a3f2c3632e
feat: publish benchmark data periodically (configurable)
ci/woodpecker/push/woodpecker Pipeline failed Details
ci/woodpecker/pr/woodpecker Pipeline failed Details
2023-03-12 20:11:06 +05:30
Aravinth Manivannan 9411c2ba9f
feat: read publication dir config and serve it 2023-03-12 20:10:40 +05:30
Aravinth Manivannan d2c52cc62c
feat: cleanup archiver and include tests 2023-03-08 17:38:24 +05:30
Aravinth Manivannan 604fca0a62
feat: archive campaign and benchmark data
DESCRIPTION
    FORMATS
	- Campaign configuration is stored in JSON format
	- Benchmark data is stored in CSV format

    DIRECTORY STRUCTURE
	Each campaign gets a separate directory. A campaign can have
	multiple archives. Archives are stored in directories whose names
	would be the same as the UNIX timestamp of when they were
	recorded.

	EXAMPLE
	    The example below shows three campaigns with one archive
	    each. Each archive is stored in a directory denoting the
	    moment in which the archive was generated. Each archive
	    includes campaign configuration and benchmark.

	    ```bash
		14:53 atm@lab archive → tree
		.
		├── 4e951e01-71ee-4a18-9b97-782965495ae3
		│   └── 1675329764
		│       ├── benchmark.csv
		│       └── challenge.json
		├── 9d16df08-dffc-484e-bbe2-10c00b431c7e
		│   └── 1675329764
		│       ├── benchmark.csv
		│       └── challenge.json
		└── fa9f7c24-afec-4505-adb9-8e0c3ce54d37
		    └── 1675329764
			├── benchmark.csv
			└── challenge.json

		7 directories, 6 files
		```
2023-03-08 17:36:45 +05:30
Aravinth Manivannan a44f6f1748
feat: add archive base_path in settings 2023-03-08 17:36:45 +05:30