Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cron format for jobs (stats saving/digest) #93

Merged
merged 8 commits into from
May 20, 2024
Merged

Conversation

Jerboa-app
Copy link
Contributor

Closes #84

@BurrowBot
Copy link

Seems the coverage is below main by -3.18 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 50.45 % (-3.18 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/throttle.rs           | 0.0   % 0 / 48
src/server/stats/mod.rs          | 3.28  % 2 / 61
src/server/https.rs              | 5.71  % 4 / 70
src/task/mod.rs                  | 27.27 % 18 / 66
src/server/stats/hits.rs         | 42.31 % 33 / 78
src/lib.rs                       | 52.63 % 10 / 19
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/server/stats/digest.rs       | 70.0  % 63 / 90
src/integrations/mod.rs          | 70.59 % 24 / 34
src/content/mod.rs               | 72.55 % 74 / 102
src/util.rs                      | 76.47 % 52 / 68
src/content/sitemap.rs           | 77.78 % 119 / 153
src/server/stats/file.rs         | 79.31 % 23 / 29
src/config.rs                    | 81.25 % 26 / 32
src/filesystem/file.rs           | 85.29 % 29 / 34
src/integrations/discord/post.rs | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@BurrowBot
Copy link

Seems the coverage is below main by -2.9 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 50.73 % (-2.9 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/throttle.rs           | 0.0   % 0 / 48
src/server/stats/mod.rs          | 3.28  % 2 / 61
src/server/https.rs              | 5.71  % 4 / 70
src/task/mod.rs                  | 30.0  % 18 / 60
src/server/stats/hits.rs         | 42.31 % 33 / 78
src/lib.rs                       | 52.63 % 10 / 19
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/server/stats/digest.rs       | 70.0  % 63 / 90
src/integrations/mod.rs          | 70.59 % 24 / 34
src/content/mod.rs               | 72.55 % 74 / 102
src/util.rs                      | 76.47 % 52 / 68
src/content/sitemap.rs           | 77.78 % 119 / 153
src/server/stats/file.rs         | 79.31 % 23 / 29
src/config.rs                    | 81.25 % 26 / 32
src/filesystem/file.rs           | 85.29 % 29 / 34
src/integrations/discord/post.rs | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@BurrowBot
Copy link

Seems the coverage is below main by -0.43 %, please consider adding to the tests, thanks!
Here is the full report breakdown

Total coverage 53.2 % (-0.43 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/throttle.rs           | 0.0   % 0 / 48
src/server/https.rs              | 5.71  % 4 / 70
src/server/stats/mod.rs          | 27.87 % 17 / 61
src/server/stats/hits.rs         | 42.31 % 33 / 78
src/task/mod.rs                  | 50.0  % 30 / 60
src/lib.rs                       | 52.63 % 10 / 19
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/server/stats/digest.rs       | 70.0  % 63 / 90
src/integrations/mod.rs          | 70.59 % 24 / 34
src/content/mod.rs               | 72.55 % 74 / 102
src/util.rs                      | 76.47 % 52 / 68
src/content/sitemap.rs           | 77.78 % 119 / 153
src/server/stats/file.rs         | 79.31 % 23 / 29
src/config.rs                    | 81.25 % 26 / 32
src/filesystem/file.rs           | 85.29 % 29 / 34
src/integrations/discord/post.rs | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@BurrowBot
Copy link

Looks like you increased coverage by 0.86 %, fantastic!
Here is the full report breakdown

Total coverage 54.49 % (+0.86 % against main)
________________________________
src/main.rs                      | 0.0   % 0 / 15
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/throttle.rs           | 0.0   % 0 / 48
src/server/https.rs              | 5.71  % 4 / 70
src/server/stats/mod.rs          | 27.87 % 17 / 61
src/server/stats/hits.rs         | 42.31 % 33 / 78
src/lib.rs                       | 52.63 % 10 / 19
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/server/stats/digest.rs       | 70.0  % 63 / 90
src/integrations/mod.rs          | 70.59 % 24 / 34
src/content/mod.rs               | 72.55 % 74 / 102
src/task/mod.rs                  | 74.14 % 43 / 58
src/util.rs                      | 76.47 % 52 / 68
src/content/sitemap.rs           | 77.78 % 119 / 153
src/server/stats/file.rs         | 79.31 % 23 / 29
src/config.rs                    | 81.25 % 26 / 32
src/filesystem/file.rs           | 85.29 % 29 / 34
src/integrations/discord/post.rs | 90.0  % 9 / 10
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 30 / 30
src/integrations/webhook.rs      | 100.0 % 3 / 3
________________________________

@Jerboa-app Jerboa-app changed the title Digest at time Use cron format for jobs May 20, 2024
@Jerboa-app Jerboa-app changed the title Use cron format for jobs Use cron format for jobs (stats saving/digest) May 20, 2024
@Jerboa-app Jerboa-app merged commit 3d21c89 into main May 20, 2024
6 checks passed
@Jerboa-app Jerboa-app deleted the digest_at_time branch May 26, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stats report at a specific (optional day of week and) time
2 participants