-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
1.8.0
-
None
-
False
-
-
False
-
-
Description of problem:
Test Purpose: The e2e test Bulk Import plugin › Merge the PR on GitHub and Confirm the Status Updates to 'Added' aims to verify that after a pull request is merged in GitHub, the status of the corresponding repository in the Bulk Import plugin updates to 'Added'.
Failure Message: The test timed out while waiting for the row with text 'bulk-import-1755761165132' to be visible in the "Added repositories" table. The UI displayed "No records found" even after the PR was merged.
Root Cause Analysis: The root cause of the failure is exceeding the GitHub secondary rate limit. The error message "You have exceeded a secondary rate limit. Please wait a few minutes before you try again" indicates that the application was making too many requests to the GitHub API within a short period. This prevented the Bulk Import plugin from successfully retrieving the updated status of the merged PR and updating the UI accordingly. The log also indicates that the "import-read" event succeeded with a 200 status, but this was before the status update was expected.
Screenshot Analysis: The screenshot shows the "Added repositories" table displaying "No records found," confirming that the expected repository status update did not occur.
Impact: This issue prevents users from reliably tracking the status of their bulk import operations. The UI will not accurately reflect the state of merged PRs, leading to confusion and potential errors.
Steps to Reproduce:
1. Run the Bulk Import plugin › Merge the PR on GitHub and Confirm the Status Updates to 'Added' e2e test.
2. Monitor the test execution and observe if the GitHub secondary rate limit is exceeded during the PR merge and status update process.
Image Path: logs/periodic-ci-redhat-developer-rhdh-main-e2e-tests-nightly/1958423959791734784/artifacts/e2e-tests-nightly/redhat-developer-rhdh-nightly/artifacts/showcase-rbac-nightly/test-results/e2e-plugins-bulk-import-Bu-51fc6-he-Status-Updates-to-Added--showcase-rbac/test-failed-1.png
{"level":"error","message":"Obtaining the Access Token Github App with appId: 1008222 failed with HttpError: You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID CAF1:2EBD56:D4D1BF:301E3F9:68A6CA44. - https://docs.github.com/free-pro-team@latest/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits","plugin":"bulk-import","service":"backstage","span_id":"ab0b14b2033a310d","trace_flags":"01","trace_id":"2a29f64171120bbaf11eb7543fde917f"}
{"actor":{"actorId":"user:default/XXXXXXXXX","hostname":"rhdh-rbac-developer-hub-showcase-rbac-nightly.apps.rhdh-4-18-XXXXXXXXX-bggwl.XXXXXXX.devcluster.openshift.com","ip":"::ffff:10.130.0.70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.7258.5 Safari/537.36"},"eventId":"import-read","isAuditEvent":true,"level":"info","message":"bulk-import.import-read","meta":{"queryType":"by-query","responseStatus":200,"search":"bulk-import-1755761165132"},"plugin":"bulk-import","request":{"method":"GET","url":"/api/bulk-import/imports?page=1&size=5&search=bulk-import-1755761165132&sortColumn=repository.name&sortOrder=asc"},"service":"backstage","severityLevel":"medium","span_id":"ab0b14b2033a310d","status":"succeeded","trace_flags":"01","trace_id":"2a29f64171120bbaf11eb7543fde917f"}
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
# <steps>