Performance issue in "Edit repository" option due to dependency on the repository selector to be loaded

XMLWordPrintable

    • 1
    • Severity 2 - Major
    • 4
    • Accessibility

      Issue Summary

      For Github linked/plan repositories, the edit repository option page(admin/configureLinkedRepositories.action) waits for the complete repository to load to be able to make any configuration changes. For the github account with large number of repositories/branches, this can be very slow(~2-5 mins).

      Below thread appears to be stuck till all repo list is loaded:

      "http-nio-8085-exec-1 url: /rest/git/latest/gh/repositories/; user: aklevleeva@aligntech.com" #618 [1548] daemon prio=5 os_prio=0 cpu=1772552.47ms elapsed=439884.16s tid=0x00007f5966645150 nid=1548 runnable  [0x00007f56ba0f6000]
         java.lang.Thread.State: RUNNABLE
         .........
          at com.atlassian.bamboo.rest.utils.RESTCall.execute(RESTCall.java:174)
      	at com.atlassian.bamboo.plugins.github.accessor.GitHubAccessor.getStringFromUrl(GitHubAccessor.java:525)
      	at com.atlassian.bamboo.plugins.github.accessor.GitHubAccessor.getJSONArrayResponseFromUrl(GitHubAccessor.java:493)
      	at com.atlassian.bamboo.plugins.github.accessor.GitHubAccessor.getPageableResults(GitHubAccessor.java:340)
      	at com.atlassian.bamboo.plugins.github.accessor.GitHubAccessorWithTokenAuth.getFoldedRepositoryListFromGitHubApi(GitHubAccessorWithTokenAuth.java:66)
      	at com.atlassian.bamboo.plugins.github.accessor.GitHubAccessorWithTokenAuth.listRepositories(GitHubAccessorWithTokenAuth.java:60)
      	at com.atlassian.bamboo.plugins.github.accessor.GitHubAccessorWithTokenAuth.getAccessibleRepositories(GitHubAccessorWithTokenAuth.java:46)
      	at com.atlassian.bamboo.plugins.git.rest.resource.GitHubResource.getAvailableRepositories(GitHubResource.java:122) 

      Steps to Reproduce

      1. Upgrade/Install your Bamboo installation to 12.1.9
      2. Configure a github repository which has a large number of repositories as linked/plan repository in Bamboo and save the repository settings.
      3. Go back to the linked/plan repo to edit the configurations. The admin/configureLinkedRepositories.action page waits for the all the repositories and branch details to be fetched from GitHub before making any configuration changes

      Expected Results

      The source repo/ branch should be pre-populated as default values which was previously configured and not loaded every time.

      Actual Results

      The source repo/ branch are not shown as default values and need to be loaded every time. It is a problem to wait until the repo is fully loaded in order to update other settings.

      Workaround

      There is currently no workaround and we have to wait for the repo/branch to load first to make any changes in the linked/plan repo.

              Assignee:
              Mateusz Szmal
              Reporter:
              Ayrijit Swain
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: