Skip to content

[V3] updated go and lint version#1532

Closed
Akshay2191 wants to merge 13 commits intomainfrom
update-go-version
Closed

[V3] updated go and lint version#1532
Akshay2191 wants to merge 13 commits intomainfrom
update-go-version

Conversation

@Akshay2191
Copy link
Contributor

Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the supported keywords here in this description (not in the title of the PR).

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@github-actions github-actions bot added chore Pull requests for routine tasks dependencies labels Feb 19, 2026
@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.02%. Comparing base (48f97f4) to head (078cc9f).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1532   +/-   ##
=======================================
  Coverage   85.02%   85.02%           
=======================================
  Files         103      103           
  Lines       13587    13589    +2     
=======================================
+ Hits        11552    11554    +2     
  Misses       1518     1518           
  Partials      517      517           
Files with missing lines Coverage Δ
...er/internal/scraper/accesslog/nginx_log_scraper.go 82.63% <100.00%> (ø)
internal/command/command_plugin.go 70.15% <ø> (ø)
internal/config/config.go 87.71% <100.00%> (ø)
internal/datasource/config/nginx_config_parser.go 79.46% <ø> (ø)
internal/file/file_manager_service.go 74.48% <ø> (ø)
internal/grpc/grpc.go 81.81% <ø> (ø)
internal/resource/resource_service.go 65.49% <ø> (ø)
internal/watcher/health/health_watcher_service.go 89.09% <100.00%> (ø)
...ernal/watcher/instance/instance_watcher_service.go 73.83% <100.00%> (+0.11%) ⬆️
internal/watcher/watcher_plugin.go 72.91% <ø> (ø)
... and 3 more

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48f97f4...078cc9f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Akshay2191 Akshay2191 marked this pull request as ready for review February 20, 2026 11:46
@Akshay2191 Akshay2191 requested a review from a team as a code owner February 20, 2026 11:46

// Assert error
assert.IsType(tt, test.errorType, err)
if test.errorType == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead would something like this work ?

Suggested change
if test.errorType == nil {
if test.errorType != nil {
require.ErrorIs(tt, test.errorType, err)
} else {
require.NoError(tt, err)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Will this change not work with the linter ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did fix the code based on the review comment.

@Akshay2191 Akshay2191 requested a review from aphralG February 20, 2026 13:48
@Akshay2191
Copy link
Contributor Author

Opened a new PR.

@Akshay2191 Akshay2191 closed this Feb 26, 2026
@Akshay2191 Akshay2191 deleted the update-go-version branch February 26, 2026 13:28
@Akshay2191 Akshay2191 restored the update-go-version branch February 26, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants