Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1928

GH API calls for homebrew release fail

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.2
    • Affects Version/s: None
    • Component/s: CI, Release
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Iteration Planetarium, Iteration Quasar, Iteration Regolith, Iteration Satellite, Iteration Telescope, Iteration U (Jan 27 - Feb 10), Iteration Venus, Iteration Wormhole
    • Not Needed
    • Developer Tools

      https://parsley.mongodb.com/evergreen/mongosh_draft_publish_release_release_publish_dry_run__v2.3.4_draft.0_24_11_25_20_21_31/3/task?bookmarks=0%2C17398&selectedLineRange=L17287&shareLine=17287

      [2024/11/27 15:39:39.420] RequestError [HttpError]: request to https://api.github.com/repos/Homebrew/homebrew-core/contents/Formula%2Fm%2F<REDACTED:notary_signing_key_name>.rb?ref=master failed, reason: write EPIPE
      [2024/11/27 15:39:39.420]     at /data/mci/e9f282215044bd684f7b227fb2edcebe/src/node_modules/@octokit/request/dist-src/fetch-wrapper.js:92:15
      [2024/11/27 15:39:39.420]     at processTicksAndRejections (node:internal/process/task_queues:95:5)
      [2024/11/27 15:39:39.420]     at async GithubRepo.getFileContent (/data/mci/e9f282215044bd684f7b227fb2edcebe/src/node_modules/@mongodb-js/<REDACTED:macos_notary_key>-github-repo/src/github-repo.ts:331:22)
      [2024/11/27 15:39:39.420]     at async generateUpdatedFormula (/data/mci/e9f282215044bd684f7b227fb2edcebe/src/packages/build/src/homebrew/generate-formula.ts:9:26)
      [2024/11/27 15:39:39.420]     at async publishToHomebrew (/data/mci/e9f282215044bd684f7b227fb2edcebe/src/packages/build/src/homebrew/publish-to-homebrew.ts:21:27)
      [2024/11/27 15:39:39.420]     at async runPublish (/data/mci/e9f282215044bd684f7b227fb2edcebe/src/packages/build/src/run-publish.ts:86:3)
      [2024/11/27 15:39:39.420]     at async release (/data/mci/e9f282215044bd684f7b227fb2edcebe/src/packages/build/src/release.ts:114:5)
      [2024/11/27 15:39:39.420]     at async /data/mci/e9f282215044bd684f7b227fb2edcebe/src/packages/build/src/index.ts:63:7 {
      [2024/11/27 15:39:39.420]   status: 500,
      [2024/11/27 15:39:39.420]   request: {
      [2024/11/27 15:39:39.420]     method: 'GET',
      [2024/11/27 15:39:39.420]     url: 'https://api.github.com/repos/Homebrew/homebrew-core/contents/Formula%2Fm%2F<REDACTED:notary_signing_key_name>.rb?ref=master',
      [2024/11/27 15:39:39.420]     headers: {
      [2024/11/27 15:39:39.420]       accept: 'application/vnd.github.v3+json',
      [2024/11/27 15:39:39.420]       'user-agent': 'octokit-rest.js/17.11.2 octokit-core.js/2.5.4 Node.js/20.18.1 (Linux 5.4; x64)',
      [2024/11/27 15:39:39.420]       authorization: 'token [REDACTED]'
      [2024/11/27 15:39:39.420]     },
      [2024/11/27 15:39:39.420]     request: { hook: [Function: bound bound register] }
      [2024/11/27 15:39:39.420]   }
      [2024/11/27 15:39:39.420] }
      

      Since this only failed for the dry run version, it might be worth checking if our Octokit HTTP hook requires updates: https://github.com/mongodb-js/mongosh/blob/a0c8ca5399066e385b642576c3779426f50d2edc/packages/build/src/release.ts#L68-L80

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: