Skip to content

Conversation

@rayalex
Copy link

@rayalex rayalex commented Mar 31, 2025

What changes are proposed in this pull request?

Implementation uses int(...) for defaults in http timeout configuration, which overflows on linux_arm architecture:

../../../../go/pkg/mod/github.com/databricks/[email protected]/httpclient/api_client.go:68:70: constant 30000000000 overflows int

I've changed it to int64 which also matches time.Duration size.

How is this tested?

PR test suite. Ran build/test locally.


NO_CHANGELOG=true

@rayalex rayalex marked this pull request as ready for review April 3, 2025 08:49
@rayalex rayalex temporarily deployed to test-trigger-is April 3, 2025 09:29 — with GitHub Actions Inactive
~int | ~int64 | ~float64 | ~float32
}

func orDefault[T number](configured, _default T) T {
Copy link
Author

Choose a reason for hiding this comment

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

There are some other users of this function in the package. I opted for generic version so not to change other consumers.

@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1197
  • Commit SHA: 1f654cd8f6eaebe8db6d05b3622c6d41819ba33a

Checks will be approved automatically on success.

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