From 8d4141b41e6cc1c57cd73ce16e39653ad24193bb Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 21 Jun 2026 17:11:07 +0600 Subject: [PATCH 1/2] Pin firebase-tools version in preview-website workflow firebase-tools@latest (15.22.0) fails service-account authentication with a 'Premature close' error when fetching the OAuth2 token, breaking the preview deploy. Pin to a known-good release. Signed-off-by: Tamal Saha --- .github/workflows/preview-website.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/preview-website.yml b/.github/workflows/preview-website.yml index d8bb7e3faa..b74382b6d9 100644 --- a/.github/workflows/preview-website.yml +++ b/.github/workflows/preview-website.yml @@ -62,6 +62,7 @@ jobs: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QA }}' projectId: kubedb-new-e7965 + firebaseToolsVersion: '13.35.1' # target: kubedb-new-e7965 # entryPoint: '.' env: From adcbf0952a8e6167f97397360cb0ee74bc369c0a Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 21 Jun 2026 17:15:53 +0600 Subject: [PATCH 2/2] Pin Node to 22.22.3 to fix firebase preview auth The preview deploy failed with 'Premature close' during firebase service-account auth. Root cause is a Node.js regression (nodejs/node#63989) shipped in Node 22.23.0 and 24.17.0, which breaks keep-alive socket reuse in node-fetch -- the transport used by google-auth-library/gaxios. It is independent of the firebase-tools version. CI was running Node 22.23.0; pin to 22.22.3 (latest known-good) until a fixed Node release lands. Signed-off-by: Tamal Saha --- .github/workflows/preview-website.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-website.yml b/.github/workflows/preview-website.yml index b74382b6d9..0a7f6a9e92 100644 --- a/.github/workflows/preview-website.yml +++ b/.github/workflows/preview-website.yml @@ -29,8 +29,11 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '22' - check-latest: true + # Pin to 22.22.x: Node 22.23.0 / 24.17.0 ship a keep-alive socket + # regression (nodejs/node#63989) that breaks node-fetch, causing + # firebase auth to fail with "Premature close". 22.22.x is the + # latest known-good release. + node-version: '22.22.3' - name: Install yq run: | @@ -62,7 +65,6 @@ jobs: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QA }}' projectId: kubedb-new-e7965 - firebaseToolsVersion: '13.35.1' # target: kubedb-new-e7965 # entryPoint: '.' env: