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

breakfix: large repositories #22

Open
bertvannuffelen opened this issue Feb 27, 2023 · 0 comments
Open

breakfix: large repositories #22

bertvannuffelen opened this issue Feb 27, 2023 · 0 comments
Assignees

Comments

@bertvannuffelen
Copy link

Describe the issue

I have a repository with a large history.
Namely https://github.com/Informatievlaanderen/OSLO-Generated.git

When inspecting the git pulling process, and the logs then

  1. the repo gets pulled (I see the /tmp/mygit/.git directory growing) but no files are shown in the /tmp/mygit
  2. the startup of caddy is stalled (probably for some processing is happening)
{"level":"info","ts":1677500520.008053,"msg":"using provided configuration","config_file":"/config/Caddyfile","config_adapter":""}
{"level":"warn","ts":1677500520.009864,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/config/Caddyfile","line":2}
{"level":"info","ts":1677500520.0127003,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1677500520.0130904,"logger":"git","msg":"provisioning app instance","app":"git"}

Configuration

{
        auto_https off

        order request_id before header
        order git before respond



        git {
                repo mygit {
                        base_dir /tmp
                        url  {$REPOSITORY}
                        branch {$BRANCH}
                        depth 1
                        post pull exec {
                            name Pager
                            command /bin/echo
                            args "pulled repo"
                            }
                }
        }
}

Version Information

latest builds

Expected behavior

For smaller sized repositories the stalled processing is followed by logs like

 {"level":"info","ts":1677500409.5293095,"logger":"http.handlers.git","msg":"validated plugin instance","instance_name":"git-mygit"}
 {"level":"info","ts":1677500409.531182,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
 {"level":"info","ts":1677500409.5374835,"logger":"tls","msg":"finished cleaning storage units"}
 {"level":"info","ts":1677500409.5388982,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
 {"level":"info","ts":1677500409.539357,"msg":"serving initial configuration"}

And then caddy is functioning fine.

So my question is

  • what is the reason for this delay (it grows in the size of the repo) ?
  • What can I do about it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants