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

Fix GH_CLIENT usage in runTests test #3638

Merged
merged 1 commit into from
Nov 9, 2019

Conversation

rockymeza
Copy link
Contributor

@rockymeza rockymeza commented Nov 8, 2019

Other notes:

The getReleases method was renamed to listReleases in version 16 of
the @octokit/rest package (https://github.com/octokit/rest.js/releases/tag/v16.0.1 first item
of breaking changes). flow-typed upgraded from 15.12.1 to 16.33.1
in recently and that's when the bug was probably introduced.

The bug is not triggered in Travis CI because:

  1. the flow binaries are probably all cached and you don't need to
    download them
  2. the code that downloads them is in a try/catch block. If the
    download fails, the tests default to using the cached binaries. This
    works for people who have run the tests before, but not for
    newcomers like me.

The `getReleases` method was renamed to `listReleases` in version 16 of
the @octokit/rest package [0]. flow-typed upgraded from 15.12.1 to 16.33.1
in recently [1] and that's when the bug was probably introduced.

The bug is not triggered in Travis CI because:

1.  the flow binaries are probably all cached and you don't need to
    download them
2.  the code that downloads them is in a try/catch block. If the
    download fails, the tests default to using the cached binaries. This
    works for people who have run the tests before, but not for
    newcomers like me.

[0]: https://github.com/octokit/rest.js/releases/tag/v16.0.1 (first item
     of breaking changes)
[1]: fed266b
Copy link
Member

@pascalduez pascalduez left a comment

Choose a reason for hiding this comment

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

Thanks!

@pascalduez pascalduez merged commit 63c19a5 into flow-typed:master Nov 9, 2019
@rockymeza rockymeza deleted the fix-listReleases branch November 11, 2019 15:06
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.

None yet

2 participants