You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nixos/utils: add regressions tests to genJqSecretsReplacement - #495933
My goal of adding this, on top of just for the sake of good software engineering practices, is because I will create a subsequent PR that modifies the internals of genJqSecretsReplacement to actually work on any type of files, not just JSON. Having those regression tests will make any such kind of modification much more safe in the future.
Did I do something wrong in the nested tests? I don’t know what to expect for CI here.
You added an attribute utils to the list of tests. The CI jobs you see are deducing the attributes to check from the commit message (or was it PR title?), so they end up with nixos/utils here, which isn't a valid derivation.
Your commit message seems fine. One can manually ask ofborg to run one or more specific tests, which I did in my last comment above.
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
6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS10.rebuild-darwin: 0This PR does not cause any packages to rebuild on Darwin.10.rebuild-linux: 0This PR does not cause any packages to rebuild on Linux.12.approvals: 2This PR was reviewed and approved by two persons.
5 participants
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.
This PR adds regression tests for all 3 variant calls of
genJqSecretsReplacementI could find:quotes = true && loadCredentials = false(default)quotes = false && loadCredentials = falseloadCredentials = trueMy goal of adding this, on top of just for the sake of good software engineering practices, is because I will create a subsequent PR that modifies the internals of
genJqSecretsReplacementto actually work on any type of files, not just JSON. Having those regression tests will make any such kind of modification much more safe in the future.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.