Repository navigation
fix: repair shared sync gate failures #2722
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1283,6 +1283,7 @@ jobs: | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| sparse-checkout: | | ||
| .github/scripts/error_classifier.js | ||
| .github/scripts/github-api-with-retry.js | ||
| .github/scripts/token_load_balancer.js | ||
| sparse-checkout-cone-mode: false | ||
|
|
@@ -1353,6 +1354,7 @@ jobs: | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| sparse-checkout: | | ||
| .github/scripts/error_classifier.js | ||
| .github/scripts/github-api-with-retry.js | ||
| .github/scripts/token_load_balancer.js | ||
| sparse-checkout-cone-mode: false | ||
|
|
@@ -1366,10 +1368,13 @@ jobs: | |
| const fs = require('fs'); | ||
| const retryPath = './.github/scripts/github-api-with-retry.js'; | ||
| const { createTokenAwareRetry } = fs.existsSync(retryPath) | ||
| ? require(retryPath) | ||
| : { createTokenAwareRetry: async () => ({ | ||
| ? require(retryPath) | ||
| : { createTokenAwareRetry: async () => ({ | ||
| withRetry: (fn) => fn(github), | ||
| paginateWithRetry: (method, params) => github.paginate(method, params) | ||
| paginateWithRetry: async (method, params) => { | ||
| const response = await method({ ...params, per_page: params?.per_page || 100 }); | ||
| return response.data || []; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When this fallback is used, such as in a consumer checkout that does not materialize Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🤖 Prompt for AI Agents |
||
| } | ||
| }) }; | ||
| const { withRetry, paginateWithRetry } = await createTokenAwareRetry({ github, core }); | ||
|
|
||
|
|
@@ -1551,6 +1556,7 @@ jobs: | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| sparse-checkout: | | ||
| .github/scripts/error_classifier.js | ||
| .github/scripts/github-api-with-retry.js | ||
| .github/scripts/runtime_ac_merge_guard.js | ||
| .github/scripts/token_load_balancer.js | ||
|
|
@@ -1570,7 +1576,10 @@ jobs: | |
| : { | ||
| createTokenAwareRetry: async () => ({ | ||
| withRetry: (fn) => fn(github), | ||
| paginateWithRetry: (method, params) => github.paginate(method, params), | ||
| paginateWithRetry: async (method, params) => { | ||
| const response = await method({ ...params, per_page: params?.per_page || 100 }); | ||
| return response.data || []; | ||
| }, | ||
|
stranske marked this conversation as resolved.
Resolved
|
||
| }), | ||
| }; | ||
| const { withRetry, paginateWithRetry } = await createTokenAwareRetry({ github, core }); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.