Rally Software

 View Only
Expand all | Collapse all

Not getting the changeset information under Defect/Userstory using Github

  • 1.  Not getting the changeset information under Defect/Userstory using Github

    Broadcom Employee
    Posted Mar 12, 2020 06:52 AM
    Hi,
    i had installed the rally bot and able to get the pull request link under UserStory(Connection count=1), but the changeset happen in between is not getting reflected under the changeset tab. 
    After running "python vcs2ac abc.yml" i got below log.

    [2020-03-10 11:12:38 Z] INFO: VCSConnectorRunner._operateService - processing to commence using content from config/abc.yml
    [2020-03-10 11:12:38 Z] INFO: VCSConnectorRunner._operateService - config/abc.yml last modified 2020-03-10 11:12:30 Z, size: 1627 chars
    [2020-03-10 11:12:39 Z] INFO: VCSConnectorRunner._operateService - Time File value 2020-03-07 11:12:39 Z --- Now 2020-03-10 11:12:39 Z
    [2020-03-10 11:12:39 Z] INFO: VCSConnector - Agile Central VCS Connector for GitHub, version 2.0.3
    [2020-03-10 11:12:39 Z] INFO: VCSConnector - Python platform: Windows 10
    [2020-03-10 11:12:39 Z] INFO: VCSConnector - Python version: 3.6.8
    [2020-03-10 11:12:39 Z] INFO: AgileCentralConnection - Initializing AgileCentral connection version 2.0.3
    [2020-03-10 11:12:39 Z] INFO: AgileCentralConnection - Rally WSAPI Version v2.0
    [2020-03-10 11:12:39 Z] INFO: GitHubConnection - Initializing GitHub connection version 2.0.3
    [2020-03-10 11:12:39 Z] INFO: GitHubConnection.connect - Connecting to GitHub
    [2020-03-10 11:12:39 Z] INFO: GitHubConnection.connect - Connected to GitHub server: api.github.com running at version 2017
    [2020-03-10 11:12:39 Z] INFO: GitHubConnection.connect - Url: https://api.github.com:443/graphql
    [2020-03-10 11:12:39 Z] INFO: AgileCentralConnection.connect - Connecting to AgileCentral
    [2020-03-10 11:12:43 Z] INFO: AgileCentralConnection.connect - Connected to Agile Central server: rally1.rallydev.com
    [2020-03-10 11:12:43 Z] INFO: AgileCentralConnection.connect - Workspace: MYORG
    [2020-03-10 11:12:43 Z] INFO: AgileCentralConnection.connect - Project : SAMPLE_Proj
    [2020-03-10 11:12:43 Z] INFO: AgileCentralConnection.connect - 7 sub-projects
    [2020-03-10 11:12:45 Z] INFO: VCSConnector.validate - Connector validation starting
    [2020-03-10 11:12:45 Z] INFO: VCSConnector.validate - AgileCentralConnection validation succeeded
    [2020-03-10 11:12:46 Z] ERROR: GitHubConnection.validate - All repos specified in your config are not found among the accessible repos
    [2020-03-10 11:12:46 Z] INFO: VCSConnector.validate - GitHubConnection validation succeeded
    [2020-03-10 11:12:46 Z] INFO: VCSConnector.validate - Connector validation completed
    [2020-03-10 11:12:46 Z] INFO: VCSConnector - Initialization complete: Delegate connections operational, ready for scan/reflect ops
    [2020-03-10 11:12:46 Z] INFO: AgileCentralConnection.getRecentCommits - Detecting recently added Agile Central Changesets
    [2020-03-10 11:12:46 Z] INFO: AgileCentralConnection.getRecentCommits - recent Changesets query: CommitTimestamp >= 2020-03-07T10:12:38Z
    [2020-03-10 11:12:46 Z] INFO: AgileCentralConnection.getRecentCommits - 0 recently added Agile Central Changesets
    [2020-03-10 11:12:46 Z] INFO: GitHubConnection.getRecentRepositoryActivity - Detecting recently added GitHub commits in the my_GitHub_user_Id organization (on or after 2020-03-07 10:12:38 Z)
    [2020-03-10 11:12:47 Z] INFO: GitHubConnection.getRecentRepositoryActivity - Recent GitHub commits (since 2020-03-07 10:12:38 Z) detected: 0
    [2020-03-10 11:12:47 Z] INFO: VCSConnectorRunner.logServiceStatistics - abc.yml: service run took 8.55 seconds
    [2020-03-10 11:12:47 Z] INFO: VCSConnectorRunner._operateService - No Changesets or PullRequests were added during this run, so the time.file NOT updated.
    [2020-03-10 11:12:47 Z] INFO: VCSConnectorRunner.run - run completed for abc.yml



    I had got the error "[2020-03-10 11:12:46 Z] ERROR: GitHubConnection.validate - All repos specified in your config are not found among the accessible repos" and i had remove return call from github_connection.py. 
    Please let me know how to get this changeset here

    ------------------------------
    Avinash Kumar
    ------------------------------


  • 2.  RE: Not getting the changeset information under Defect/Userstory using Github
    Best Answer

    Broadcom Employee
    Posted Mar 13, 2020 04:24 PM
    Hi Avinash,

    First, I'd like to get clarification because the first line in your post mentions Rallybot.  Rallybot is technically a different integration; are you perhaps meaning to use that?

    Second, it doesn't appear that anything is wrong from the logs, however you do have to include a work item number in your commit message for this connector to know what to link to in Rally.  So a typical message might be something like "Fixed DE1234"

    Third, It sounds like you've done some customization to the connector which isn't supported.  However, that message you were getting means that the repo specified in your connector config couldn't be found.  Often this is due to permissions or a misspelled repo.  This could also explain why you're not seeing any commits.