#8328 timeouts with LastCommit build

unreleased
open
nobody
None
General
nobody
2019-08-27
2019-08-27
No

I've had to lower the lcd_timeout in forge-allura's .ini file to avoid 500 errors on /p/allura/git/ci/master/tree/ But that leaves us with "unknown" last commit info.

Here's a timermiddleware instrumentation log from when it was at 15 sec.

{
    "time": "2019-08-26 14:38:51,977",
    "level": "INFO ",
    "name": "stats",
    "message": {
        "url": "/p/allura/git/ci/master/tree/",
        "uptime": 110,
        "call_counts": {
            "git_tool.commit": 1,
            "git_tool.open_blob": 1,
            "mongo": 294,
            "repo.Commit.get_tree": 2,
            "git_tool._get_refs": 2,
            "repo.Commit.set_context": 3,
            "git_tool.is_empty": 849,
            "ming": 371,
            "markdown": 1,
            "repo.LastCommit.get": 1,
            "git_tool.paged_diffs": 1,
            "repo.Blob.open": 1,
            "repo.Commit.shorthand_id": 3,
            "repo.Tree.__repr__": 5,
            "git_tool.__init__": 1,
            "repo.Commit.__repr__": 10,
            "repo.Tree._lcd_map": 1,
            "git_tool.rev_parse": 2,
            "sidebar": 3,
            "jinja": 1,
            "repo.Tree.path": 2,
            "git_tool.shorthand_for_commit": 3,
            "repo.Commit.paged_diffs": 1,
            "repo.Commit.get_path": 1,
            "total": 1,
            "git_tool._iter_commits_with_refs": 2,
            "repo.Tree.set_context": 2,
            "git_lib.log": 3,
            "repo.LastCommit._build": 1,
            "git_lib.rev_parse": 3,
            "git_tool.get_changes": 1,
            "repo.LastCommit._last_commit_id": 1,
            "repo.Tree.__getitem__": 2,
            "git_tool.symbolics_for_commit": 1,
            "git_tool.log.next": 3,
            "repo.Commit.url": 2,
            "git_tool.last_commit_ids": 1,
            "git_tool.log": 2,
            "git_tool.url_for_commit": 24,
            "repo.LastCommit.__repr__": 2,
            "repo.Blob.__init__": 1,
            "repo.LastCommit._prev_commit_id": 1,
            "git_tool._object": 1,
            "repo.Tree.readme": 1,
            "repo.Commit._summary": 1,
            "git_tool._iter_commits_with_refs.next": 3,
            "repo.Tree.ls": 1
        },
        "request_category": "git",
        "timings": {
            "git_tool.commit": 2225,
            "git_tool.open_blob": 3322,
            "mongo": 758,
            "repo.Commit.get_tree": 11,
            "git_tool._get_refs": 84,
            "repo.Commit.set_context": 1,
            "git_tool.is_empty": 20,
            "ming": 6418,
            "markdown": 185,
            "repo.LastCommit.get": 15184,
            "repo.Blob.open": 3323,
            "git_tool.paged_diffs": 2497,
            "repo.Commit.shorthand_id": 0,
            "sidebar": 7774,
            "git_tool.__init__": 0,
            "repo.Commit.__repr__": 0,
            "repo.Tree._lcd_map": 66,
            "git_tool.rev_parse": 3,
            "repo.Tree.__repr__": 0,
            "jinja": 27116,
            "repo.Tree.path": 0,
            "git_tool.shorthand_for_commit": 0,
            "repo.Commit.paged_diffs": 2497,
            "repo.Commit.get_path": 1,
            "total": 29519,
            "git_tool._iter_commits_with_refs": 0,
            "repo.Tree.set_context": 0,
            "git_lib.log": 6953,
            "repo.LastCommit._build": 12708,
            "git_lib.rev_parse": 2212,
            "git_tool.get_changes": 2319,
            "repo.LastCommit._last_commit_id": 2466,
            "repo.Tree.__getitem__": 1,
            "git_tool.symbolics_for_commit": 5,
            "git_tool.log.next": 4767,
            "repo.Commit.url": 0,
            "git_tool.last_commit_ids": 5540,
            "git_tool.log": 0,
            "git_tool.url_for_commit": 3,
            "repo.LastCommit.__repr__": 0,
            "repo.Blob.__init__": 0,
            "repo.LastCommit._prev_commit_id": 4805,
            "git_tool._object": 1,
            "repo.Tree.readme": 3337,
            "repo.Commit._summary": 0,
            "git_tool._iter_commits_with_refs.next": 4766,
            "repo.Tree.ls": 15282
        }
    }
}

Discussion


Log in to post a comment.