-
Notifications
You must be signed in to change notification settings - Fork 29
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
add mypy + black+ruff and try to use --json-stats instead of the hard to parse logs #28
Draft
RonnyPfannschmidt
wants to merge
5
commits into
Johannes11833:master
Choose a base branch
from
RonnyPfannschmidt:reorder
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RonnyPfannschmidt
commented
Nov 20, 2023
•
edited
Loading
edited
- add code linitng and mypy
- migrate to --stat + json stats
- use rclone serve with bandwith limit for tests
RonnyPfannschmidt
changed the title
add mypy + bacl and try to use --json-stats instead of the hard to parse logs
add mypy + black+ruff and try to use --json-stats instead of the hard to parse logs
Nov 20, 2023
it seems tricky to test - im wondering about adding a docker config for a testing webdav/s3 type of server thats using rate limits |
after some investigation i learned, that progress details don't transfer, the only way to access them via api is to use the rc server |
scrap that, i just did the invocation wrong (testing on top of my netcloud dav)
has log lines that pretty print like: {
"level": "info",
"msg": "\nTransferred: \t 6.984 MiB / 1.598 GiB, 0%, 1.746 MiB/s, ETA 15m33s\nChecks: 32 / 32, 100%\nTransferred: 0 / 243, 0%\nElapsed time: 5.3s\nTransferring:\n * 05/IMG_20210505_004616.jpg: 47% /4.233Mi, 681.047Ki/s, 3s\n * 05/IMG_20210505_004620.jpg: 51% /3.905Mi, 681.311Ki/s, 2s\n * 05/IMG_20210505_004625.jpg: 49% /4.011Mi, 509.849Ki/s, 4s\n * 05/IMG_20210505_101246.jpg: 24% /4.119Mi, 509.848Ki/s, 6s\n\n",
"source": "accounting/stats.go:482",
"stats": {
"bytes": 7323648,
"checks": 32,
"deletedDirs": 0,
"deletes": 0,
"elapsedTime": 5.376205461,
"errors": 0,
"eta": 933,
"fatalError": false,
"renames": 0,
"retryError": false,
"speed": 1830463.4627209443,
"totalBytes": 1716074039,
"totalChecks": 32,
"totalTransfers": 243,
"transferTime": 0,
"transferring": [
{
"bytes": 2093056,
"eta": 3,
"group": "global_stats",
"name": "05/IMG_20210505_004616.jpg",
"percentage": 47,
"size": 4438632,
"speed": 602842.3845504231,
"speedAvg": 697392.4997227154
},
{
"bytes": 2093056,
"eta": 2,
"group": "global_stats",
"name": "05/IMG_20210505_004620.jpg",
"percentage": 51,
"size": 4095147,
"speed": 686821.3151093656,
"speedAvg": 697662.1734824803
},
{
"bytes": 2093056,
"eta": 4,
"group": "global_stats",
"name": "05/IMG_20210505_004625.jpg",
"percentage": 49,
"size": 4205666,
"speed": 783087.7730998808,
"speedAvg": 522085.1812636596
},
{
"bytes": 1044480,
"eta": 6,
"group": "global_stats",
"name": "05/IMG_20210505_101246.jpg",
"percentage": 24,
"size": 4319047,
"speed": 390779.1600049532,
"speedAvg": 522084.7776772926
}
],
"transfers": 0
},
"time": "2023-11-28T10:29:43.731521+01:00"
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.