Skip to content

Conversation

@justynigam
Copy link

Summary

Added timeout parameters to all HTTP requests to prevent indefinite hangs.

Changes

  • 5 files modified
  • Added timeouts: 30s-300s depending on use case
  • All tests passed

Files

  • submit-debuginfo-statistics-to-lnt.py (30s)
  • submit-lldb-statistics-to-lnt.py (30s)
  • process_llvm_commits.py (30s)
  • build.py (60s)
  • gcs.py (300s)

Testing

✅ Syntax validation passed
✅ Timeout parameters verified
✅ Behavior testing passed

Added timeout parameters to prevent indefinite hangs when remote
servers become unresponsive. This improves reliability and prevents
resource exhaustion in CI/CD pipelines.
Changes:
- submit-debuginfo-statistics-to-lnt.py: Added 30s timeout to POST requests
- submit-lldb-statistics-to-lnt.py: Added 30s timeout to POST requests
- process_llvm_commits.py: Added 30s timeout to GitHub GraphQL API calls
- build.py: Added 60s timeout to artifact downloads
- gcs.py: Added 300s timeout for large compiler binary downloads
This fix addresses the issue where HTTP requests without timeouts could
hang indefinitely, causing build/CI failures and resource exhaustion.
Copilot AI review requested due to automatic review settings December 23, 2025 11:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds timeout parameters to all HTTP requests across the codebase to prevent indefinite hangs during network operations.

  • Added appropriate timeout values based on operation type: 30s for API submissions, 60s for standard downloads, and 300s for large compiler downloads
  • Modified 5 files with HTTP requests that previously lacked timeout parameters
  • All changes maintain existing functionality while improving reliability

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
zorg/jenkins/jobs/util/submit-lldb-statistics-to-lnt.py Added 30-second timeout to LNT statistics submission requests
zorg/jenkins/jobs/util/submit-debuginfo-statistics-to-lnt.py Added 30-second timeout to debug info statistics submission requests
zorg/jenkins/build.py Added 60-second timeout to HTTP download function
premerge/ops-container/process_llvm_commits.py Added 30-second timeout to GitHub GraphQL API queries
llvmbisect/llvmlab/gcs.py Added 300-second (5 minute) timeout for large compiler downloads with explanatory comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant