This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
project.clj
168 lines (167 loc) · 9.28 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
;;
;; Copyright (c) Two Sigma Open Source, LLC
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
(defproject waiter "0.1.0-SNAPSHOT"
:test-paths ["test" "integration"]
:test-selectors {:default (every-pred
(complement :dev)
(complement :explicit)
(complement :integration-fast)
(complement :integration-slow)
(complement :perf))
:explicit :explicit
:integration (every-pred (some-fn :integration-slow :integration-fast) (complement :explicit))
:integration-slow (every-pred :integration-slow (complement :explicit))
:integration-fast (every-pred :integration-fast (complement :explicit))
:integration-heavy (every-pred :resource-heavy (some-fn :integration-slow :integration-fast) (complement :explicit))
:integration-lite (every-pred (complement :resource-heavy) (some-fn :integration-slow :integration-fast) (complement :explicit))
:dev :dev
:perf (every-pred :perf (complement :explicit))}
:dependencies [[bidi "2.1.6"
:exclusions [prismatic/schema ring/ring-core]]
[buddy/buddy-sign "3.1.0"
:exclusions [[commons-codec]]]
;; resolve the cheshire dependency used by buddy and jet
[cheshire "5.10.0"]
[twosigma/courier "1.5.19"
:exclusions [com.google.guava/guava io.grpc/grpc-core]
:scope "test"]
;; avoids the following:
;; WARNING!!! version ranges found for:
;; [com.twosigma.waiter/courier ...] -> [io.grpc/grpc-netty-shaded "1.20.0"] -> [io.grpc/grpc-core "[1.20.0,1.20.0]"]
[io.grpc/grpc-core "1.20.0"
:exclusions [com.google.guava/guava]
:scope "test"]
[twosigma/jet "0.7.10-20220407_144841-gd100014"
:exclusions [org.mortbay.jetty.alpn/alpn-boot]]
[twosigma/clj-http "1.0.2-20180124_201819-gcdf23e5"
:exclusions [commons-codec commons-io org.clojure/tools.reader potemkin slingshot]]
[clj-time "0.15.2"
:exclusions [joda-time]]
[com.google.guava/guava "20.0"] ;; apache curator dependency prevents upgrade to newer versions
[com.taoensso/nippy "2.14.0"
:exclusions [org.clojure/clojure org.clojure/tools.reader]]
[comb "0.1.1"
:exclusions [org.clojure/clojure]]
[digest "1.4.9"
:exclusions [org.clojure/clojure]]
[fullcontact/full.async "1.1.0"
:exclusions [org.clojure/clojure org.clojure/clojurescript org.clojure/core.async]]
[io.dropwizard.metrics/metrics-graphite "3.1.1"
:exclusions [org.slf4j/slf4j-api]]
[joda-time "2.10.6"]
[twosigma/metrics-clojure "2.6.0-20180124_201441-g72cee16"
:exclusions [org.clojure/clojure io.netty/netty org.slf4j/slf4j-api]]
[metrics-clojure-jvm "2.10.0"
:exclusions [io.dropwizard.metrics/metrics-core
io.netty/netty
metrics-clojure
org.clojure/clojure
org.slf4j/slf4j-api]]
[org.apache.curator/curator-framework "2.11.0"
:exclusions [io.netty/netty org.slf4j/slf4j-api]]
[org.apache.curator/curator-recipes "2.11.0"
:exclusions [io.netty/netty org.slf4j/slf4j-api]]
[org.apache.curator/curator-test "2.11.0"
:exclusions [com.google.guava/guava
io.netty/netty]]
[org.apache.curator/curator-x-discovery "2.11.0"
:exclusions [io.netty/netty org.slf4j/slf4j-api]]
[org.clojure/clojure "1.10.3"]
[org.clojure/core.async "1.5.648"
:exclusions [org.clojure/clojure org.clojure/tools.reader]]
[org.clojure/core.memoize "1.0.253"
:exclusions [org.clojure/clojure]]
[org.clojure/data.codec "0.1.1"]
[org.clojure/data.json "1.0.0"]
[org.clojure/data.priority-map "1.1.0"]
[org.clojure/data.zip "1.0.0"]
[org.clojure/tools.cli "1.0.194"]
[org.clojure/tools.logging "1.1.0"]
[org.clojure/tools.namespace "1.0.0"]
[org.clojure/tools.reader "1.3.2"]
[org.coursera/metrics-datadog "1.1.14"
:exclusions [com.fasterxml.jackson.core/jackson-annotations
com.fasterxml.jackson.core/jackson-databind
org.apache.httpcomponents/httpclient]]
[org.slf4j/slf4j-log4j12 "1.7.30"
:exclusions [log4j]]
[potemkin "0.4.5"]
[prismatic/plumbing "0.5.5"]
[prismatic/schema "1.1.12"]
[ring/ring-core "1.8.1"
:exclusions [org.clojure/tools.reader]]
[ring/ring-ssl "0.3.0"
:exclusions [ring/ring-core]]
[ring-basic-authentication "1.0.5"]
[slingshot "0.12.2"]
[try-let "1.3.1"
:exclusions [org.clojure/clojure]]]
:eftest {:report clojure.test/report
:thread-count (or (some-> (System/getenv "LEIN_TEST_THREADS") Integer/parseInt)
(.availableProcessors (Runtime/getRuntime)))}
:resource-paths ["resources"]
:main waiter.main
:plugins [[lein-eftest "0.5.8"]
[lein-exec "0.3.7"]
[test2junit "1.2.2"]]
; In case of kerberos problems, export KRB5_KTNAME=/var/spool/keytabs/$(id -un)
:jvm-opts ["-server"
"-Dsun.security.jgss.lib=/opt/mitkrb5/lib/libgssapi_krb5.so"
"-Djava.security.krb5.conf=/etc/krb5.conf"
"-Dsun.security.jgss.native=true"
"-Dsun.security.krb5.debug=true"
"-Djavax.security.auth.useSubjectCredsOnly=false"
"-Dclojure.core.async.pool-size=64"
~(str "-Dwaiter.logFilePrefix=" (System/getenv "WAITER_LOG_FILE_PREFIX"))
"-XX:+UseG1GC"
"-XX:MaxGCPauseMillis=50"]
:filespecs [{:type :fn
:fn (fn [p]
{:type :bytes :path "git-log"
:bytes (.trim (:out (clojure.java.shell/sh
"git" "rev-parse" "HEAD")))})}]
:profiles {:debug {:jvm-opts
;; enable remote debugger to connect on port 5005
["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"]}
:test {:injections [(require 'waiter.test-helpers)]
:jvm-opts
[~(str "-Dwaiter.test.courier.cmd="
(or (System/getenv "WAITER_TEST_COURIER_CMD")
(.getCanonicalPath (clojure.java.io/file "../containers/test-apps/courier/bin/run-courier-server.sh"))))
~(str "-Dwaiter.test.kitchen.cmd="
(or (System/getenv "WAITER_TEST_KITCHEN_CMD")
(.getCanonicalPath (clojure.java.io/file "../containers/test-apps/kitchen/bin/kitchen"))))
~(str "-Dwaiter.test.nginx.cmd="
(or (System/getenv "WAITER_TEST_NGINX_CMD")
(.getCanonicalPath (clojure.java.io/file "../containers/test-apps/nginx/bin/run-nginx-server.sh"))))
~(str "-Dwaiter.test.sediment.cmd="
(or (System/getenv "WAITER_TEST_SEDIMENT_CMD")
(.getCanonicalPath (clojure.java.io/file "../containers/test-apps/sediment/bin/run-sediment-server.sh"))))]}
:test-console {:jvm-opts
["-Dlog4j.configuration=log4j-console.properties"]}
:test-log {:jvm-opts
["-Dlog4j.configuration=log4j-test.properties"]}
:test-repl {:jvm-opts
["-Dlog4j.configuration=log4j-repl.properties"
"-XX:+PrintGCDetails"
"-XX:+PrintGCTimeStamps"
"-XX:+PrintReferenceGC"
"-XX:+PrintAdaptiveSizePolicy"
"-Xmx512m"
"-Xloggc:log/gc.log"]}
:override-maven {:local-repo ~(System/getenv "WAITER_MAVEN_LOCAL_REPO")}
:uberjar {:aot :all}}
:uberjar-name ~(System/getenv "UBERJAR_NAME"))