Git Product home page Git Product logo

Comments (11)

derrickstolee avatar derrickstolee commented on June 11, 2024 1

Scalar on Linux and macOS runs git maintenance start, part of Git's maintenance feature. It schedules maintenance tasks according to the maintenance.strategy = incremental config option.

You can inspect the way Git schedules its process runs by running crontab -l on Linux.

from scalar.

ykoehler avatar ykoehler commented on June 11, 2024

That is quite interesting... My 'crontab -l' contains nothing related to git, I will investigate further.

from scalar.

ykoehler avatar ykoehler commented on June 11, 2024

I think there is a problem with "scalar register", the git config of my repo was modified, but no task appeared under crontab -l. I then executed "git maintenance start" and those tasks then showed up. Likely, 'scalar register' is missing that call, or documentation is unclear that we need to execute 'git maintenance start' in addition to 'scalar register' to get things going.

from scalar.

derrickstolee avatar derrickstolee commented on June 11, 2024

@ykoehler: that is interesting. scalar register should definitely be doing that, I think. Could you do a few things for me?

  1. Run scalar version.
  2. Run git version.
  3. Run GIT_TRACE2_PERF=$(pwd)/trace2.txt scalar register and then attach that trace2.txt file here. Feel free to remove any identifiers from that file. Alternatively, send it to me via email: @github.com.

Thanks!

from scalar.

ykoehler avatar ykoehler commented on June 11, 2024

Running on CentOS7

$ scalar version
scalar 0.2.173.2
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
$ GIT_TRACE2_PERF=$(pwd)/trace2.txt scalar register
Successfully registered repo at '/work/ion/officeconnect-portal-manager'
$ git --version
git version 2.30.1
$ cat ~/.gitconfig
[user]
name = Yannick Koehler
[pull]
rebase = true
[diff]
submodule = log
[status]
submodulesummary = 1
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[git-p4]
largeFileSystem = GitLFS
largeFileThreshold = 100m

from scalar.

derrickstolee avatar derrickstolee commented on June 11, 2024

Hi, @ykoehler. It appears your trace upload got mangled somehow. Could you try that again?

Also, it looks like you are building Scalar from source, is that right? (If not, then we made a mistake when building the installer.)

from scalar.

ykoehler avatar ykoehler commented on June 11, 2024

Hi, yes, I was building scalar from source, since there is no RPM for Scalar for CentOS7.
trace2.txt

from scalar.

derrickstolee avatar derrickstolee commented on June 11, 2024

Thanks so much for this report, @ykoehler. I forgot to add to our logic in Scalar that detects if the feature is available for the non-.vfs. versions of Git (those versions are available at https://github.com/microsoft/git/releases).

The fix is in #503. You'll need to upgrade to Git 2.31.0 before it will work, since that is the first release where all platforms had working background maintenance.

from scalar.

derrickstolee avatar derrickstolee commented on June 11, 2024

(Just a note that this issue is closed because the fix is in the main branch. It has not been released yet.)

from scalar.

ykoehler avatar ykoehler commented on June 11, 2024

Great, but... somehow I can do "git maintenance start" using 2.30.1 and it adds the cron job and seems to be working nicely... But, I will seek out to upgrade my git client.

from scalar.

derrickstolee avatar derrickstolee commented on June 11, 2024

The issue is that the macOS and Windows versions of git maintenance start were not ready in v2.30.x. They were available in v2.31.0, and that is now out so there is only a slight value in picking out that one major version on one platform. Thanks for understanding.

from scalar.

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.