Code Monkey home page Code Monkey logo

Comments (7)

lupusA avatar lupusA commented on June 9, 2024 2

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.

lupusA avatar lupusA commented on June 9, 2024

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
image

from kopia.

julio-lopez avatar julio-lopez commented on June 9, 2024

@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.

julio-lopez avatar julio-lopez commented on June 9, 2024

@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.

lupusA avatar lupusA commented on June 9, 2024

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.

lupusA avatar lupusA commented on June 9, 2024

There is a errornous run attached:
run.txt

from kopia.

julio-lopez avatar julio-lopez commented on June 9, 2024

@lupusA Thanks for finding a failed run https://github.com/kopia/kopia/actions/runs/5470716647/jobs/9961110427

from kopia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.