Skip to content
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

samples for external-account: should acquire ADC for url-sourced creds failed #1779

Closed
flaky-bot bot opened this issue Mar 25, 2024 · 2 comments · Fixed by #1791
Closed

samples for external-account: should acquire ADC for url-sourced creds failed #1779

flaky-bot bot opened this issue Mar 25, 2024 · 2 comments · Fixed by #1791
Labels
flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Mar 25, 2024

Note: #1329 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: fc8dfe9
buildURL: Build Status, Sponge
status: failed

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Mar 25, 2024
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Mar 25, 2024
@danielbankhead
Copy link
Contributor

Extracted error:

<testcase classname="samples for external-account" name="should acquire ADC for url-sourced creds" time="0.28">
<failure>GaxiosError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken: read ECONNRESET at Gaxios._request (/workspace/node_modules/gaxios/build/src/gaxios.js:149:19) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async IdentityPoolClient.getImpersonatedAccessToken (/workspace/build/src/auth/baseexternalclient.js:389:26) at async IdentityPoolClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:317:38) at async IdentityPoolClient.getAccessToken (/workspace/build/src/auth/baseexternalclient.js:165:13) at async IdentityPoolClient.getRequestHeaders (/workspace/build/src/auth/baseexternalclient.js:182:37) at async IdentityPoolClient.requestAsync (/workspace/build/src/auth/baseexternalclient.js:242:36) at async main (/workspace/samples/adc.js:31:15) { config: { url: 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken', method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ya29.d.c0AY_VpZhGxyj3tfMc-7OylqpN6QMt42grmN-Huo_W9t4JNby1MV-wwwPCeSM0suPFRtRUOMYUclhnRNAMXDx5uMxkO1h_tKDG3lBuY9I7N_rjE7KEpAbgYnDCvNruMmNQTHjOPKcGmgLmdr4Xe1CgG_A7sSq3Nwu0d-yidYatVgO-lC1mtgsKNBDzIROs4IU1O812ac3h9TbQqRhZ8DBZq6WqjMa4dKIraUe3eQWRonzIrVrEWHoc4VLSlrRKyyZ5sF8NzEymzlEfG7DU_prnfhWSnXH1a2t2qcEQeyq8j_72gJBcQlZEdSonmZEjOWN27ftdYQM0q2et1w-ag19StCYbihFuHs4lni40iclQhRmNxcTiQ_XjdgkCXKwIDDcw8jOt-aydNABlyXQfS_OxiCk7uGVH3AabUOCUuovuadi6XFWuqFdZ_aADnZ0Ie0vx0QOxZc12MU1I3wiTIg53o37wgH7SuwDBBw4xkm-C9ZhV3EenBHAkgRoaDpegZftli9ntvFoRr-p6gmpdsmS3bDVS3on3SfkvGtKGMb9qIt_cBBTajyV5Z12iA_EvTc3EFz14zedXN0w1I9DrtpQku11SfRpsvqP0xDlYpi9l2v2M72_L3mFi7mI5OSshU5V4IvYYZ4TN1t_qA_1fBjVEYs8ZAnyJoS2JzYA00S9L7dwZ_8VMiZYeWoN2BxpkiwIt5QLf8oaCM1wHuD9ccPmkwO-u8xoe-E2vbyPiMZ_CNRGvnmeyo83h6iMH8Ugbo3mmu1Od3FgL8DNk2zm4vDE2IfnBi9u3jrK96fOTQ5F-1ChqAa3GgDwuWUnhEAr9aRWwotPPiLpNtbtJY6CchpIN860Adixx-8f43mF1FBl4FXgm_vm3Ww7Jl1rfXsb8uiRntuIq8oQ_7uu9crtM3M3kYOb2MYz29dQu8tpv53X2FwW5qmwxV5yfRlXdhun3M02ouMm1Uvx1lZ8optQk5nBxhsJ0wMXlkR1c9p6a5aafZwJ4m83ZnwtZx4_', 'User-Agent': 'google-api-nodejs-client/9.7.0', 'x-goog-api-client': 'gl-node/14.21.3', Accept: 'application/json' }, data: { scope: [Array], lifetime: '3600s' }, responseType: 'json', paramsSerializer: [Function: paramsSerializer], body: '{"scope":["https://www.googleapis.com/auth/cloud-platform"],"lifetime":"3600s"}', validateStatus: [Function: validateStatus], errorRedactor: [Function: defaultErrorRedactor] }, response: undefined, error: FetchError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken: read ECONNRESET at Gunzip.<anonymous> (/workspace/node_modules/node-fetch/lib/index.js:400:12) at Gunzip.emit (events.js:412:35) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { type: 'system', errno: 'ECONNRESET', code: 'ECONNRESET' }, code: 'ECONNRESET', [Symbol(gaxios-gaxios-error)]: '6.3.0' } : expected 'GaxiosError: Invalid response body wh…' to match /DNS Info:/ AssertionError: GaxiosError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken: read ECONNRESET at Gaxios._request (/workspace/node_modules/gaxios/build/src/gaxios.js:149:19) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async IdentityPoolClient.getImpersonatedAccessToken (/workspace/build/src/auth/baseexternalclient.js:389:26) at async IdentityPoolClient.refreshAccessTokenAsync (/workspace/build/src/auth/baseexternalclient.js:317:38) at async IdentityPoolClient.getAccessToken (/workspace/build/src/auth/baseexternalclient.js:165:13) at async IdentityPoolClient.getRequestHeaders (/workspace/build/src/auth/baseexternalclient.js:182:37) at async IdentityPoolClient.requestAsync (/workspace/build/src/auth/baseexternalclient.js:242:36) at async main (/workspace/samples/adc.js:31:15) { config: { url: 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken', method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ya29.d.c0AY_VpZhGxyj3tfMc-7OylqpN6QMt42grmN-Huo_W9t4JNby1MV-wwwPCeSM0suPFRtRUOMYUclhnRNAMXDx5uMxkO1h_tKDG3lBuY9I7N_rjE7KEpAbgYnDCvNruMmNQTHjOPKcGmgLmdr4Xe1CgG_A7sSq3Nwu0d-yidYatVgO-lC1mtgsKNBDzIROs4IU1O812ac3h9TbQqRhZ8DBZq6WqjMa4dKIraUe3eQWRonzIrVrEWHoc4VLSlrRKyyZ5sF8NzEymzlEfG7DU_prnfhWSnXH1a2t2qcEQeyq8j_72gJBcQlZEdSonmZEjOWN27ftdYQM0q2et1w-ag19StCYbihFuHs4lni40iclQhRmNxcTiQ_XjdgkCXKwIDDcw8jOt-aydNABlyXQfS_OxiCk7uGVH3AabUOCUuovuadi6XFWuqFdZ_aADnZ0Ie0vx0QOxZc12MU1I3wiTIg53o37wgH7SuwDBBw4xkm-C9ZhV3EenBHAkgRoaDpegZftli9ntvFoRr-p6gmpdsmS3bDVS3on3SfkvGtKGMb9qIt_cBBTajyV5Z12iA_EvTc3EFz14zedXN0w1I9DrtpQku11SfRpsvqP0xDlYpi9l2v2M72_L3mFi7mI5OSshU5V4IvYYZ4TN1t_qA_1fBjVEYs8ZAnyJoS2JzYA00S9L7dwZ_8VMiZYeWoN2BxpkiwIt5QLf8oaCM1wHuD9ccPmkwO-u8xoe-E2vbyPiMZ_CNRGvnmeyo83h6iMH8Ugbo3mmu1Od3FgL8DNk2zm4vDE2IfnBi9u3jrK96fOTQ5F-1ChqAa3GgDwuWUnhEAr9aRWwotPPiLpNtbtJY6CchpIN860Adixx-8f43mF1FBl4FXgm_vm3Ww7Jl1rfXsb8uiRntuIq8oQ_7uu9crtM3M3kYOb2MYz29dQu8tpv53X2FwW5qmwxV5yfRlXdhun3M02ouMm1Uvx1lZ8optQk5nBxhsJ0wMXlkR1c9p6a5aafZwJ4m83ZnwtZx4_', 'User-Agent': 'google-api-nodejs-client/9.7.0', 'x-goog-api-client': 'gl-node/14.21.3', Accept: 'application/json' }, data: { scope: [Array], lifetime: '3600s' }, responseType: 'json', paramsSerializer: [Function: paramsSerializer], body: '{"scope":["https://www.googleapis.com/auth/cloud-platform"],"lifetime":"3600s"}', validateStatus: [Function: validateStatus], errorRedactor: [Function: defaultErrorRedactor] }, response: undefined, error: FetchError: Invalid response body while trying to fetch https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken: read ECONNRESET at Gunzip.<anonymous> (/workspace/node_modules/node-fetch/lib/index.js:400:12) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { type: 'system', errno: 'ECONNRESET', code: 'ECONNRESET' }, code: 'ECONNRESET', [Symbol(gaxios-gaxios-error)]: '6.3.0' } : expected 'GaxiosError: Invalid response body wh…' to match /DNS Info:/ at Context.<anonymous> (test/externalclient.test.js:392:12) at processTicksAndRejections (internal/process/task_queues.js:95:5)</failure>
</testcase>

@danielbankhead danielbankhead added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Mar 26, 2024
@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Mar 27, 2024
Copy link
Author

flaky-bot bot commented Mar 27, 2024

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (fc8dfe9), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant