A command-line tool to upload CI build data for historical pull requests in a GitHub repository to Logilica.
- Python 3.6+
 - GitHub personal access token with 
reposcope - Google Cloud Storage client library (
google-cloud-storage) - Requests library
 
- Install required dependencies:
 
pip install -r requirements.txt- Make sure environment variables are set:
 
export GITHUB_TOKEN=your_github_token
export LOGILICA_TOKEN=your_logilica_tokenpython pr_uploader.py --repo owner/repo [options]--repo OWNER/REPO: Repository name in format 'owner/repo' (required)--token TOKEN: GitHub token with repo access (can also set GITHUB_TOKEN env var)--start-pr NUM: Starting PR number to process (default: 1)--end-pr NUM: Ending PR number to process (default: latest PR)--ci-context CONTEXT: CI context to search for (default: ci/prow/e2e)
Upload CI data for all PRs in a repository:
python pr_uploader.py --repo kubernetes/kubernetesUpload CI data for PRs 1000 to 2000:
python pr_uploader.py --repo kubernetes/kubernetes --start-pr 1000 --end-pr 2000Upload CI data for a specific CI context:
python pr_uploader.py --repo kubernetes/kubernetes --ci-context travis-ci/push- The tool fetches PR data from the GitHub API
 - For each PR, it checks for CI status with the specified context
 - When a CI status is found with a target URL pointing to GCS data, it downloads the build data
 - The tool then uploads the CI build data to Logilica using the existing upload function
 
- Currently only supports CI builds with data stored in Google Cloud Storage
 - Rate limiting may apply when processing large numbers of PRs
 - May need customization for different CI systems