-
Notifications
You must be signed in to change notification settings - Fork 71
Bug 1943284: Fix nil function in buildContext return values #150
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
Bug 1943284: Fix nil function in buildContext return values #150
Conversation
* fix nil function in buildcontext Signed-off-by: Jose R. Gonzalez <[email protected]> * add TestBuildContext in indexer Signed-off-by: Jose R. Gonzalez <[email protected]> Upstream-repository: operator-registry Upstream-commit: 673849b334b03fb7776cd9e741403cfe5bf16cfd
/bugzilla-refresh |
@timflannagan: This pull request references Bugzilla bug 1926522, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@timflannagan: This pull request references Bugzilla bug 1926522, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@timflannagan: This pull request references Bugzilla bug 1943284, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
1 similar comment
/retest |
/test e2e-upgrade |
/retest |
@timflannagan: An error was encountered adding this pull request to the external tracker bugs for bug 1943284 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details. Full error message.
JSONRPC error 32000: Red Hat Bugzilla's database reported a query serialization error. Most likely this occurred because another user or process attempted to change the same data that you were attempting to change. Please press Back and retry the transaction.
Please contact an administrator to resolve this issue, then request a bug refresh with In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
whoops 😆 |
@timflannagan: This pull request references Bugzilla bug 1943284. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@timflannagan: This pull request references Bugzilla bug 1943284, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
1 similar comment
/retest |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: njhale, timflannagan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -396,6 +396,9 @@ func copyDatabaseTo(databaseFile, targetDir string) (string, error) { | |||
} | |||
|
|||
func buildContext(generate bool, requestedDockerfile string) (buildDir, outDockerfile string, cleanup func(), err error) { | |||
// set cleanup to a no-op until explicitly set | |||
cleanup = func() {} |
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.
clients should probably be checking return values for nil
before using them.
@@ -83,3 +83,61 @@ func TestGeneratePackageYaml(t *testing.T) { | |||
|
|||
_ = os.RemoveAll("./package.yaml") | |||
} | |||
|
|||
func TestBuildContext(t *testing.T) { | |||
// TODO(): Test does not currently have a clean way |
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.
those functions could be improved by using the new fs.FS
abstractions -- then it would be easier to test
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@timflannagan: All pull requests linked via external trackers have merged: Bugzilla bug 1943284 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Jose R. Gonzalez [email protected]
Signed-off-by: Jose R. Gonzalez [email protected]
Upstream-repository: operator-registry
Upstream-commit: 673849b334b03fb7776cd9e741403cfe5bf16cfd