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 DeploymentStatus IDs Overflowing #2736

Merged
merged 3 commits into from
Jul 3, 2023

Conversation

Cyberboss
Copy link
Contributor

@Cyberboss Cyberboss commented Jun 29, 2023

Resolves #2735


Behavior

Before the change?

Newly created DeploymentStatuses on github.com recently exceeded the limits of a 32-bit signed integer, causing OverflowExceptions to be throw during de-serialization.

After the change?

The de-serialization no longer throws due to the DeploymentStatus.Id field being upgraded to a 64-bit signed integer.

Other information

Was this the reason for the GitHub API outages in the past 48 hours? lmao.

Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
    - [ ] Added the appropriate label for the given change (Not a maintainer)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
    - [ ] No

If Yes, what's the impact:

DeploymentStatus.Id can no longer be safely assigned to an Int32, it's previous type.

Pull request type

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug

@alexkar598
Copy link

This issue broke our production environment

@nickfloyd nickfloyd added Type: Breaking change Used to note any change that requires a major version bump Type: Bug Something isn't working as documented labels Jul 3, 2023
@nickfloyd
Copy link
Contributor

Hey @Cyberboss thank you so much for catching this ❤️ . I am fast-tracking this and will be sending it out the door shortly!

@nickfloyd nickfloyd merged commit d7fd665 into octokit:main Jul 3, 2023
@Cyberboss Cyberboss deleted the FixDeploymentStatuses branch July 4, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Breaking change Used to note any change that requires a major version bump Type: Bug Something isn't working as documented
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG]: Creating or Updating DeploymentStatuses (Environments) throws a 32-bit conversion error
3 participants