-
Notifications
You must be signed in to change notification settings - Fork 124
Fix build status report #1764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build status report #1764
Conversation
- Implemented exponential backoff and increased retries for API requests in `firebase_github.py`. - Added specific handling for 410 errors when downloading artifacts, preventing retries for expired artifacts. - Updated `report_build_status.py` to prioritize newer artifacts and added timeouts for downloads. - Ensured the script falls back to reading GitHub logs if artifacts cannot be downloaded. - Addressed missing dependencies: `python-dateutil`, `progress`, and `attrs`. - Corrected the `--verbosity` flag usage.
Introduced two new environment variables in `integration_tests.yml`: - `logArtifactRetentionDays` set to 90 days for log artifacts. - `binaryArtifactRetentionDays` set to 7 days for binary artifacts (test apps, videos, etc.). Updated all `actions/upload-artifact` steps to use the corresponding environment variable for `retention-days` based on the type of artifact being uploaded. (Previous commit used snake_case; this commit corrects to camelCase for consistency with existing `artifactRetentionDays` variable.)
scripts/gha/firebase_github.py
Outdated
@@ -57,13 +57,15 @@ def set_repo_url(repo): | |||
|
|||
def requests_retry_session(retries=RETRIES, | |||
backoff_factor=BACKOFF, | |||
status_forcelist=RETRY_STATUS): | |||
status_forcelist=RETRY_STATUS, | |||
allowed_methods=frozenset(['GET', 'POST', 'PUT', 'DELETE', 'PATCH'])): # Added allowed_methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment
scripts/gha/firebase_github.py
Outdated
session = requests.Session() | ||
retry = Retry(total=retries, | ||
read=retries, | ||
connect=retries, | ||
backoff_factor=backoff_factor, | ||
status_forcelist=status_forcelist) | ||
status_forcelist=status_forcelist, | ||
allowed_methods=allowed_methods) # Added allowed_methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment
Removed comments related to `allowed_methods` as they were deemed unnecessary.
Removed comments related to `allowed_methods` as they were deemed unnecessary.
Integration test with FLAKINESS (succeeded after retry)Requested by @jonsimantov on commit fb725e9
Add flaky tests to go/fpl-cpp-flake-tracker |
Description
Handle 401 Gone errors, and also increase retention time so logs last 90 days.
Testing
Type of Change
Place an
x
the applicable box:Notes
Release Notes
section ofrelease_build_files/readme.md
.