FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Upgrade dependencies by Voles · Pull Request #288 · semantic-release/github · GitHub

Upgrade dependencies - #288

Closed
Voles wants to merge 14 commits into
semantic-release:masterfrom
Voles:upgrade-deps
Closed

Upgrade dependencies#288
Voles wants to merge 14 commits into
semantic-release:masterfrom
Voles:upgrade-deps

Conversation

Voles commented Sep 24, 2020
edited by hearts Bot
Loading

Copy link
Copy Markdown
  1. Update @octokit/rest to version v18.x (as proposed in 🚧 @octokit/rest v18 #250 (comment))
    The breaking changes in v18.x is the removal of previously deprecated APIs. See their changelog.

  2. Upgrade nock to version v13.x
    I had to add the prerelease: true property to an integration test. The test was failing without it after this upgrade. I'm not sure why, maybe someone can double check this?

  3. Upgrade all other dependencies in the dependencies section. All tests kept passing.

Voles commented Sep 24, 2020
edited by hearts Bot
Loading

Copy link
Copy Markdown
Author

/cc @gr2m here it is 😃

Voles changed the title Upgrade @octokit/rest to v18.x Upgrade dependencies Sep 24, 2020
gr2m self-assigned this Sep 24, 2020
Comment thread test/integration.test.js
target_commitish: options.branch,
name: nextRelease.gitTag,
body: nextRelease.notes,
prerelease: true,

gr2m Sep 24, 2020
edited by hearts Bot
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

hmm that does not look right, I'll have to investigate. Does that only occur with the upgrade of nock 12 to 13?

Voles Sep 25, 2020
edited by hearts Bot
Loading

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@gr2m yes, that's correct.

I've did some more research. On nock v13.0.2, everything still works as expected.
Our tests start failing from nock@13.0.3 onwards.

See the release notes: https://github.com/nock/nock/releases/tag/v13.0.3

The output below is what I get from running the tests with nock@13.0.3

You can see that the body expects prerelease: true, but we have not added that property to our test. https://github.com/semantic-release/github/blob/master/test/integration.test.js#L207

 integration › Publish a release with release information in assets

  Rejected promise returned by test. Reason:

  HttpError (RequestError) {
    attemptNumber: 4,
    headers: {},
    request: {
      body: '{"tag_name":"v1.0.0","name":"v1.0.0","body":"Test release note body","prerelease":true,"draft":true}',
      headers: {
        accept: 'application/vnd.github.v3+json',
        authorization: 'token [REDACTED]',
        'content-type': 'application/json; charset=utf-8',
        'user-agent': 'octokit-rest.js/17.11.2 octokit-core.js/2.5.4 Node.js/12.18.3 (macOS Catalina; x64)',
      },
      method: 'POST',
      request: {
        agent: undefined,
        hook: Function bound bound register {},
      },
      url: 'https://api.github.com/repos/test_user/test_repo/releases',
    },
    retriesLeft: 0,
    status: 500,
    message: `request to https://api.github.com/repos/test_user/test_repo/releases failed, reason: Nock: No match for request {␊
      "method": "POST",␊
      "url": "https://api.github.com/repos/test_user/test_repo/releases",␊
      "headers": {␊
        "accept": [␊
          "application/vnd.github.v3+json"␊
        ],␊
        "user-agent": [␊
          "octokit-rest.js/17.11.2 octokit-core.js/2.5.4 Node.js/12.18.3 (macOS Catalina; x64)"␊
        ],␊
        "authorization": [␊
          "token github_token"␊
        ],␊
        "content-type": [␊
          "application/json; charset=utf-8"␊
        ],␊
        "content-length": [␊
          "100"␊
        ],␊
        "accept-encoding": [␊
          "gzip,deflate"␊
        ],␊
        "connection": [␊
          "close"␊
        ]␊
      },␊
      "body": "{\\"tag_name\\":\\"v1.0.0\\",\\"name\\":\\"v1.0.0\\",\\"body\\":\\"Test release note body\\",\\"prerelease\\":true,\\"draft\\":true}"␊
    }`,
  }

  › }
  › node_modules/@octokit/request/dist-src/fetch-wrapper.js:88:15

  ─

  1 test failed

gr2m Nov 13, 2020
edited by hearts Bot
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm sorry I didn't get back to you yet :( I did update @ocotkit/rest to latest yet, and we will get a new release via #298. Plus we are in the process of enabling renovate to get automated dependency updates again.

gr2m commented Nov 26, 2020
edited by hearts Bot
Loading

Copy link
Copy Markdown
Member

that should be resolved now

gr2m closed this Nov 26, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL