RHINENG-22223: fix build failures - #1952
Merged
Merged
Conversation
fixing 23.03 # golang.org/x/tools/internal/tokeninternal 23.03 /go/pkg/mod/golang.org/x/tools@v0.19.0/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)
[test] | === FAIL: listener TestGetRepoPath (0.00s) [test] | upload_test.go:423: [test] | Error Trace: /go/src/app/listener/upload_test.go:423 [test] | Error: Expected nil, but got: couldn't parse repo mirrorlist or base_url: parse "https://rhui.redhat.com[": missing ']' in host [test] | Test: TestGetRepoPath
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates tooling in the Docker build to a newer gotestsum version and corrects a test fixture URL in upload tests to fix build and test failures. Flow diagram for test execution with updated gotestsum and upload test URLflowchart LR
A["Developer pushes code"] --> B["CI triggers build"]
B --> C["Docker builds test image"]
C --> D["Install test tools including 'gotestsum' v1.13.0"]
D --> E["Run unit tests via 'gotestsum'"]
E --> F["Execute listener upload tests with corrected fixture URL"]
F --> G{"All tests pass?"}
G -- "Yes" --> H["Publish test results and mark build as successful"]
G -- "No" --> I["Publish failures and mark build as failed"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- By changing the test case from an invalid URL with '[' to a valid URL ending in '/', the test no longer verifies error handling for malformed URLs; consider adding a separate test case that still exercises the failure path so both valid and invalid mirrorlist formats are covered.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- By changing the test case from an invalid URL with '[' to a valid URL ending in '/', the test no longer verifies error handling for malformed URLs; consider adding a separate test case that still exercises the failure path so both valid and invalid mirrorlist formats are covered.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1952 +/- ##
=======================================
Coverage 58.83% 58.83%
=======================================
Files 131 131
Lines 8407 8407
=======================================
Hits 4946 4946
Misses 2927 2927
Partials 534 534
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
Update tooling version and correct a test fixture for repository URL handling.
Build:
Tests: