Skip to content

fix: gracefully handle missing GCP_CREDENTIALS in dump-ci-stats script#75

Draft
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-failing-jobs
Draft

fix: gracefully handle missing GCP_CREDENTIALS in dump-ci-stats script#75
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-failing-jobs

Conversation

Copilot AI commented Feb 22, 2026

Copy link
Copy Markdown

The Dump GH CI Stats workflow was repeatedly failing on master because GCP_CREDENTIALS is not configured as a secret in this repo, causing JSON.parse('') to throw SyntaxError: Unexpected end of JSON input at startup.

Changes

  • .github/actions/dump-ci-stats-to-gcp-metrics.cjs: Added an early-exit guard before the JSON.parse call — if GCP_CREDENTIALS is absent or blank, the script logs a message and exits cleanly with code 0.
if (!process.env.GCP_CREDENTIALS || process.env.GCP_CREDENTIALS.trim() === '') {
  console.log('GCP_CREDENTIALS not set, skipping metrics upload.');
  process.exit(0);
}
Original prompt

The Copilot coding agent is already working on fixing all failing jobs in your repository (Snapp949/agoric-sdk). Once the agent has analyzed the failures and prepared the pull request, you’ll be able to review, test, and merge the changes.

If you want to manually re-run workflows, you can do so in GitHub’s Actions tab by selecting the workflow and clicking “Re-run jobs.”

Would you like instructions for manually re-running workflows, or do you want to wait for the Copilot agent’s fixes?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Snapp949 <173113150+Snapp949@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix all failing jobs in repository fix: gracefully handle missing GCP_CREDENTIALS in dump-ci-stats script Feb 22, 2026
Copilot AI requested a review from Snapp949 February 22, 2026 09:01
@Snapp949

Snapp949 commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants