Skip to content

chore: upgrade dependencies - #35

Merged
hgiasac merged 2 commits into
mainfrom
chore/upgrade-dependencies-20260609
Jun 10, 2026
Merged

chore: upgrade dependencies#35
hgiasac merged 2 commits into
mainfrom
chore/upgrade-dependencies-20260609

Conversation

@hgiasac

@hgiasac hgiasac commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

This pull request makes several updates to dependencies, code style, and build configuration to modernize the project and improve maintainability. The main changes include upgrading to ndc-sdk-go/v2, switching to goenvconf for environment variable handling, updating the base images in the Dockerfile, and enhancing linting rules. Additionally, the release workflow for the forked repository has been removed.

Dependency upgrades and code modernization:

  • Migrated from ndc-sdk-go to ndc-sdk-go/v2 across the codebase, including all API, schema, and utility imports, to ensure compatibility with the latest SDK features and improvements. [1] [2] [3] [4] [5]
  • Replaced usage of utils.NewEnvStringValue with goenvconf.NewEnvStringValue for environment variable configuration in both source and test files, and updated related types and test cases accordingly. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Build and release process:

  • Updated the Dockerfile to use golang:1.26 for building and distroless/static-debian13:nonroot for production, ensuring the project uses up-to-date base images. [1] [2]
  • Removed the .github/workflows/release-fork.yaml workflow, discontinuing the fork-specific release automation.

Linting and code style:

  • Added new linters (gomodguard, goconst, wsl) to .golangci.yml to enforce stricter code quality and consistency.

Minor code and documentation improvements:

  • Corrected and clarified docstrings and comments, such as fixing function names in comments and improving method descriptions. [1] [2] [3]
  • Updated the SDK reference link in README.md to point to the v2 SDK.

Other code enhancements:

  • Improved histogram sub-metric detection logic by using strings.CutSuffix for better clarity and correctness.
  • Switched to using gotel.NewTracer for tracing in the client package. [1] [2]
  • Added a //nolint:gosec comment to a debug log line to suppress a specific linter warning.

Overall, these changes bring the project up to date with the latest dependencies and best practices, improve code quality, and streamline the build and release process.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
github.com/hasura/ndc-prometheus/connector/api 76%
github.com/hasura/ndc-prometheus/connector/client 64%
github.com/hasura/ndc-prometheus/connector 64%
github.com/hasura/ndc-prometheus/connector/internal 66%
github.com/hasura/ndc-prometheus/connector/metadata 89%
Summary 72% (3531 / 4923)

Minimum allowed line rate is 40%

@hgiasac
hgiasac merged commit 9b21b25 into main Jun 10, 2026
2 checks passed
@hgiasac
hgiasac deleted the chore/upgrade-dependencies-20260609 branch June 10, 2026 04:05
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.

1 participant