-
Notifications
You must be signed in to change notification settings - Fork 187
tests(core): move dpa_interfaces tests to integration suite #5540
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
Open
poroh
wants to merge
1
commit into
NVIDIA:main
Choose a base branch
from
poroh:tests-dpa-interfaces
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 50381
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 50380
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 50379
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 35803
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 13816
🌐 Web query:
Rust Reference private_interfaces lint public function private type alias warning behavior💡 Result:
The
private_interfaceslint in Rust is designed to detect when an item's primary interface includes types that are more private than the item itself [1][2]. This includes situations where a public function uses a private type alias in its signature [3][4]. Key details regarding this behavior include: Reason for the Lint: Using a private type in a public interface creates a "type privacy" violation [5]. Because the private type cannot be named or accessed outside of its module, users of the public function would be unable to interact with the function's signature, effectively rendering the item unusable or leading to compilation errors [1][2]. Scope of "Primary Interface": The lint checks the "primary interface" of an item, which includes parameters and return types, but excludes generic bounds and where clauses [1][2]. Type Aliases and Visibility: - A private type alias is considered part of the item's signature [6][4]. If this alias is used in a public function's signature, the compiler warns (or errors, depending on settings) because the alias is not reachable from outside, preventing external consumers from referencing the full function signature [3][4]. - This behavior is consistent even if the private type alias resolves to a public type [7]. The lint is concerned with the visibility of the naming alias itself within the API contract [4]. Configuration and Behavior: - Theprivate_interfaceslint is warn-by-default in the Rust compiler [5]. - It replaces older, more restrictive "private-in-public" compiler errors, providing a more modern framework for managing type privacy across module boundaries [3]. If you encounter this warning, the standard solution is to either make the type alias public (if it is intended to be part of your public API) or change the function signature to use a public type directly [5].Citations:
Expose a public error type from
process_scout_req_for_test.The public method returns the
pub(crate)aliascrate::CarbideResult. Rust's warn-by-defaultprivate_interfaceslint flags this private alias in the method's return type, which can fail warning-as-error checks. ReturnResult<_, CarbideError>or make the alias public.🤖 Prompt for AI Agents
Sources: Coding guidelines, Path instructions