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
DRY out script cleanup code #14116
DRY out script cleanup code #14116
Conversation
8c1675d
to
f8940f0
Compare
Lgtm merge at will
|
b8c8683
to
ed72c67
Compare
We have migrated to Go 1.7+ and as such we no longer need to be enabling swap space for our builds. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
We can tell from the raw test output file which type of test was used to create the output, so we do not need users to have to specify which type of parsing and report they would like. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Almost every single cleanup function trapped on exit for our scripts was taking the same actions in the same order. We can break that out into a standalone function under `hack/lib` that contains a superset of all the cleanup steps used, provided that we make sure each individual clean up step can gracefully handle the case where it is not needed or does not have any work to do. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
ed72c67
to
8c7f1a7
Compare
[test][merge] |
Evaluated for origin test up to 8c7f1a7 |
Evaluated for origin merge up to 8c7f1a7 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1374/) (Base Commit: 012de50) |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/625/) (Base Commit: a2e505b) (Image: devenv-rhel7_6228) |
This kills my docker containers when i run
update-generated-swagger-spec has nothing to do with docker containers or etcd data directory. |
Since we start a server for Swagger anyway I'm pretty sure container cleanup was pre-existing. We haven't changed the logic for which containers we target for cleanup. Which ones are you seeing killed? |
Disable swap in Go build
We have migrated to Go 1.7+ and as such we no longer need to be enabling
swap space for our builds.
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
Automatically determine which type of jUnit report to generate
We can tell from the raw test output file which type of test was used to
create the output, so we do not need users to have to specify which type
of parsing and report they would like.
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
DRY out script cleanup code
Almost every single cleanup function trapped on exit for our scripts was
taking the same actions in the same order. We can break that out into a
standalone function under
hack/lib
that contains a superset of all thecleanup steps used, provided that we make sure each individual clean up
step can gracefully handle the case where it is not needed or does not
have any work to do.
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
/cc @smarterclayton PTAL
[test]