Comments (7)
Hi @julio-lopez,
i found another failed test (https://github.com/kopia/kopia/actions/runs/5471439825/jobs/9962578801)
I manually calculated the sizes from the test and found the edge case for this specific case.
Under rare circumstances, the returned log files have the exact same size as provided by the function call.
fail.txt
from kopia.
Hi @julio-lopez,
can you share your system and go-version? We had a failed test in the past and it was not reproduceable on an older go-version / other system. I am on windows 11, go-version 1.20.4. Here is my result:
Running tool: C:\Program Files\Go\bin\go.exe test -timeout 30s -run ^TestLogFileMaxTotalSize$ github.com/kopia/kopia/internal/logfile
=== RUN TestLogFileMaxTotalSize
=== PAUSE TestLogFileMaxTotalSize
=== CONT TestLogFileMaxTotalSize
=== RUN TestLogFileMaxTotalSize/cli-logs
**[...]**
--- PASS: TestLogFileMaxTotalSize/cli-logs (0.45s)
=== RUN TestLogFileMaxTotalSize/content-logs
**[...]**
--- PASS: TestLogFileMaxTotalSize/content-logs (0.45s)
--- PASS: TestLogFileMaxTotalSize (2.63s)
PASS
ok github.com/kopia/kopia/internal/logfile 2.805s
from kopia.
@lupusA This has failed a few times in the kopia workflows. The issue was filed for tracking and triaging. The fix should be simple if you want to take a crack at it.
from kopia.
@lupusA The setup is whatever is currently configured in the kopia GH workflows
IIRC, this is not specific to Windows. I recall seeing the failure on other platforms as well. This should be testing bug, not an implementation bug.
from kopia.
Hi @julio-lopez,
i've looked at the test and do not see any issues with it. From what i've seen, the test creates a directory structure and the fires two commands. After each command, the directory size is compared with the one before the command.
The test also do not fail every time. In my github workflow runs it was running fine.
I will try to debug it further.
Cheers,
from kopia.
There is a errornous run attached:
run.txt
from kopia.
@lupusA Thanks for finding a failed run https://github.com/kopia/kopia/actions/runs/5470716647/jobs/9961110427
from kopia.
Related Issues (20)
- loading epoch manager index with read-only storage may get stuck
- Snapshots with APPEND ACL fail when checkpoints exist HOT 1
- Could kopia be used for windows system drive image backup? HOT 1
- Middle click to open snapshot in a new window is gone HOT 4
- `TestSnapshot*` fails because `fshasher` compares using "directory sort order" which may differ for restored vs source HOT 6
- Kopia not running actions when snapshot source is a single file.
- S3 retention settings not applied on every objects HOT 5
- kopia server web gui add setting connection repo config file
- [Question] Is it not possible to create a "Per-User" policy via the Kopia UI (Windows)?? HOT 3
- identical snapshots until HOT 3
- Get one blob many times HOT 1
- Entry Point Not Found Discard Virtual Memory when installing HOT 1
- Kopia as a Windows Service HOT 5
- Can't start rclone from kopia under OSX (but rclone without kopia can mount dropbox) HOT 1
- Input/Output error when I mount different snapshot of the same path HOT 1
- [Feature] Ability to give policies names
- tmp-files in sftp-repository. Leftovers after power-loss?
- Set the inital snapshot as a special case so it becomes the first retained snapshot in all retention period sets HOT 4
- --reverse does not work when --storage-stats is used
- Bug? Rclone not terminated after disconnect from repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kopia.