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

bug: Check run id can be bigger than MAX_INT #143

Conversation

vootelerotov
Copy link
Contributor

Problem

Ran into an issue where the response I got when using ChecksClient::getCheckRuns could not be deserialized, due to the id being too big to fit into Integer.

The Github API definition does not specify the number of bits the ID is, see here. I am guessing that under integer they have wider definition in mind than Java 32-bit Integer.

Solution

Integer -> Long.

Notes

Also did some clean-up, to have consistency in file names in the test file folder.

Not sure if it can be bigger than long either, but this does not make things worse and solves the issue I ran into.
…consistency

Every other file in the same folder uses dashes, lets go with them.
@vootelerotov vootelerotov changed the title Bug/check run id can be bigger than max int bug: Check run id can be bigger than MAX_INT Aug 1, 2023
Copy link
Member

@dziemba dziemba left a comment

Choose a reason for hiding this comment

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

Thanks!

@dziemba dziemba merged commit 606ddb1 into spotify:master Aug 1, 2023
1 check passed
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