mirror of
https://github.com/dbt-labs/dbt-core
synced 2025-12-21 23:01:27 +00:00
Compare commits
1633 Commits
add-except
...
poc/microb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a146bb51a | ||
|
|
79ad0a3243 | ||
|
|
c668846404 | ||
|
|
c4958de166 | ||
|
|
33161a3035 | ||
|
|
471b816dcd | ||
|
|
bef2d20c21 | ||
|
|
2a26fabfdf | ||
|
|
4c7d922a6d | ||
|
|
b03291548a | ||
|
|
a7af3b3831 | ||
|
|
6e4564ab05 | ||
|
|
1aeff2c58f | ||
|
|
601fee0d5f | ||
|
|
88b8b10df1 | ||
|
|
4ea0e1007c | ||
|
|
a309283a7c | ||
|
|
b10fa79ae8 | ||
|
|
37e2725038 | ||
|
|
37fd299ad0 | ||
|
|
a94027acea | ||
|
|
b59c9075e2 | ||
|
|
c215697a02 | ||
|
|
d936a630c1 | ||
|
|
11ee2b9c42 | ||
|
|
64c59476f4 | ||
|
|
2bae05b8ed | ||
|
|
ca163c3d6e | ||
|
|
9a796aa202 | ||
|
|
51ff85bb2d | ||
|
|
d389ff1450 | ||
|
|
4415731da4 | ||
|
|
0fdc83af9d | ||
|
|
71a8a41104 | ||
|
|
da19d7ba9f | ||
|
|
1475abb1cb | ||
|
|
27b2f965dd | ||
|
|
100352d6b4 | ||
|
|
8ee8b2560a | ||
|
|
d4a6482091 | ||
|
|
8639290108 | ||
|
|
e699f5d042 | ||
|
|
e977b3eee5 | ||
|
|
c5be8e2a93 | ||
|
|
bff116dbed | ||
|
|
4df120e40e | ||
|
|
e53420c1d0 | ||
|
|
88ccc8a447 | ||
|
|
a98059967d | ||
|
|
b680c7ae95 | ||
|
|
a677abd5e8 | ||
|
|
8c850b58cb | ||
|
|
a34267f54b | ||
|
|
155482851a | ||
|
|
81386a7a43 | ||
|
|
d8e38c1a1d | ||
|
|
3e37d77780 | ||
|
|
e0783c2922 | ||
|
|
c2d4643f9d | ||
|
|
84456f50f6 | ||
|
|
fb10bb4aea | ||
|
|
366d4ad04a | ||
|
|
0c08d7a19a | ||
|
|
eb71ad9a89 | ||
|
|
ad6120080a | ||
|
|
6813007e28 | ||
|
|
09243d1e5d | ||
|
|
0d297c2537 | ||
|
|
341803d784 | ||
|
|
32a7f82772 | ||
|
|
d21ff38ba1 | ||
|
|
2f7ef5f120 | ||
|
|
751139d8c1 | ||
|
|
03b621f390 | ||
|
|
4443a91c24 | ||
|
|
8fe7d652ab | ||
|
|
ecf9436c6e | ||
|
|
994a089b1f | ||
|
|
55aad328ea | ||
|
|
84cc54007e | ||
|
|
43d6c2f369 | ||
|
|
fe9e39dab8 | ||
|
|
760e4cea3a | ||
|
|
e349e01829 | ||
|
|
04ebe0f2a3 | ||
|
|
fb6dbc848e | ||
|
|
65791e4d12 | ||
|
|
3e8f2f1c27 | ||
|
|
29b83598e3 | ||
|
|
dc744f6e8f | ||
|
|
8b1f1d52c4 | ||
|
|
1bcef62e73 | ||
|
|
487a5321df | ||
|
|
f884eb4473 | ||
|
|
4cb6d47bf7 | ||
|
|
01f5dc8b85 | ||
|
|
2e3c6fe614 | ||
|
|
a36057d6e9 | ||
|
|
1a9fb612ed | ||
|
|
35062ca6af | ||
|
|
4e1b44e353 | ||
|
|
f6b2cb7fdc | ||
|
|
bcbde3ac42 | ||
|
|
1e4bed0f1b | ||
|
|
9a0b714fda | ||
|
|
ddd6506bea | ||
|
|
37b1fce205 | ||
|
|
2325759ba8 | ||
|
|
29429ecf7b | ||
|
|
9a7be6de67 | ||
|
|
0dc2a2f963 | ||
|
|
2d336553af | ||
|
|
1014a6d490 | ||
|
|
27943a5ebc | ||
|
|
528b95cba8 | ||
|
|
0290cf7dd0 | ||
|
|
5c8a4ab986 | ||
|
|
8736508617 | ||
|
|
4811ada35a | ||
|
|
afb2d61a08 | ||
|
|
514647b29f | ||
|
|
4c587544b6 | ||
|
|
f5f9591d09 | ||
|
|
61727ab5b6 | ||
|
|
f87964ec1c | ||
|
|
2edd5b3335 | ||
|
|
668fe78e2d | ||
|
|
fe28d9e115 | ||
|
|
5cb127999c | ||
|
|
86b349f812 | ||
|
|
a70024f745 | ||
|
|
8b5884b527 | ||
|
|
4c1d0e92cd | ||
|
|
6e7e55212b | ||
|
|
11dbe679b9 | ||
|
|
c63ae89efb | ||
|
|
ee74a60082 | ||
|
|
607646b627 | ||
|
|
7e164e3ab7 | ||
|
|
7e72cace2b | ||
|
|
c53d67d3b5 | ||
|
|
cb56f4fdc1 | ||
|
|
f15e128d6c | ||
|
|
99d033ffec | ||
|
|
6fee361183 | ||
|
|
95581cc661 | ||
|
|
3c4456ddbf | ||
|
|
b44c2e498d | ||
|
|
c86cec3256 | ||
|
|
a1f005789d | ||
|
|
d03292e8b9 | ||
|
|
ebacedd89d | ||
|
|
fb41ce93d6 | ||
|
|
1e4e15c023 | ||
|
|
cf08b8411a | ||
|
|
e81f7fdbd5 | ||
|
|
96f54264b4 | ||
|
|
b945d177d3 | ||
|
|
ebc22fa26c | ||
|
|
a994ace2db | ||
|
|
f2a5ad0504 | ||
|
|
fe33dcc3d6 | ||
|
|
c95b1ea5e6 | ||
|
|
0d87d314ac | ||
|
|
71f3519611 | ||
|
|
02d7727365 | ||
|
|
f683e36468 | ||
|
|
cfaacc6e49 | ||
|
|
a029661e23 | ||
|
|
80b2a47d60 | ||
|
|
9af5ec6069 | ||
|
|
e46eae1f0e | ||
|
|
c07186855f | ||
|
|
3e7778c380 | ||
|
|
68970d09fa | ||
|
|
8c8c6284fb | ||
|
|
b435e26aa4 | ||
|
|
58f9af7d58 | ||
|
|
c6c0c79216 | ||
|
|
461e8e5323 | ||
|
|
0fa9690e38 | ||
|
|
cc42ec39e6 | ||
|
|
952cca8c58 | ||
|
|
0c8a8de7cd | ||
|
|
c52a015f36 | ||
|
|
c5eb6d70b4 | ||
|
|
2c1926cee9 | ||
|
|
29395ac617 | ||
|
|
58344f4d25 | ||
|
|
65b366bca9 | ||
|
|
c501d71645 | ||
|
|
d65bae5f05 | ||
|
|
c48aaa03de | ||
|
|
7b8ae21c36 | ||
|
|
d9c36c3a57 | ||
|
|
bfb68b2619 | ||
|
|
a0abc58130 | ||
|
|
8a395e928d | ||
|
|
7072a53770 | ||
|
|
deedeeb9ce | ||
|
|
6fd0a94729 | ||
|
|
e4fe839e45 | ||
|
|
ce10240f5b | ||
|
|
f48a927b86 | ||
|
|
fa993f3ea5 | ||
|
|
ef1cb97755 | ||
|
|
fc431010ef | ||
|
|
0d723f180a | ||
|
|
9d232398ee | ||
|
|
865b09b2f0 | ||
|
|
7329143ffb | ||
|
|
d50aebb117 | ||
|
|
b337e0b726 | ||
|
|
4b6c57cede | ||
|
|
2b23a038d4 | ||
|
|
d1ebf9d12a | ||
|
|
12e40e2581 | ||
|
|
d1e400eed2 | ||
|
|
7ea4670832 | ||
|
|
869ba181c7 | ||
|
|
f36c4e7275 | ||
|
|
7f9874d260 | ||
|
|
9a32716374 | ||
|
|
9bc80d52df | ||
|
|
83e51618d0 | ||
|
|
7df747ae04 | ||
|
|
20f904951f | ||
|
|
5198031d5b | ||
|
|
1ec5e22e2b | ||
|
|
c7522d27ad | ||
|
|
6965eca079 | ||
|
|
8a1b9276f9 | ||
|
|
2411f93240 | ||
|
|
5841d52792 | ||
|
|
03a4d118f3 | ||
|
|
a1f6451090 | ||
|
|
c12f6fbf4d | ||
|
|
f732b76dc3 | ||
|
|
edc60034a5 | ||
|
|
63f40543ab | ||
|
|
6f603f6006 | ||
|
|
581d8563cc | ||
|
|
2b6e2e18df | ||
|
|
1220fdfdd6 | ||
|
|
07726b0047 | ||
|
|
e33b06badf | ||
|
|
15dcb9a19d | ||
|
|
7885e874c6 | ||
|
|
93f1bd5df6 | ||
|
|
ef03ea2697 | ||
|
|
db65e627ca | ||
|
|
1a5d6922dd | ||
|
|
2d59a51874 | ||
|
|
0836095a57 | ||
|
|
87178287c7 | ||
|
|
dc3f60801e | ||
|
|
9c8b28aa64 | ||
|
|
719a50cc91 | ||
|
|
7a410ab228 | ||
|
|
98bbbc126b | ||
|
|
06e55bb93e | ||
|
|
3e2ec1601b | ||
|
|
5ae8f6aad7 | ||
|
|
1cbc6d333d | ||
|
|
3bf148c443 | ||
|
|
77d48cc27a | ||
|
|
6663846026 | ||
|
|
bb2017a839 | ||
|
|
bdcf264963 | ||
|
|
50b85a0b01 | ||
|
|
ad723a6db8 | ||
|
|
f1f0c38c55 | ||
|
|
07c40d6574 | ||
|
|
2f2e0cee10 | ||
|
|
dc59c706ff | ||
|
|
cc7170dead | ||
|
|
af188624d5 | ||
|
|
c547aace36 | ||
|
|
2a5ad17e6d | ||
|
|
cd8b652568 | ||
|
|
eecaee1fe6 | ||
|
|
d3f412daab | ||
|
|
0da5dfecbb | ||
|
|
dc47f6b7b9 | ||
|
|
321031cb47 | ||
|
|
b5a0c4c228 | ||
|
|
15704ab3d5 | ||
|
|
a1f78a8f62 | ||
|
|
00f4a25bdc | ||
|
|
cff0b65b01 | ||
|
|
0726df85eb | ||
|
|
1e4286a62d | ||
|
|
84dfb22cd5 | ||
|
|
34d8ac7c6e | ||
|
|
125982a4ad | ||
|
|
43136bbfb6 | ||
|
|
11cc71b75f | ||
|
|
e42b7ca214 | ||
|
|
48d9a67aaa | ||
|
|
7763212297 | ||
|
|
c2bc2f009b | ||
|
|
6e0a387205 | ||
|
|
1740df534b | ||
|
|
0ab954e1af | ||
|
|
5488dfb992 | ||
|
|
09355701f6 | ||
|
|
c836b7585e | ||
|
|
32fde75504 | ||
|
|
81236a3dca | ||
|
|
6d834a18ed | ||
|
|
9bb970e6ef | ||
|
|
1c9cec1787 | ||
|
|
4d02ef637b | ||
|
|
19f027b7a7 | ||
|
|
ab90c777d0 | ||
|
|
3902137dfc | ||
|
|
0131feac68 | ||
|
|
017faf4bd1 | ||
|
|
c2f7d75e9e | ||
|
|
e24f9b3da7 | ||
|
|
b58e8e3ffc | ||
|
|
f45b013321 | ||
|
|
e547c0ec64 | ||
|
|
6871fc46b5 | ||
|
|
931b2dbe40 | ||
|
|
bb35b3eb87 | ||
|
|
01d481bc8d | ||
|
|
46b9a1d621 | ||
|
|
839c720e91 | ||
|
|
d88c6987a2 | ||
|
|
6c1822f186 | ||
|
|
c7c3ac872c | ||
|
|
7fddd6e448 | ||
|
|
bb21403c9e | ||
|
|
ac972948b8 | ||
|
|
211392c4a4 | ||
|
|
7317de23a3 | ||
|
|
a2a7b7d795 | ||
|
|
4122f6c308 | ||
|
|
6aeebc4c76 | ||
|
|
98310b6612 | ||
|
|
ef9d6a870f | ||
|
|
35f46dac8c | ||
|
|
efa6339e18 | ||
|
|
1baebb423c | ||
|
|
462df8395e | ||
|
|
35f214d9db | ||
|
|
af0cbcb6a5 | ||
|
|
2e35426d11 | ||
|
|
bf10a29f06 | ||
|
|
a7e2d9bc40 | ||
|
|
a3777496b5 | ||
|
|
edf6aedc51 | ||
|
|
53845d0277 | ||
|
|
3d27483658 | ||
|
|
4f9bd0cb38 | ||
|
|
3f7f7de179 | ||
|
|
6461f5aacf | ||
|
|
339957b42c | ||
|
|
4391dc1a63 | ||
|
|
964e0e4e8a | ||
|
|
549dbf3390 | ||
|
|
70b2e15a25 | ||
|
|
bb249d612c | ||
|
|
17773bdb94 | ||
|
|
f30293359c | ||
|
|
0c85e6149f | ||
|
|
ec57d7af94 | ||
|
|
df791f729c | ||
|
|
c6ff3abecd | ||
|
|
eac13e3bd3 | ||
|
|
46ee3f3d9c | ||
|
|
5e1f0c5fbc | ||
|
|
c4f09b160a | ||
|
|
48c97e86dd | ||
|
|
416bc845ad | ||
|
|
408a78985a | ||
|
|
0c965c8115 | ||
|
|
f65e4b6940 | ||
|
|
a2d4424f92 | ||
|
|
997f839cd6 | ||
|
|
556fad50df | ||
|
|
bb4214b5c2 | ||
|
|
f17c1f3fe7 | ||
|
|
d4fe9a8ad4 | ||
|
|
2910aa29e4 | ||
|
|
89cc073ea8 | ||
|
|
aa86fdfe71 | ||
|
|
48e9ced781 | ||
|
|
7b02bd1f02 | ||
|
|
417fc2a735 | ||
|
|
317128f790 | ||
|
|
e3dfb09b10 | ||
|
|
d912654110 | ||
|
|
34ab4cf9be | ||
|
|
d597b80486 | ||
|
|
3f5ebe81b9 | ||
|
|
f52bd9287b | ||
|
|
f5baeeea1c | ||
|
|
3cc7044fb3 | ||
|
|
26c7675c28 | ||
|
|
8aaed0e29f | ||
|
|
5182e3c40c | ||
|
|
1e252c7664 | ||
|
|
05ef3b6e44 | ||
|
|
ad04012b63 | ||
|
|
c93cba4603 | ||
|
|
971669016f | ||
|
|
6c6f245914 | ||
|
|
b39eeb328c | ||
|
|
be94bf1f3c | ||
|
|
e24a952e98 | ||
|
|
89f20d12cf | ||
|
|
ebeb0f1154 | ||
|
|
d66fe214d9 | ||
|
|
75781503b8 | ||
|
|
9aff3ca274 | ||
|
|
7e2a08f3a5 | ||
|
|
a0e13561b1 | ||
|
|
7eedfcd274 | ||
|
|
da779ac77c | ||
|
|
adfa3226e3 | ||
|
|
e5e1a272ff | ||
|
|
d8e8a78368 | ||
|
|
7ae3de1fa0 | ||
|
|
72898c7211 | ||
|
|
fc1a14a0e3 | ||
|
|
f063e4e01c | ||
|
|
07372db906 | ||
|
|
48d04e8141 | ||
|
|
6234267242 | ||
|
|
1afbb87e99 | ||
|
|
d18a74ddb7 | ||
|
|
4d3c6d9c7c | ||
|
|
10f9724827 | ||
|
|
582faa129e | ||
|
|
4ec87a01e0 | ||
|
|
ff98685dd6 | ||
|
|
424f3d218a | ||
|
|
661623f9f7 | ||
|
|
49397b4d7b | ||
|
|
0553fd817c | ||
|
|
7ad971f720 | ||
|
|
f485c13035 | ||
|
|
c30b691164 | ||
|
|
d088d4493e | ||
|
|
770f804325 | ||
|
|
37a29073de | ||
|
|
17cd145f09 | ||
|
|
ac539fd5cf | ||
|
|
048553ddc3 | ||
|
|
dfe6b71fd9 | ||
|
|
18ee93ca3a | ||
|
|
cb4bc2d6e9 | ||
|
|
b0451806ef | ||
|
|
b514e4c249 | ||
|
|
8350dfead3 | ||
|
|
34e6edbb13 | ||
|
|
27be92903e | ||
|
|
9388030182 | ||
|
|
b7aee3f5a4 | ||
|
|
83ff38ab24 | ||
|
|
6603a44151 | ||
|
|
e69d4e7f14 | ||
|
|
506f65e880 | ||
|
|
41bb52762b | ||
|
|
8c98ef3e70 | ||
|
|
44d1e73b4f | ||
|
|
53794fbaba | ||
|
|
556b4043e9 | ||
|
|
424c636533 | ||
|
|
f63709260e | ||
|
|
991618dfc1 | ||
|
|
1af489b1cd | ||
|
|
a433c31d6e | ||
|
|
5814928e38 | ||
|
|
6130a6e1d0 | ||
|
|
7872f6a670 | ||
|
|
f230e418aa | ||
|
|
518eb73f88 | ||
|
|
5b6d21d7da | ||
|
|
410506f448 | ||
|
|
3cb44d37c0 | ||
|
|
f977ed7471 | ||
|
|
3f5617b569 | ||
|
|
fe9c875d32 | ||
|
|
23b16ad6d2 | ||
|
|
fdeccfaf24 | ||
|
|
fecde23da5 | ||
|
|
b1d931337e | ||
|
|
39542336b8 | ||
|
|
799588cada | ||
|
|
f392add4b8 | ||
|
|
49560bf2a2 | ||
|
|
44b3ed5ae9 | ||
|
|
6235145641 | ||
|
|
ff5cb7ba51 | ||
|
|
1e2b9ae962 | ||
|
|
8cab58d248 | ||
|
|
0d645c227f | ||
|
|
fb6c349677 | ||
|
|
eeb057085c | ||
|
|
121371f4a4 | ||
|
|
a32713198b | ||
|
|
a1b067c683 | ||
|
|
cbfc6a8baf | ||
|
|
9765596247 | ||
|
|
1b1a291fae | ||
|
|
867534c1f4 | ||
|
|
6d8b6459eb | ||
|
|
203bd8defd | ||
|
|
949680a5ce | ||
|
|
015c490b63 | ||
|
|
95a916936e | ||
|
|
961d69d8c2 | ||
|
|
be4d0a5b88 | ||
|
|
5310d3715c | ||
|
|
6bdf983e0b | ||
|
|
6604b9ca31 | ||
|
|
305241fe86 | ||
|
|
2d686b73fd | ||
|
|
30def98ed9 | ||
|
|
b78d23f68d | ||
|
|
4ffd633e40 | ||
|
|
07c3dcd21c | ||
|
|
fd233eac62 | ||
|
|
d8f38ca48b | ||
|
|
7740bd6b45 | ||
|
|
a57fdf008e | ||
|
|
a8e3afe8af | ||
|
|
44572e72f0 | ||
|
|
54b1e5699c | ||
|
|
ee7bc24903 | ||
|
|
15ef88d2ed | ||
|
|
7c56d72b46 | ||
|
|
5d28e4744e | ||
|
|
746ca7d149 | ||
|
|
a58b5ee8fb | ||
|
|
7fbfd53c3e | ||
|
|
4c44c29ee4 | ||
|
|
8ee0fe0a64 | ||
|
|
307a618ea8 | ||
|
|
ce07ce58e1 | ||
|
|
7ea51df6ae | ||
|
|
fe463c79fe | ||
|
|
d7d6843c5f | ||
|
|
adcf8bcbb3 | ||
|
|
5d937802f1 | ||
|
|
8c201e88a7 | ||
|
|
b8bc264731 | ||
|
|
9c6fbff0c3 | ||
|
|
5c7aa7f9ce | ||
|
|
1af94dedad | ||
|
|
2e7c968419 | ||
|
|
05b0820a9e | ||
|
|
d4e620eb50 | ||
|
|
0f52505dbe | ||
|
|
cb754fd97b | ||
|
|
e01d4c0a6e | ||
|
|
7a6bedaae3 | ||
|
|
22145e7e5f | ||
|
|
b3ac41ff9a | ||
|
|
036b95e5b2 | ||
|
|
2ce0c5ccf5 | ||
|
|
7156cc5c1d | ||
|
|
fcd30b1de2 | ||
|
|
a84fa50166 | ||
|
|
6a1e3a6db8 | ||
|
|
b37e5b5198 | ||
|
|
f9d4e9e03d | ||
|
|
9c97d30702 | ||
|
|
9836f7bdef | ||
|
|
b07ff7aebd | ||
|
|
aecbb4564c | ||
|
|
779663b39c | ||
|
|
7934af2974 | ||
|
|
533988233e | ||
|
|
8bc0e77a1d | ||
|
|
1c93c9bb58 | ||
|
|
6d7b32977c | ||
|
|
bf15466bec | ||
|
|
fb1ebe48f0 | ||
|
|
de65697ff9 | ||
|
|
ecf90d689e | ||
|
|
4cdeff11cd | ||
|
|
9ff2f6e430 | ||
|
|
73a0dc6d14 | ||
|
|
0a1c73e0fd | ||
|
|
8653ffc5a4 | ||
|
|
86583a350f | ||
|
|
fafab5d557 | ||
|
|
39e0c22353 | ||
|
|
f767943fb2 | ||
|
|
ae97831ebf | ||
|
|
f16bae0ab9 | ||
|
|
b947b2bc7e | ||
|
|
7068688181 | ||
|
|
38c0600982 | ||
|
|
83d163add5 | ||
|
|
d46e8855ef | ||
|
|
60524c0f8e | ||
|
|
ca73a2aa15 | ||
|
|
4a833a4272 | ||
|
|
f9abeca231 | ||
|
|
5f9e527768 | ||
|
|
6f51de4cb5 | ||
|
|
cb64682d33 | ||
|
|
98d1a94b60 | ||
|
|
a89da7ca88 | ||
|
|
2d237828ae | ||
|
|
f4253da72a | ||
|
|
919822e583 | ||
|
|
444c787729 | ||
|
|
3b63dd9f11 | ||
|
|
84166bf457 | ||
|
|
dd445e1fde | ||
|
|
6a22ec1b2e | ||
|
|
587bbcbf0d | ||
|
|
8e1c4ec116 | ||
|
|
dc35f56baa | ||
|
|
60d116b5b5 | ||
|
|
4dbc4a41c4 | ||
|
|
89541faec9 | ||
|
|
79bd98560b | ||
|
|
7917bd5033 | ||
|
|
05b0ebb184 | ||
|
|
e1d7a53325 | ||
|
|
7a06d354aa | ||
|
|
9dd5ab90bf | ||
|
|
45d614533f | ||
|
|
00a531d9d6 | ||
|
|
fd301a38db | ||
|
|
9c7e01dbca | ||
|
|
1ac6df0996 | ||
|
|
38ca4fce25 | ||
|
|
7e3a6eec96 | ||
|
|
ac16a55c64 | ||
|
|
620ca40b85 | ||
|
|
aa11cf2956 | ||
|
|
feb06e2107 | ||
|
|
a3d40e0abf | ||
|
|
7c1bd91d0a | ||
|
|
70a132d059 | ||
|
|
1fdebc660b | ||
|
|
0516192d69 | ||
|
|
f99be58217 | ||
|
|
3b6222e516 | ||
|
|
b88e60f8dd | ||
|
|
9373c4d1e4 | ||
|
|
0fe3ee8eca | ||
|
|
0d71a32aa2 | ||
|
|
0f223663bb | ||
|
|
c25d0c9f9c | ||
|
|
4a4b7beeb9 | ||
|
|
265e09dc93 | ||
|
|
87ea28fe84 | ||
|
|
af0f786f2e | ||
|
|
50528a009d | ||
|
|
f6e5582370 | ||
|
|
dea3181d96 | ||
|
|
5f7ae2fd4c | ||
|
|
4f249b8652 | ||
|
|
df23f68dd4 | ||
|
|
4b091cee9e | ||
|
|
dcb5acdf29 | ||
|
|
7fbeced315 | ||
|
|
47e7b1cc80 | ||
|
|
8f998c218e | ||
|
|
41c0797d7a | ||
|
|
3f2cba0dec | ||
|
|
b60c67d107 | ||
|
|
630cd3aba0 | ||
|
|
05595f5920 | ||
|
|
29f2cfc48d | ||
|
|
43d949c5cc | ||
|
|
58312f1816 | ||
|
|
dffbb6a659 | ||
|
|
272beb21a9 | ||
|
|
d34c511fa5 | ||
|
|
2945619eb8 | ||
|
|
078a83679a | ||
|
|
881437e890 | ||
|
|
40aca4bc17 | ||
|
|
0de046dfbe | ||
|
|
5a7b73be26 | ||
|
|
35f8ceb7f1 | ||
|
|
19d6dab973 | ||
|
|
810ef7f556 | ||
|
|
fd7306643f | ||
|
|
22c40a4766 | ||
|
|
bcf140b3c1 | ||
|
|
e3692a6a3d | ||
|
|
e7489383a2 | ||
|
|
70246c3f86 | ||
|
|
0796c84da5 | ||
|
|
718482fb02 | ||
|
|
a3fb66daa4 | ||
|
|
da34b80c26 | ||
|
|
ba5ab21140 | ||
|
|
65f41a1e36 | ||
|
|
0930c9c059 | ||
|
|
1d193a9ab9 | ||
|
|
3adc6dca61 | ||
|
|
36d9f841d6 | ||
|
|
48ad13de00 | ||
|
|
42935cce05 | ||
|
|
e77f1c3b0f | ||
|
|
388838aa99 | ||
|
|
d4d0990072 | ||
|
|
4210d17f14 | ||
|
|
fbd12e78c9 | ||
|
|
83d3421e72 | ||
|
|
8bcbf73aaa | ||
|
|
cc5f15885d | ||
|
|
20fdf55bf6 | ||
|
|
955dcec68b | ||
|
|
2b8564b16f | ||
|
|
57da3e51cd | ||
|
|
dede0e9747 | ||
|
|
35d2fc1158 | ||
|
|
c5267335a3 | ||
|
|
15c7b589c2 | ||
|
|
0ada5e8bf7 | ||
|
|
f1dddaa6e9 | ||
|
|
a7eb89d645 | ||
|
|
c56a9b2b7f | ||
|
|
17a8f462dd | ||
|
|
e3498bdaa5 | ||
|
|
d2f963e20e | ||
|
|
d53bb37186 | ||
|
|
9874f9e004 | ||
|
|
2739d5f4c4 | ||
|
|
d07603b288 | ||
|
|
723ac9493d | ||
|
|
de75777ede | ||
|
|
75703c10ee | ||
|
|
1722079a43 | ||
|
|
f5aea191d1 | ||
|
|
b2418b0634 | ||
|
|
aac034d9ba | ||
|
|
412ac8d1b9 | ||
|
|
ada8860e48 | ||
|
|
5df501a281 | ||
|
|
3e4c61d020 | ||
|
|
cc39fe51b3 | ||
|
|
89cd24388d | ||
|
|
d5da0a8093 | ||
|
|
a87275a4ca | ||
|
|
0891aef8d7 | ||
|
|
add924221a | ||
|
|
ba40d07ea3 | ||
|
|
57e9096816 | ||
|
|
88ae1f8871 | ||
|
|
6fedfe0ece | ||
|
|
121fa5793f | ||
|
|
50b3d1deaa | ||
|
|
3b3def5b8a | ||
|
|
4f068a45ff | ||
|
|
23a9504a51 | ||
|
|
d0d4eba477 | ||
|
|
a3fab0b5a9 | ||
|
|
a88f640395 | ||
|
|
74419b0e86 | ||
|
|
2ddf296a8e | ||
|
|
6b42a712a8 | ||
|
|
c3230d3374 | ||
|
|
602535fe71 | ||
|
|
f9b28bcaed | ||
|
|
922c75344b | ||
|
|
2caf87c247 | ||
|
|
f2a3535c3f | ||
|
|
a500e60b7f | ||
|
|
c7ebc8935f | ||
|
|
56f8f8a329 | ||
|
|
828d723512 | ||
|
|
b450a5754e | ||
|
|
2971b9a027 | ||
|
|
3c54959829 | ||
|
|
87e25e8692 | ||
|
|
6ac5c90a0b | ||
|
|
a58fb24e2b | ||
|
|
9ce593c47f | ||
|
|
c9d4051136 | ||
|
|
26f3518cea | ||
|
|
49eed67ab0 | ||
|
|
7a4d3bd2dc | ||
|
|
2afb4ccd68 | ||
|
|
f38d5ad8e2 | ||
|
|
7e1f04c667 | ||
|
|
ef2ba39dcf | ||
|
|
7045e11aa0 | ||
|
|
a9016c37f5 | ||
|
|
fe62ab8ec5 | ||
|
|
893daedc42 | ||
|
|
44be13b006 | ||
|
|
a5131ecc7d | ||
|
|
ce5d02569f | ||
|
|
4fc7456000 | ||
|
|
28e3412556 | ||
|
|
86fe510bcf | ||
|
|
eaedbd3187 | ||
|
|
b31fcc4edf | ||
|
|
edb5634b9a | ||
|
|
ad21458e10 | ||
|
|
622bc43ced | ||
|
|
e5d99da0bc | ||
|
|
618499b379 | ||
|
|
bca361acf9 | ||
|
|
567e2ca2be | ||
|
|
474143466f | ||
|
|
050161c78f | ||
|
|
ab496af1f0 | ||
|
|
c3c2b27e97 | ||
|
|
5789d717ba | ||
|
|
14e2c3ec21 | ||
|
|
b718c537a7 | ||
|
|
6992151081 | ||
|
|
bf5ed39db3 | ||
|
|
f573870232 | ||
|
|
da4a90aa11 | ||
|
|
2cfc386773 | ||
|
|
ae485f996a | ||
|
|
73ff497200 | ||
|
|
9a7305d43f | ||
|
|
ca23148908 | ||
|
|
8225a009b5 | ||
|
|
9605b76178 | ||
|
|
137dd9aa1b | ||
|
|
a203fe866a | ||
|
|
4186f99b74 | ||
|
|
6db899eddd | ||
|
|
8ea20b4ba2 | ||
|
|
3f76f82c88 | ||
|
|
6cbf66db58 | ||
|
|
8cd11b380f | ||
|
|
814eb65d59 | ||
|
|
f24452a3ab | ||
|
|
30503697f2 | ||
|
|
90902689c3 | ||
|
|
5a0e776cff | ||
|
|
9368e7a6a1 | ||
|
|
c02ddf8c0e | ||
|
|
64b8a12a42 | ||
|
|
e895fe9e4b | ||
|
|
8d987521dd | ||
|
|
4aafc5ef4a | ||
|
|
24ca76ea58 | ||
|
|
b681908ee2 | ||
|
|
72076b3fe5 | ||
|
|
0683c59dcd | ||
|
|
8019498f09 | ||
|
|
6234aec7d2 | ||
|
|
edd8059eb3 | ||
|
|
e3be347768 | ||
|
|
597acf1fa1 | ||
|
|
effa1a0813 | ||
|
|
726800be57 | ||
|
|
8b79747908 | ||
|
|
ec5d31de0e | ||
|
|
5d61ebbfdb | ||
|
|
0ef9931d19 | ||
|
|
a2213abbc0 | ||
|
|
915585c36e | ||
|
|
5ddd40885e | ||
|
|
58d1bccd26 | ||
|
|
70c26f5c74 | ||
|
|
ac962a4a31 | ||
|
|
bb2d062cc5 | ||
|
|
7667784985 | ||
|
|
05ecfbcc3a | ||
|
|
e06ae97068 | ||
|
|
ed50877c4f | ||
|
|
6b5e38ee28 | ||
|
|
63a1bf9adb | ||
|
|
2c7238fbb4 | ||
|
|
b1d597109f | ||
|
|
7617eece3a | ||
|
|
8ce92b56d7 | ||
|
|
21fae1c4a4 | ||
|
|
c952d44ec5 | ||
|
|
971b38c26b | ||
|
|
b7884facbf | ||
|
|
57ce461067 | ||
|
|
b1b830643e | ||
|
|
3cee9d16fa | ||
|
|
c647706ac2 | ||
|
|
7b33ffb1bd | ||
|
|
f38cbc4feb | ||
|
|
480e0e55c5 | ||
|
|
e5c468bb93 | ||
|
|
605c72e86e | ||
|
|
aad46ac5a8 | ||
|
|
d85618ef26 | ||
|
|
1250f23c44 | ||
|
|
daea7d59a7 | ||
|
|
4575757c2a | ||
|
|
d7a2f77705 | ||
|
|
4a4b89606b | ||
|
|
1ebe2e7118 | ||
|
|
f1087e57bf | ||
|
|
250537ba58 | ||
|
|
ccc7222868 | ||
|
|
311a57a21e | ||
|
|
b7c45de6b1 | ||
|
|
c53c3cf181 | ||
|
|
a77d325c8a | ||
|
|
dd41384d82 | ||
|
|
aa55fb2d30 | ||
|
|
864f4efb8b | ||
|
|
83c5a8c24b | ||
|
|
57aef33fb3 | ||
|
|
6d78e5e640 | ||
|
|
f54a876f65 | ||
|
|
8bbae7926b | ||
|
|
db2b12021e | ||
|
|
8b2c9bf39d | ||
|
|
298bf8a1d4 | ||
|
|
77748571b4 | ||
|
|
8ce4c289c5 | ||
|
|
abbece8876 | ||
|
|
3ad40372e6 | ||
|
|
c6d0e7c926 | ||
|
|
bc015843d4 | ||
|
|
df64511feb | ||
|
|
db0981afe7 | ||
|
|
dcf6544f93 | ||
|
|
c2c8959fee | ||
|
|
ccb4fa26cd | ||
|
|
d0b5d752df | ||
|
|
4c63b630de | ||
|
|
9c0b62b4f5 | ||
|
|
e08eede5e2 | ||
|
|
05e53d4143 | ||
|
|
b2ea2b8b25 | ||
|
|
2245d8d710 | ||
|
|
d9424cc710 | ||
|
|
0503c141b7 | ||
|
|
1a6e4a00c7 | ||
|
|
42b7caae19 | ||
|
|
622e5fd71d | ||
|
|
59d773ea7e | ||
|
|
84bf5b4620 | ||
|
|
726c4d6c58 | ||
|
|
acc88d47a3 | ||
|
|
0a74594d09 | ||
|
|
d2f3cdd6de | ||
|
|
92d1ef8482 | ||
|
|
a8abc49632 | ||
|
|
d6ac340df0 | ||
|
|
c653330911 | ||
|
|
82d9b2fa87 | ||
|
|
3f96fad4f9 | ||
|
|
c2c4757a2b | ||
|
|
08b2d94ccd | ||
|
|
7fa61f0816 | ||
|
|
c65ba11ae6 | ||
|
|
b0651b13b5 | ||
|
|
a34521ec07 | ||
|
|
da47b90503 | ||
|
|
d27016a4e7 | ||
|
|
db99e2f68d | ||
|
|
cbb9117ab9 | ||
|
|
e2ccf011d9 | ||
|
|
17014bfad3 | ||
|
|
92b7166c10 | ||
|
|
7b464b8a49 | ||
|
|
5c765bf3e2 | ||
|
|
93619a9a37 | ||
|
|
a181cee6ae | ||
|
|
a0ade13f5a | ||
|
|
9823a56e1d | ||
|
|
3aeab73740 | ||
|
|
9801eebc58 | ||
|
|
11c622230c | ||
|
|
f0349488ed | ||
|
|
c85be323f5 | ||
|
|
6954c4df1b | ||
|
|
30a1595f72 | ||
|
|
f841a7ca76 | ||
|
|
07a004b301 | ||
|
|
b05582de39 | ||
|
|
fa7c4d19f0 | ||
|
|
1913eac5ed | ||
|
|
066346faa2 | ||
|
|
0a03355ceb | ||
|
|
43e24c5ae6 | ||
|
|
89d111a5f6 | ||
|
|
e1b5e68904 | ||
|
|
065ab2ebc2 | ||
|
|
20c95a4993 | ||
|
|
c40b488cb4 | ||
|
|
585e7c59e8 | ||
|
|
7077c47551 | ||
|
|
f789b2535a | ||
|
|
2bfc6917e2 | ||
|
|
d74ae19523 | ||
|
|
1c7c23ac73 | ||
|
|
86e8722cd8 | ||
|
|
53127daad8 | ||
|
|
91b20b7482 | ||
|
|
7a61602738 | ||
|
|
dd4b47d8b1 | ||
|
|
eb200b4687 | ||
|
|
0fc080d222 | ||
|
|
5da63602b3 | ||
|
|
457ff3ef48 | ||
|
|
0dbdecef10 | ||
|
|
b13b0e9492 | ||
|
|
b9fdfd9e36 | ||
|
|
4d6352db14 | ||
|
|
9eb82c6497 | ||
|
|
89cc89dfdf | ||
|
|
2b0f6597a4 | ||
|
|
294def205f | ||
|
|
34fa703466 | ||
|
|
ab3f8dcbfd | ||
|
|
02c20477b9 | ||
|
|
d9a4ee126a | ||
|
|
5b31cc4266 | ||
|
|
9bb1250869 | ||
|
|
94d6d19fb4 | ||
|
|
d43c070007 | ||
|
|
9ef236601b | ||
|
|
9d6f961d2b | ||
|
|
5453840950 | ||
|
|
d453964546 | ||
|
|
748a932811 | ||
|
|
8217ad4722 | ||
|
|
cc5a38ec5a | ||
|
|
6ef3fbbf76 | ||
|
|
76fd12c7cd | ||
|
|
9ecb6e50e4 | ||
|
|
ce9d0afb8a | ||
|
|
c39ea807e8 | ||
|
|
1e35339389 | ||
|
|
304797b099 | ||
|
|
b9bdb775ab | ||
|
|
b0909b8f5d | ||
|
|
5d278dacf1 | ||
|
|
df93858b4b | ||
|
|
e8da84fb9e | ||
|
|
7e90e067af | ||
|
|
5e4e917de5 | ||
|
|
05dc0212e7 | ||
|
|
c00052cbfb | ||
|
|
3d54a83822 | ||
|
|
fafd5edbda | ||
|
|
8478262580 | ||
|
|
83b1fee062 | ||
|
|
0fbbc896b2 | ||
|
|
ce1aaec31d | ||
|
|
0544b08543 | ||
|
|
1809852a0d | ||
|
|
88d2ee4813 | ||
|
|
bef6edb942 | ||
|
|
99f27de934 | ||
|
|
9c91f3a7bd | ||
|
|
1b6fed2ffd | ||
|
|
0721f2c1b7 | ||
|
|
b9a35da118 | ||
|
|
60f80056b1 | ||
|
|
540c3b79aa | ||
|
|
77be2e4fdf | ||
|
|
16f529e1d4 | ||
|
|
ebfcf2a9ef | ||
|
|
67a8138b65 | ||
|
|
e91863de59 | ||
|
|
85d0b5afc7 | ||
|
|
1fbcaa4484 | ||
|
|
481235a943 | ||
|
|
2289e45571 | ||
|
|
b5d303f12a | ||
|
|
c3be975783 | ||
|
|
47c2edb42a | ||
|
|
b3440417ad | ||
|
|
020f639c7a | ||
|
|
55db15aba8 | ||
|
|
bce0e7c096 | ||
|
|
44b457c191 | ||
|
|
7d7066466d | ||
|
|
517576c088 | ||
|
|
987764858b | ||
|
|
a235abd176 | ||
|
|
9297e4d55c | ||
|
|
a0ec0b6f9d | ||
|
|
eae98677b9 | ||
|
|
66ac107409 | ||
|
|
39c5c42215 | ||
|
|
9f280a8469 | ||
|
|
73116fb816 | ||
|
|
f02243506d | ||
|
|
d5e9ce1797 | ||
|
|
4e786184d2 | ||
|
|
930bd3541e | ||
|
|
6c76137da4 | ||
|
|
68d06d8a9c | ||
|
|
d0543c9242 | ||
|
|
cfad27f963 | ||
|
|
c3ccbe3357 | ||
|
|
8e28f5906e | ||
|
|
d23285b4ba | ||
|
|
a42748433d | ||
|
|
be4a91a0fe | ||
|
|
8145eed603 | ||
|
|
fc00239f36 | ||
|
|
77dfec7214 | ||
|
|
7b73264ec8 | ||
|
|
1916784287 | ||
|
|
1ec54abdc4 | ||
|
|
5efc4aa066 | ||
|
|
c2856017a1 | ||
|
|
847c0b9644 | ||
|
|
17b82661d2 | ||
|
|
6c8609499a | ||
|
|
53ae325576 | ||
|
|
a7670a3ab9 | ||
|
|
ff2f1f42c3 | ||
|
|
35f7975d8f | ||
|
|
a9c8bc0e0a | ||
|
|
73aebd8159 | ||
|
|
9b84b6e2e8 | ||
|
|
095997913e | ||
|
|
6de1d29cf9 | ||
|
|
87db12d05b | ||
|
|
dcc70f314f | ||
|
|
dcd6ef733b | ||
|
|
85e415f50f | ||
|
|
2c684247e9 | ||
|
|
3d09531cda | ||
|
|
fc1227e0b1 | ||
|
|
dc96352493 | ||
|
|
725cf81af6 | ||
|
|
558468e854 | ||
|
|
95ad1ca4f8 | ||
|
|
02a69c8f4f | ||
|
|
7dbdfc88e0 | ||
|
|
2002791ec1 | ||
|
|
29d96bd6bf | ||
|
|
d01245133a | ||
|
|
23c8ac230c | ||
|
|
43d9ee3470 | ||
|
|
50fe25d230 | ||
|
|
a79960fa64 | ||
|
|
fa4f9d3d97 | ||
|
|
73385720b4 | ||
|
|
c2ab2971b0 | ||
|
|
0e60fc1078 | ||
|
|
4f2fef1ece | ||
|
|
3562637984 | ||
|
|
17aca39e1c | ||
|
|
59744f18bb | ||
|
|
f1326f526c | ||
|
|
834ac716fd | ||
|
|
0487b96098 | ||
|
|
dbd36f06e4 | ||
|
|
38ada8a68e | ||
|
|
e58edaab2d | ||
|
|
c202e005cd | ||
|
|
8129862b3c | ||
|
|
4e8aa007cf | ||
|
|
fe88bfabbf | ||
|
|
5328a64df2 | ||
|
|
87c9974be1 | ||
|
|
f3f509da92 | ||
|
|
5e8dcec2c5 | ||
|
|
56783446db | ||
|
|
207cc0383d | ||
|
|
49ecd6a6a4 | ||
|
|
c109f39d82 | ||
|
|
fd778dceb5 | ||
|
|
e402241e0e | ||
|
|
a6c37c948d | ||
|
|
fd886cb7dd | ||
|
|
b089a471b7 | ||
|
|
ae294b643b | ||
|
|
0bd6df0d1b | ||
|
|
7b1d61c956 | ||
|
|
646a0c704f | ||
|
|
bbf4fc30a5 | ||
|
|
6baaa2bcb0 | ||
|
|
13a595722a | ||
|
|
3680b6ad0e | ||
|
|
4c29d48d1c | ||
|
|
e00eb9aa3a | ||
|
|
f5a94fc774 | ||
|
|
b98af4ce17 | ||
|
|
b0f8d3d2f1 | ||
|
|
6c4577f44e | ||
|
|
89ee5962f5 | ||
|
|
a096202b28 | ||
|
|
7da7c2d692 | ||
|
|
1db48b3cca | ||
|
|
567847a5b0 | ||
|
|
9894c04d38 | ||
|
|
b26280d1cf | ||
|
|
cfece2cf51 | ||
|
|
79da002c3c | ||
|
|
e3f827513f | ||
|
|
10b2a7e7ff | ||
|
|
82c8d6a7a8 | ||
|
|
c994717cbc | ||
|
|
e3452b9a8f | ||
|
|
e95e36d63b | ||
|
|
74f7416144 | ||
|
|
1feeb804f4 | ||
|
|
0f6e4f0e32 | ||
|
|
2b44c2b456 | ||
|
|
2bb31ade39 | ||
|
|
0ce12405c0 | ||
|
|
b8c13e05db | ||
|
|
64268d2f9b | ||
|
|
8c8be68701 | ||
|
|
1df713fee9 | ||
|
|
758afd4071 | ||
|
|
0f9200d356 | ||
|
|
5f59ff1254 | ||
|
|
49e7bdbef9 | ||
|
|
5466fa5575 | ||
|
|
f8f21ee707 | ||
|
|
436737dde5 | ||
|
|
7f8d9a7af9 | ||
|
|
d80de82316 | ||
|
|
0d02446e07 | ||
|
|
a9e71b3907 | ||
|
|
739fb98d0e | ||
|
|
348769fa80 | ||
|
|
7efb6ab62d | ||
|
|
a3b018fd3b | ||
|
|
4d6208be64 | ||
|
|
3aab9befcf | ||
|
|
e5ac9df069 | ||
|
|
34960d8d61 | ||
|
|
94a7cfa58d | ||
|
|
eb72dbf32a | ||
|
|
9eb411f7b7 | ||
|
|
32415e3659 | ||
|
|
7886924c07 | ||
|
|
40b55ed65a | ||
|
|
4f5b9e686c | ||
|
|
95284aff68 | ||
|
|
063ff9c254 | ||
|
|
26b33e668d | ||
|
|
26ac9d57d0 | ||
|
|
7bd861a351 | ||
|
|
15c97f009a | ||
|
|
5153023100 | ||
|
|
c879083bc9 | ||
|
|
05bf27c958 | ||
|
|
a7ff003d4f | ||
|
|
2547e4f55e | ||
|
|
b43fc76701 | ||
|
|
48464a22a4 | ||
|
|
c3891d78e4 | ||
|
|
69ce6779e1 | ||
|
|
a206cfce65 | ||
|
|
3f54f30349 | ||
|
|
1071a4681d | ||
|
|
2548ba9936 | ||
|
|
999ed0b74c | ||
|
|
eef7bca005 | ||
|
|
5686cab5a0 | ||
|
|
99bc292588 | ||
|
|
a1ee348a6f | ||
|
|
2048a1af6f | ||
|
|
71223dc253 | ||
|
|
e03d35a9fc | ||
|
|
f988f76fcc | ||
|
|
0cacfd0f88 | ||
|
|
c25260e5dd | ||
|
|
c521fa6b74 | ||
|
|
f304b4b2da | ||
|
|
064d890172 | ||
|
|
febbd978b5 | ||
|
|
0d7e87fac6 | ||
|
|
3500528506 | ||
|
|
c42221fcf3 | ||
|
|
f49f28c331 | ||
|
|
dc964c43d9 | ||
|
|
60e491b3c1 | ||
|
|
3bfce2bac9 | ||
|
|
d63ad4cd82 | ||
|
|
d5608dca32 | ||
|
|
e7031f2d74 | ||
|
|
68a2996788 | ||
|
|
f5f0a7f908 | ||
|
|
1cfc0851ca | ||
|
|
d257d0b44c | ||
|
|
f8d347e5f8 | ||
|
|
a02db03f45 | ||
|
|
6e8388c653 | ||
|
|
6572b7e0a5 | ||
|
|
26bb5c3484 | ||
|
|
83f4992073 | ||
|
|
8392023e9f | ||
|
|
309efaa141 | ||
|
|
a5993fc866 | ||
|
|
5b1bc72ae1 | ||
|
|
72b6a80b07 | ||
|
|
e48f7ab32e | ||
|
|
16dc2be556 | ||
|
|
eea872c319 | ||
|
|
189c06dbb1 | ||
|
|
74662d1527 | ||
|
|
75f3e8cb74 | ||
|
|
aeee1c23a6 | ||
|
|
e50678c914 | ||
|
|
ae62f5708c | ||
|
|
cda88d1948 | ||
|
|
e7218d3e99 | ||
|
|
2c42fb436c | ||
|
|
a9e1a0e00a | ||
|
|
0d8e061a3d | ||
|
|
7532420eef | ||
|
|
03b17ff401 | ||
|
|
fc1fc2d5e9 | ||
|
|
7e43f36bb1 | ||
|
|
72c17c4464 | ||
|
|
3996a69861 | ||
|
|
aa8115aa5e | ||
|
|
ab0c3510eb | ||
|
|
4480d05cfb | ||
|
|
788694ec5b | ||
|
|
fb5bb7fff3 | ||
|
|
c270a77552 | ||
|
|
a2e040f389 | ||
|
|
a4376b96d8 | ||
|
|
ed5df342ca | ||
|
|
96f063e077 | ||
|
|
ee8f81de6a | ||
|
|
935edc70aa | ||
|
|
28c44a9be7 | ||
|
|
a2b3602485 | ||
|
|
3733817488 | ||
|
|
c5fb6c275a | ||
|
|
f633e9936f | ||
|
|
4e57c51c7a | ||
|
|
6267572ba7 | ||
|
|
32e1924c3b | ||
|
|
55af3c78d7 | ||
|
|
bdff19d909 | ||
|
|
f87c7819fb | ||
|
|
33694f3772 | ||
|
|
ebfc18408b | ||
|
|
6958f4f12e | ||
|
|
1f898c859a | ||
|
|
ce0bcc08a6 | ||
|
|
d1ae9dd37f | ||
|
|
31a3f2bdee | ||
|
|
1390715590 | ||
|
|
d09459c980 | ||
|
|
979e1c74bf | ||
|
|
7d0fccd63f | ||
|
|
37b8b65aad | ||
|
|
0211668361 | ||
|
|
f8c8322bb4 | ||
|
|
14c2bd9959 | ||
|
|
8db6bac1db | ||
|
|
080dd41876 | ||
|
|
8e9702cec5 | ||
|
|
5ff81c244e | ||
|
|
cfe81e81fd | ||
|
|
365414b5fc | ||
|
|
ec46be7368 | ||
|
|
f23a403468 | ||
|
|
15ad34e415 | ||
|
|
bacc891703 | ||
|
|
a2e167761c | ||
|
|
cce8fda06c | ||
|
|
dd4ac1ba4a | ||
|
|
401ebc2768 | ||
|
|
83612a98b7 | ||
|
|
827eae2750 | ||
|
|
3a3bedcd8e | ||
|
|
c1dfb4e6e6 | ||
|
|
5852f17f0b | ||
|
|
a94156703d | ||
|
|
2b3fb7a5d0 | ||
|
|
5f2a43864f | ||
|
|
88fbc94db2 | ||
|
|
6c277b5fe1 | ||
|
|
40e64b238c | ||
|
|
581bf51574 | ||
|
|
899b0ef224 | ||
|
|
3ade206e86 | ||
|
|
58bd750007 | ||
|
|
0ec829a096 | ||
|
|
7f953a6d48 | ||
|
|
0b92f04683 | ||
|
|
3f37a43a8c | ||
|
|
204d53516a | ||
|
|
5071b00baa | ||
|
|
81118d904a | ||
|
|
69cdc4148e | ||
|
|
1c71bf414d | ||
|
|
7cf57ae72d | ||
|
|
1b6f95fef4 | ||
|
|
38940eeeea | ||
|
|
6c950bad7c | ||
|
|
5e681929ae | ||
|
|
ea5a9da71e | ||
|
|
9c5ee59e19 | ||
|
|
55b1d3a191 | ||
|
|
a968aa7725 | ||
|
|
5e0a765917 | ||
|
|
0aeb9976f4 | ||
|
|
30a7da8112 | ||
|
|
f6a9dae422 | ||
|
|
62a7163334 | ||
|
|
e2f0467f5d | ||
|
|
3e3ecb1c3f | ||
|
|
27511d807f | ||
|
|
15077d087c | ||
|
|
5b01cc0c22 | ||
|
|
d1bcff865d | ||
|
|
0fce63665c | ||
|
|
1183e85eb4 | ||
|
|
3b86243f04 | ||
|
|
c251dae75e | ||
|
|
ecfd77f1ca | ||
|
|
9a0abc1bfc | ||
|
|
490d68e076 | ||
|
|
c45147fe6d | ||
|
|
bc3468e649 | ||
|
|
8fff6729a2 | ||
|
|
08f50acb9e | ||
|
|
436a5f5cd4 | ||
|
|
aca710048f | ||
|
|
673ad50e21 | ||
|
|
8ee86a61a0 | ||
|
|
0dda0a90cf | ||
|
|
220d8b888c | ||
|
|
42d5812577 | ||
|
|
dea4f5f8ff | ||
|
|
8f50eee330 | ||
|
|
8fd8dfcf74 | ||
|
|
10b27b9633 | ||
|
|
5808ee6dd7 | ||
|
|
a66fe7f467 | ||
|
|
18fef38702 | ||
|
|
3ad61d5d81 | ||
|
|
bb1f5b43be | ||
|
|
a642b20abc | ||
|
|
c112050455 | ||
|
|
43e3fc22c4 | ||
|
|
41c6177ae2 | ||
|
|
72ecd1ce74 | ||
|
|
2d0b975b6c | ||
|
|
8a0bc39a66 | ||
|
|
f3c7b6bfd1 | ||
|
|
0391e4e53a | ||
|
|
3ad3c21886 | ||
|
|
6e0ed751e1 | ||
|
|
c43c79a995 | ||
|
|
d6cc8b3042 | ||
|
|
2f4a6e33ec | ||
|
|
b9867e89cb | ||
|
|
13b18654f0 | ||
|
|
aafa1c7f47 | ||
|
|
638e3ad299 | ||
|
|
d9cfeb1ea3 | ||
|
|
e6786a2bc3 | ||
|
|
13571435a3 | ||
|
|
efb890db2d | ||
|
|
f3735187a6 | ||
|
|
3032594b26 | ||
|
|
1df7a029b4 | ||
|
|
f467fba151 | ||
|
|
8791313ec5 | ||
|
|
7798f932a0 | ||
|
|
a588607ec6 | ||
|
|
348764d99d | ||
|
|
5aeb088a73 | ||
|
|
e943b9fc84 | ||
|
|
892426eecb | ||
|
|
1d25b2b046 | ||
|
|
da70840be8 | ||
|
|
7632782ecd | ||
|
|
6fae647097 | ||
|
|
fc8b8c11d5 | ||
|
|
26a7922a34 | ||
|
|
c18b4f1f1a | ||
|
|
fa31a67499 | ||
|
|
742cd990ee | ||
|
|
8463af35c3 | ||
|
|
b34a4ab493 | ||
|
|
417ccdc3b4 | ||
|
|
7c46b784ef | ||
|
|
067b861d30 | ||
|
|
9f6ed3cec3 | ||
|
|
43edc887f9 | ||
|
|
6d4c64a436 | ||
|
|
0ed14fa236 | ||
|
|
51f2daf4b0 | ||
|
|
76f7bf9900 | ||
|
|
3fc715f066 | ||
|
|
b6811da84f | ||
|
|
1dffccd9da | ||
|
|
9ed9936c84 | ||
|
|
e75ae8c754 | ||
|
|
b68535b8cb | ||
|
|
5310498647 | ||
|
|
22b1a09aa2 | ||
|
|
6855fe06a7 | ||
|
|
affd8619c2 | ||
|
|
b67d5f396b | ||
|
|
b3039fdc76 | ||
|
|
9bdf5fe74a | ||
|
|
c675c2d318 | ||
|
|
2cd1f7d98e | ||
|
|
ce9ac8ea10 | ||
|
|
b90ab74975 | ||
|
|
6d3c3f1995 | ||
|
|
74fbaa18cd | ||
|
|
fc7c073691 | ||
|
|
29f504e201 | ||
|
|
eeb490ed15 | ||
|
|
c220b1e42c | ||
|
|
d973ae9ec6 | ||
|
|
f461683df5 | ||
|
|
41ed976941 | ||
|
|
e93ad5f118 | ||
|
|
d75ed964f8 | ||
|
|
284ac9b138 | ||
|
|
7448ec5adb | ||
|
|
caa6269bc7 | ||
|
|
31691c3b88 | ||
|
|
3a904a811f | ||
|
|
b927a31a53 | ||
|
|
d8dd75320c | ||
|
|
a613556246 | ||
|
|
8d2351d541 | ||
|
|
f72b603196 | ||
|
|
4eb17b57fb | ||
|
|
85a4b87267 | ||
|
|
0d320c58da | ||
|
|
ed1ff2caac | ||
|
|
d80646c258 | ||
|
|
a9b4316346 | ||
|
|
36776b96e7 | ||
|
|
7f2d3cd24f | ||
|
|
d046ae0606 | ||
|
|
e8c267275e | ||
|
|
a4951749a8 | ||
|
|
e1a2e8d9f5 | ||
|
|
f80c78e3a5 | ||
|
|
c541eca592 | ||
|
|
726aba0586 | ||
|
|
d300addee1 | ||
|
|
d5d16f01f4 | ||
|
|
2cb26e2699 | ||
|
|
b4793b4f9b | ||
|
|
045e70ccf1 | ||
|
|
ba23395c8e | ||
|
|
0aacd99168 | ||
|
|
e4b5d73dc4 | ||
|
|
bd950f687a | ||
|
|
aea23a488b | ||
|
|
22731df07b | ||
|
|
c55be164e6 | ||
|
|
9d73304c1a | ||
|
|
719b2026ab | ||
|
|
22416980d1 | ||
|
|
3d28b6704c | ||
|
|
5d1b104e1f | ||
|
|
4a8a68049d | ||
|
|
4b7fd1d46a | ||
|
|
0722922c03 | ||
|
|
40321d7966 | ||
|
|
434f3d2678 | ||
|
|
6dd9c2c5ba | ||
|
|
5e6be1660e | ||
|
|
31acb95d7a | ||
|
|
683190b711 | ||
|
|
ebb84c404f | ||
|
|
2ca6ce688b | ||
|
|
a40550b89d | ||
|
|
b2aea11cdb | ||
|
|
43b39fd1aa | ||
|
|
5cc8626e96 | ||
|
|
f95e9efbc0 | ||
|
|
25c974af8c | ||
|
|
b5c6f09a9e | ||
|
|
bd3e623240 | ||
|
|
63343653a9 | ||
|
|
d8b97c1077 | ||
|
|
e0b0edaeed | ||
|
|
3cafc9e13f | ||
|
|
13f31aed90 | ||
|
|
d513491046 | ||
|
|
281d2491a5 | ||
|
|
9857e1dd83 | ||
|
|
6b36b18029 | ||
|
|
d8868c5197 | ||
|
|
b141620125 | ||
|
|
51d8440dd4 | ||
|
|
5b2562a919 | ||
|
|
44a9da621e | ||
|
|
69aa6bf964 | ||
|
|
f9ef9da110 | ||
|
|
57ae9180c2 | ||
|
|
efe926d20c | ||
|
|
1081b8e720 | ||
|
|
8205921c4b | ||
|
|
da6c211611 | ||
|
|
354c1e0d4d | ||
|
|
855419d698 | ||
|
|
e94fd61b24 | ||
|
|
4cf9b73c3d | ||
|
|
8442fb66a5 | ||
|
|
f8cefa3eff | ||
|
|
d83e0fb8d8 | ||
|
|
3e9da06365 | ||
|
|
bda70c988e | ||
|
|
229e897070 | ||
|
|
f20e83a32b | ||
|
|
dd84f9a896 | ||
|
|
e6df4266f6 | ||
|
|
b591e1a2b7 | ||
|
|
3dab058c73 | ||
|
|
c7bc6eb812 | ||
|
|
c690ecc1fd | ||
|
|
73e272f06e | ||
|
|
95d087b51b | ||
|
|
40ae6b6bc8 | ||
|
|
fe20534a98 | ||
|
|
dd7af477ac | ||
|
|
178f74b753 | ||
|
|
a14f563ec8 | ||
|
|
ff109e1806 | ||
|
|
5e46694b68 | ||
|
|
73af9a56e5 | ||
|
|
d2aa920275 | ||
|
|
c34f3530c8 |
@@ -1,13 +1,19 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 1.0.0b2
|
current_version = 1.9.0a1
|
||||||
parse = (?P<major>\d+)
|
parse = (?P<major>[\d]+) # major version number
|
||||||
\.(?P<minor>\d+)
|
\.(?P<minor>[\d]+) # minor version number
|
||||||
\.(?P<patch>\d+)
|
\.(?P<patch>[\d]+) # patch version number
|
||||||
((?P<prekind>a|b|rc)
|
(?P<prerelease> # optional pre-release - ex: a1, b2, rc25
|
||||||
(?P<pre>\d+) # pre-release version num
|
(?P<prekind>a|b|rc) # pre-release type
|
||||||
|
(?P<num>[\d]+) # pre-release version number
|
||||||
)?
|
)?
|
||||||
serialize =
|
( # optional nightly release indicator
|
||||||
{major}.{minor}.{patch}{prekind}{pre}
|
\.(?P<nightly>dev[0-9]+) # ex: .dev02142023
|
||||||
|
)? # expected matches: `1.15.0`, `1.5.0a11`, `1.5.0a1.dev123`, `1.5.0.dev123457`, expected failures: `1`, `1.5`, `1.5.2-a1`, `text1.5.0`
|
||||||
|
serialize =
|
||||||
|
{major}.{minor}.{patch}{prekind}{num}.{nightly}
|
||||||
|
{major}.{minor}.{patch}.{nightly}
|
||||||
|
{major}.{minor}.{patch}{prekind}{num}
|
||||||
{major}.{minor}.{patch}
|
{major}.{minor}.{patch}
|
||||||
commit = False
|
commit = False
|
||||||
tag = False
|
tag = False
|
||||||
@@ -15,23 +21,17 @@ tag = False
|
|||||||
[bumpversion:part:prekind]
|
[bumpversion:part:prekind]
|
||||||
first_value = a
|
first_value = a
|
||||||
optional_value = final
|
optional_value = final
|
||||||
values =
|
values =
|
||||||
a
|
a
|
||||||
b
|
b
|
||||||
rc
|
rc
|
||||||
final
|
final
|
||||||
|
|
||||||
[bumpversion:part:pre]
|
[bumpversion:part:num]
|
||||||
first_value = 1
|
first_value = 1
|
||||||
|
|
||||||
[bumpversion:file:setup.py]
|
[bumpversion:part:nightly]
|
||||||
|
|
||||||
[bumpversion:file:core/setup.py]
|
[bumpversion:file:core/setup.py]
|
||||||
|
|
||||||
[bumpversion:file:core/dbt/version.py]
|
[bumpversion:file:core/dbt/version.py]
|
||||||
|
|
||||||
[bumpversion:file:core/scripts/create_adapter_plugins.py]
|
|
||||||
|
|
||||||
[bumpversion:file:plugins/postgres/setup.py]
|
|
||||||
|
|
||||||
[bumpversion:file:plugins/postgres/dbt/adapters/postgres/__version__.py]
|
|
||||||
|
|||||||
24
.changes/0.0.0.md
Normal file
24
.changes/0.0.0.md
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
## Previous Releases
|
||||||
|
|
||||||
|
For information on prior major and minor releases, see their changelogs:
|
||||||
|
|
||||||
|
|
||||||
|
* [1.7](https://github.com/dbt-labs/dbt-core/blob/1.7.latest/CHANGELOG.md)
|
||||||
|
* [1.6](https://github.com/dbt-labs/dbt-core/blob/1.6.latest/CHANGELOG.md)
|
||||||
|
* [1.5](https://github.com/dbt-labs/dbt-core/blob/1.5.latest/CHANGELOG.md)
|
||||||
|
* [1.4](https://github.com/dbt-labs/dbt-core/blob/1.4.latest/CHANGELOG.md)
|
||||||
|
* [1.3](https://github.com/dbt-labs/dbt-core/blob/1.3.latest/CHANGELOG.md)
|
||||||
|
* [1.2](https://github.com/dbt-labs/dbt-core/blob/1.2.latest/CHANGELOG.md)
|
||||||
|
* [1.1](https://github.com/dbt-labs/dbt-core/blob/1.1.latest/CHANGELOG.md)
|
||||||
|
* [1.0](https://github.com/dbt-labs/dbt-core/blob/1.0.latest/CHANGELOG.md)
|
||||||
|
* [0.21](https://github.com/dbt-labs/dbt-core/blob/0.21.latest/CHANGELOG.md)
|
||||||
|
* [0.20](https://github.com/dbt-labs/dbt-core/blob/0.20.latest/CHANGELOG.md)
|
||||||
|
* [0.19](https://github.com/dbt-labs/dbt-core/blob/0.19.latest/CHANGELOG.md)
|
||||||
|
* [0.18](https://github.com/dbt-labs/dbt-core/blob/0.18.latest/CHANGELOG.md)
|
||||||
|
* [0.17](https://github.com/dbt-labs/dbt-core/blob/0.17.latest/CHANGELOG.md)
|
||||||
|
* [0.16](https://github.com/dbt-labs/dbt-core/blob/0.16.latest/CHANGELOG.md)
|
||||||
|
* [0.15](https://github.com/dbt-labs/dbt-core/blob/0.15.latest/CHANGELOG.md)
|
||||||
|
* [0.14](https://github.com/dbt-labs/dbt-core/blob/0.14.latest/CHANGELOG.md)
|
||||||
|
* [0.13](https://github.com/dbt-labs/dbt-core/blob/0.13.latest/CHANGELOG.md)
|
||||||
|
* [0.12](https://github.com/dbt-labs/dbt-core/blob/0.12.latest/CHANGELOG.md)
|
||||||
|
* [0.11 and earlier](https://github.com/dbt-labs/dbt-core/blob/0.11.latest/CHANGELOG.md)
|
||||||
53
.changes/README.md
Normal file
53
.changes/README.md
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# CHANGELOG Automation
|
||||||
|
|
||||||
|
We use [changie](https://changie.dev/) to automate `CHANGELOG` generation. For installation and format/command specifics, see the documentation.
|
||||||
|
|
||||||
|
### Quick Tour
|
||||||
|
|
||||||
|
- All new change entries get generated under `/.changes/unreleased` as a yaml file
|
||||||
|
- `header.tpl.md` contains the contents of the entire CHANGELOG file
|
||||||
|
- `0.0.0.md` contains the contents of the footer for the entire CHANGELOG file. changie looks to be in the process of supporting a footer file the same as it supports a header file. Switch to that when available. For now, the 0.0.0 in the file name forces it to the bottom of the changelog no matter what version we are releasing.
|
||||||
|
- `.changie.yaml` contains the fields in a change, the format of a single change, as well as the format of the Contributors section for each version.
|
||||||
|
|
||||||
|
### Workflow
|
||||||
|
|
||||||
|
#### Daily workflow
|
||||||
|
Almost every code change we make associated with an issue will require a `CHANGELOG` entry. After you have created the PR in GitHub, run `changie new` and follow the command prompts to generate a yaml file with your change details. This only needs to be done once per PR.
|
||||||
|
|
||||||
|
The `changie new` command will ensure correct file format and file name. There is a one to one mapping of issues to changes. Multiple issues cannot be lumped into a single entry. If you make a mistake, the yaml file may be directly modified and saved as long as the format is preserved.
|
||||||
|
|
||||||
|
Note: If your PR has been cleared by the Core Team as not needing a changelog entry, the `Skip Changelog` label may be put on the PR to bypass the GitHub action that blacks PRs from being merged when they are missing a `CHANGELOG` entry.
|
||||||
|
|
||||||
|
#### Prerelease Workflow
|
||||||
|
These commands batch up changes in `/.changes/unreleased` to be included in this prerelease and move those files to a directory named for the release version. The `--move-dir` will be created if it does not exist and is created in `/.changes`.
|
||||||
|
|
||||||
|
```
|
||||||
|
changie batch <version> --move-dir '<version>' --prerelease 'rc1'
|
||||||
|
changie merge
|
||||||
|
```
|
||||||
|
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
changie batch 1.0.5 --move-dir '1.0.5' --prerelease 'rc1'
|
||||||
|
changie merge
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Final Release Workflow
|
||||||
|
These commands batch up changes in `/.changes/unreleased` as well as `/.changes/<version>` to be included in this final release and delete all prereleases. This rolls all prereleases up into a single final release. All `yaml` files in `/unreleased` and `<version>` will be deleted at this point.
|
||||||
|
|
||||||
|
```
|
||||||
|
changie batch <version> --include '<version>' --remove-prereleases
|
||||||
|
changie merge
|
||||||
|
```
|
||||||
|
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
changie batch 1.0.5 --include '1.0.5' --remove-prereleases
|
||||||
|
changie merge
|
||||||
|
```
|
||||||
|
|
||||||
|
### A Note on Manual Edits & Gotchas
|
||||||
|
- Changie generates markdown files in the `.changes` directory that are parsed together with the `changie merge` command. Every time `changie merge` is run, it regenerates the entire file. For this reason, any changes made directly to `CHANGELOG.md` will be overwritten on the next run of `changie merge`.
|
||||||
|
- If changes need to be made to the `CHANGELOG.md`, make the changes to the relevant `<version>.md` file located in the `/.changes` directory. You will then run `changie merge` to regenerate the `CHANGELOG.MD`.
|
||||||
|
- Do not run `changie batch` again on released versions. Our final release workflow deletes all of the yaml files associated with individual changes. If for some reason modifications to the `CHANGELOG.md` are required after we've generated the final release `CHANGELOG.md`, the modifications need to be done manually to the `<version>.md` file in the `/.changes` directory.
|
||||||
|
- changie can modify, create and delete files depending on the command you run. This is expected. Be sure to commit everything that has been modified and deleted.
|
||||||
6
.changes/header.tpl.md
Executable file
6
.changes/header.tpl.md
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
# dbt Core Changelog
|
||||||
|
|
||||||
|
- This file provides a full account of all changes to `dbt-core`
|
||||||
|
- Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases.
|
||||||
|
- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version.
|
||||||
|
- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md#adding-changelog-entry)
|
||||||
0
core/dbt/include/starter_project/data/.gitkeep → .changes/unreleased/.gitkeep
Normal file → Executable file
0
core/dbt/include/starter_project/data/.gitkeep → .changes/unreleased/.gitkeep
Normal file → Executable file
6
.changes/unreleased/Dependencies-20240509-093717.yaml
Normal file
6
.changes/unreleased/Dependencies-20240509-093717.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Dependencies
|
||||||
|
body: Remove logbook dependency
|
||||||
|
time: 2024-05-09T09:37:17.745129-05:00
|
||||||
|
custom:
|
||||||
|
Author: emmyoop
|
||||||
|
Issue: "8027"
|
||||||
6
.changes/unreleased/Docs-20240311-140344.yaml
Normal file
6
.changes/unreleased/Docs-20240311-140344.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Docs
|
||||||
|
body: Enable display of unit tests
|
||||||
|
time: 2024-03-11T14:03:44.490834-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "501"
|
||||||
6
.changes/unreleased/Docs-20240501-021050.yaml
Normal file
6
.changes/unreleased/Docs-20240501-021050.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Docs
|
||||||
|
body: Unit tests not rendering
|
||||||
|
time: 2024-05-01T02:10:50.987412+02:00
|
||||||
|
custom:
|
||||||
|
Author: aranke
|
||||||
|
Issue: "506"
|
||||||
6
.changes/unreleased/Docs-20240516-223036.yaml
Normal file
6
.changes/unreleased/Docs-20240516-223036.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Docs
|
||||||
|
body: Add support for Saved Query node
|
||||||
|
time: 2024-05-16T22:30:36.206492-07:00
|
||||||
|
custom:
|
||||||
|
Author: ChenyuLInx
|
||||||
|
Issue: "486"
|
||||||
6
.changes/unreleased/Docs-20240613-151048.yaml
Normal file
6
.changes/unreleased/Docs-20240613-151048.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Docs
|
||||||
|
body: Fix npm security vulnerabilities as of June 2024
|
||||||
|
time: 2024-06-13T15:10:48.301989+01:00
|
||||||
|
custom:
|
||||||
|
Author: aranke
|
||||||
|
Issue: "513"
|
||||||
6
.changes/unreleased/Features-20240506-175642.yaml
Normal file
6
.changes/unreleased/Features-20240506-175642.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: serialize inferred primary key
|
||||||
|
time: 2024-05-06T17:56:42.757673-05:00
|
||||||
|
custom:
|
||||||
|
Author: dave-connors-3
|
||||||
|
Issue: "9824"
|
||||||
6
.changes/unreleased/Features-20240507-162717.yaml
Normal file
6
.changes/unreleased/Features-20240507-162717.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: 'Add unit_test: selection method'
|
||||||
|
time: 2024-05-07T16:27:17.047585-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10053"
|
||||||
7
.changes/unreleased/Features-20240522-000309.yaml
Normal file
7
.changes/unreleased/Features-20240522-000309.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Features
|
||||||
|
body: Maximally parallelize dbt clone
|
||||||
|
in clone command"
|
||||||
|
time: 2024-05-22T00:03:09.765977-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "7914"
|
||||||
6
.changes/unreleased/Features-20240527-124405.yaml
Normal file
6
.changes/unreleased/Features-20240527-124405.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: Add --host flag to dbt docs serve, defaulting to '127.0.0.1'
|
||||||
|
time: 2024-05-27T12:44:05.040843-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10229"
|
||||||
6
.changes/unreleased/Features-20240531-150816.yaml
Normal file
6
.changes/unreleased/Features-20240531-150816.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: Update data_test to accept arbitrary config options
|
||||||
|
time: 2024-05-31T15:08:16.431966-05:00
|
||||||
|
custom:
|
||||||
|
Author: McKnight-42
|
||||||
|
Issue: "10197"
|
||||||
6
.changes/unreleased/Features-20240606-112334.yaml
Normal file
6
.changes/unreleased/Features-20240606-112334.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: add pre_model and post_model hook calls to data and unit tests to be able to provide extra config options
|
||||||
|
time: 2024-06-06T11:23:34.758675-05:00
|
||||||
|
custom:
|
||||||
|
Author: McKnight-42
|
||||||
|
Issue: "10198"
|
||||||
6
.changes/unreleased/Features-20240617-103948.yaml
Normal file
6
.changes/unreleased/Features-20240617-103948.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: add --empty value to jinja context as flags.EMPTY
|
||||||
|
time: 2024-06-17T10:39:48.275801-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10317"
|
||||||
6
.changes/unreleased/Features-20240625-095107.yaml
Normal file
6
.changes/unreleased/Features-20240625-095107.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: Support cumulative_type_params & sub-daily granularities in semantic manifest.
|
||||||
|
time: 2024-06-25T09:51:07.983248-07:00
|
||||||
|
custom:
|
||||||
|
Author: courtneyholcomb
|
||||||
|
Issue: "10360"
|
||||||
6
.changes/unreleased/Features-20240627-162953.yaml
Normal file
6
.changes/unreleased/Features-20240627-162953.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: Add time_granularity to metric spec.
|
||||||
|
time: 2024-06-27T16:29:53.500917-07:00
|
||||||
|
custom:
|
||||||
|
Author: courtneyholcomb
|
||||||
|
Issue: "10376"
|
||||||
6
.changes/unreleased/Features-20240712-214546.yaml
Normal file
6
.changes/unreleased/Features-20240712-214546.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Features
|
||||||
|
body: Support standard schema/database fields for snapshots
|
||||||
|
time: 2024-07-12T21:45:46.06011-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10301"
|
||||||
6
.changes/unreleased/Fixes-20230601-204157.yaml
Normal file
6
.changes/unreleased/Fixes-20230601-204157.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Remove unused check_new method
|
||||||
|
time: 2023-06-01T20:41:57.556342+02:00
|
||||||
|
custom:
|
||||||
|
Author: kevinneville
|
||||||
|
Issue: "7586"
|
||||||
6
.changes/unreleased/Fixes-20240113-073615.yaml
Normal file
6
.changes/unreleased/Fixes-20240113-073615.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Convert "Skipping model due to fail_fast" message to DEBUG level
|
||||||
|
time: 2024-01-13T07:36:15.836294-00:00
|
||||||
|
custom:
|
||||||
|
Author: scottgigante,nevdelap
|
||||||
|
Issue: "8774"
|
||||||
7
.changes/unreleased/Fixes-20240508-151127.yaml
Normal file
7
.changes/unreleased/Fixes-20240508-151127.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: 'Restore previous behavior for --favor-state: only favor defer_relation if not
|
||||||
|
selected in current command"'
|
||||||
|
time: 2024-05-08T15:11:27.510912+02:00
|
||||||
|
custom:
|
||||||
|
Author: jtcohen6
|
||||||
|
Issue: "10107"
|
||||||
6
.changes/unreleased/Fixes-20240509-091411.yaml
Normal file
6
.changes/unreleased/Fixes-20240509-091411.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Unit test fixture (csv) returns null for empty value
|
||||||
|
time: 2024-05-09T09:14:11.772709-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "9881"
|
||||||
7
.changes/unreleased/Fixes-20240516-153913.yaml
Normal file
7
.changes/unreleased/Fixes-20240516-153913.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Fix json format log and --quiet for ls and jinja print by converting print call
|
||||||
|
to fire events
|
||||||
|
time: 2024-05-16T15:39:13.896723-07:00
|
||||||
|
custom:
|
||||||
|
Author: ChenyuLInx
|
||||||
|
Issue: "8756"
|
||||||
6
.changes/unreleased/Fixes-20240516-223510.yaml
Normal file
6
.changes/unreleased/Fixes-20240516-223510.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Add resource type to saved_query
|
||||||
|
time: 2024-05-16T22:35:10.287514-07:00
|
||||||
|
custom:
|
||||||
|
Author: ChenyuLInx
|
||||||
|
Issue: "10168"
|
||||||
7
.changes/unreleased/Fixes-20240522-182855.yaml
Normal file
7
.changes/unreleased/Fixes-20240522-182855.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: 'Fix: Order-insensitive unit test equality assertion for expected/actual with
|
||||||
|
multiple nulls'
|
||||||
|
time: 2024-05-22T18:28:55.91733-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10167"
|
||||||
6
.changes/unreleased/Fixes-20240523-204251.yaml
Normal file
6
.changes/unreleased/Fixes-20240523-204251.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Renaming or removing a contracted model should raise a BreakingChange warning/error
|
||||||
|
time: 2024-05-23T20:42:51.033946-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10116"
|
||||||
6
.changes/unreleased/Fixes-20240524-131135.yaml
Normal file
6
.changes/unreleased/Fixes-20240524-131135.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: prefer disabled project nodes to external node
|
||||||
|
time: 2024-05-24T13:11:35.440443-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10224"
|
||||||
6
.changes/unreleased/Fixes-20240605-111652.yaml
Normal file
6
.changes/unreleased/Fixes-20240605-111652.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Fix issues with selectors and inline nodes
|
||||||
|
time: 2024-06-05T11:16:52.187667-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: 8943 9269
|
||||||
6
.changes/unreleased/Fixes-20240607-134648.yaml
Normal file
6
.changes/unreleased/Fixes-20240607-134648.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Fix snapshot config to work in yaml files
|
||||||
|
time: 2024-06-07T13:46:48.383215-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "4000"
|
||||||
6
.changes/unreleased/Fixes-20240610-132130.yaml
Normal file
6
.changes/unreleased/Fixes-20240610-132130.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Improve handling of error when loading schema file list
|
||||||
|
time: 2024-06-10T13:21:30.963371-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10284"
|
||||||
6
.changes/unreleased/Fixes-20240612-124256.yaml
Normal file
6
.changes/unreleased/Fixes-20240612-124256.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Saved Query node fail during skip
|
||||||
|
time: 2024-06-12T12:42:56.329073-07:00
|
||||||
|
custom:
|
||||||
|
Author: ChenyuLInx
|
||||||
|
Issue: "10029"
|
||||||
6
.changes/unreleased/Fixes-20240612-152139.yaml
Normal file
6
.changes/unreleased/Fixes-20240612-152139.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Implement state:modified for saved queries
|
||||||
|
time: 2024-06-12T15:21:39.851426-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10294"
|
||||||
6
.changes/unreleased/Fixes-20240613-183117.yaml
Normal file
6
.changes/unreleased/Fixes-20240613-183117.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: DOn't warn on `unit_test` config paths that are properly used
|
||||||
|
time: 2024-06-13T18:31:17.486497-07:00
|
||||||
|
custom:
|
||||||
|
Author: QMalcolm
|
||||||
|
Issue: "10311"
|
||||||
6
.changes/unreleased/Fixes-20240624-171729.yaml
Normal file
6
.changes/unreleased/Fixes-20240624-171729.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Fix setting `silence` of `warn_error_options` via `dbt_project.yaml` flags
|
||||||
|
time: 2024-06-24T17:17:29.464865-07:00
|
||||||
|
custom:
|
||||||
|
Author: QMalcolm
|
||||||
|
Issue: "10160"
|
||||||
7
.changes/unreleased/Fixes-20240625-171737.yaml
Normal file
7
.changes/unreleased/Fixes-20240625-171737.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Attempt to provide test fixture tables with all values to set types correctly
|
||||||
|
for comparisong with source tables
|
||||||
|
time: 2024-06-25T17:17:37.514619-07:00
|
||||||
|
custom:
|
||||||
|
Author: versusfacit
|
||||||
|
Issue: "10365"
|
||||||
6
.changes/unreleased/Fixes-20240627-154448.yaml
Normal file
6
.changes/unreleased/Fixes-20240627-154448.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Limit data_tests deprecation to root_project
|
||||||
|
time: 2024-06-27T15:44:48.579869-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "9835"
|
||||||
6
.changes/unreleased/Fixes-20240709-172440.yaml
Normal file
6
.changes/unreleased/Fixes-20240709-172440.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: CLI flags should take precedence over env var flags
|
||||||
|
time: 2024-07-09T17:24:40.918977-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10304"
|
||||||
6
.changes/unreleased/Fixes-20240716-133703.yaml
Normal file
6
.changes/unreleased/Fixes-20240716-133703.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Fix over deletion of generated_metrics in partial parsing
|
||||||
|
time: 2024-07-16T13:37:03.49651-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10450"
|
||||||
6
.changes/unreleased/Fixes-20240716-171427.yaml
Normal file
6
.changes/unreleased/Fixes-20240716-171427.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixes
|
||||||
|
body: Fix error constructing warn_error_options
|
||||||
|
time: 2024-07-16T17:14:27.837171-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10452"
|
||||||
6
.changes/unreleased/Security-20240522-094540.yaml
Normal file
6
.changes/unreleased/Security-20240522-094540.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Security
|
||||||
|
body: Explicitly bind to localhost in docs serve
|
||||||
|
time: 2024-05-22T09:45:40.748185-04:00
|
||||||
|
custom:
|
||||||
|
Author: ChenyuLInx michelleark
|
||||||
|
Issue: "10209"
|
||||||
6
.changes/unreleased/Under the Hood-20240502-154430.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240502-154430.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: Clear error message for Private package in dbt-core
|
||||||
|
time: 2024-05-02T15:44:30.713097-07:00
|
||||||
|
custom:
|
||||||
|
Author: ChenyuLInx
|
||||||
|
Issue: "10083"
|
||||||
6
.changes/unreleased/Under the Hood-20240506-145511.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240506-145511.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: Enable use of context in serialization
|
||||||
|
time: 2024-05-06T14:55:11.1812-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10093"
|
||||||
6
.changes/unreleased/Under the Hood-20240519-155946.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240519-155946.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: Make RSS high water mark measurement more accurate on Linux
|
||||||
|
time: 2024-05-19T15:59:46.700842315-04:00
|
||||||
|
custom:
|
||||||
|
Author: peterallenwebb
|
||||||
|
Issue: "10177"
|
||||||
6
.changes/unreleased/Under the Hood-20240529-102814.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240529-102814.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: Enable record filtering by type.
|
||||||
|
time: 2024-05-29T10:28:14.547624-05:00
|
||||||
|
custom:
|
||||||
|
Author: emmyoop
|
||||||
|
Issue: "10240"
|
||||||
6
.changes/unreleased/Under the Hood-20240618-140652.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240618-140652.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: Remove IntermediateSnapshotNode
|
||||||
|
time: 2024-06-18T14:06:52.618602-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10326"
|
||||||
6
.changes/unreleased/Under the Hood-20240701-131750.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240701-131750.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: Additional logging for skipped ephemeral models
|
||||||
|
time: 2024-07-01T13:17:50.827788-04:00
|
||||||
|
custom:
|
||||||
|
Author: gshank
|
||||||
|
Issue: "10389"
|
||||||
6
.changes/unreleased/Under the Hood-20240716-184859.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240716-184859.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: bump black to 24.3.0
|
||||||
|
time: 2024-07-16T18:48:59.651834-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10454"
|
||||||
6
.changes/unreleased/Under the Hood-20240716-205703.yaml
Normal file
6
.changes/unreleased/Under the Hood-20240716-205703.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
kind: Under the Hood
|
||||||
|
body: generate protos with protoc version 5.26.1
|
||||||
|
time: 2024-07-16T20:57:03.332448-04:00
|
||||||
|
custom:
|
||||||
|
Author: michelleark
|
||||||
|
Issue: "10457"
|
||||||
96
.changie.yaml
Normal file
96
.changie.yaml
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
changesDir: .changes
|
||||||
|
unreleasedDir: unreleased
|
||||||
|
headerPath: header.tpl.md
|
||||||
|
versionHeaderPath: ""
|
||||||
|
changelogPath: CHANGELOG.md
|
||||||
|
versionExt: md
|
||||||
|
envPrefix: "CHANGIE_"
|
||||||
|
versionFormat: '## dbt-core {{.Version}} - {{.Time.Format "January 02, 2006"}}'
|
||||||
|
kindFormat: '### {{.Kind}}'
|
||||||
|
changeFormat: |-
|
||||||
|
{{- $IssueList := list }}
|
||||||
|
{{- $changes := splitList " " $.Custom.Issue }}
|
||||||
|
{{- range $issueNbr := $changes }}
|
||||||
|
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-core/issues/nbr)" | replace "nbr" $issueNbr }}
|
||||||
|
{{- $IssueList = append $IssueList $changeLink }}
|
||||||
|
{{- end -}}
|
||||||
|
- {{.Body}} ({{ range $index, $element := $IssueList }}{{if $index}}, {{end}}{{$element}}{{end}})
|
||||||
|
|
||||||
|
kinds:
|
||||||
|
- label: Breaking Changes
|
||||||
|
- label: Features
|
||||||
|
- label: Fixes
|
||||||
|
- label: Docs
|
||||||
|
changeFormat: |-
|
||||||
|
{{- $IssueList := list }}
|
||||||
|
{{- $changes := splitList " " $.Custom.Issue }}
|
||||||
|
{{- range $issueNbr := $changes }}
|
||||||
|
{{- $changeLink := "[dbt-docs/#nbr](https://github.com/dbt-labs/dbt-docs/issues/nbr)" | replace "nbr" $issueNbr }}
|
||||||
|
{{- $IssueList = append $IssueList $changeLink }}
|
||||||
|
{{- end -}}
|
||||||
|
- {{.Body}} ({{ range $index, $element := $IssueList }}{{if $index}}, {{end}}{{$element}}{{end}})
|
||||||
|
- label: Under the Hood
|
||||||
|
- label: Dependencies
|
||||||
|
- label: Security
|
||||||
|
|
||||||
|
newlines:
|
||||||
|
afterChangelogHeader: 1
|
||||||
|
afterKind: 1
|
||||||
|
afterChangelogVersion: 1
|
||||||
|
beforeKind: 1
|
||||||
|
endOfVersion: 1
|
||||||
|
|
||||||
|
custom:
|
||||||
|
- key: Author
|
||||||
|
label: GitHub Username(s) (separated by a single space if multiple)
|
||||||
|
type: string
|
||||||
|
minLength: 3
|
||||||
|
- key: Issue
|
||||||
|
label: GitHub Issue Number (separated by a single space if multiple)
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
|
||||||
|
footerFormat: |
|
||||||
|
{{- $contributorDict := dict }}
|
||||||
|
{{- /* ensure all names in this list are all lowercase for later matching purposes */}}
|
||||||
|
{{- $core_team := splitList " " .Env.CORE_TEAM }}
|
||||||
|
{{- /* ensure we always skip snyk and dependabot in addition to the core team */}}
|
||||||
|
{{- $maintainers := list "dependabot[bot]" "snyk-bot"}}
|
||||||
|
{{- range $team_member := $core_team }}
|
||||||
|
{{- $team_member_lower := lower $team_member }}
|
||||||
|
{{- $maintainers = append $maintainers $team_member_lower }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $change := .Changes }}
|
||||||
|
{{- $authorList := splitList " " $change.Custom.Author }}
|
||||||
|
{{- /* loop through all authors for a single changelog */}}
|
||||||
|
{{- range $author := $authorList }}
|
||||||
|
{{- $authorLower := lower $author }}
|
||||||
|
{{- /* we only want to include non-core team contributors */}}
|
||||||
|
{{- if not (has $authorLower $maintainers)}}
|
||||||
|
{{- $changeList := splitList " " $change.Custom.Author }}
|
||||||
|
{{- $IssueList := list }}
|
||||||
|
{{- $changeLink := $change.Kind }}
|
||||||
|
{{- $changes := splitList " " $change.Custom.Issue }}
|
||||||
|
{{- range $issueNbr := $changes }}
|
||||||
|
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-core/issues/nbr)" | replace "nbr" $issueNbr }}
|
||||||
|
{{- $IssueList = append $IssueList $changeLink }}
|
||||||
|
{{- end }}
|
||||||
|
{{- /* check if this contributor has other changes associated with them already */}}
|
||||||
|
{{- if hasKey $contributorDict $author }}
|
||||||
|
{{- $contributionList := get $contributorDict $author }}
|
||||||
|
{{- $contributionList = concat $contributionList $IssueList }}
|
||||||
|
{{- $contributorDict := set $contributorDict $author $contributionList }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $contributionList := $IssueList }}
|
||||||
|
{{- $contributorDict := set $contributorDict $author $contributionList }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end}}
|
||||||
|
{{- end}}
|
||||||
|
{{- end }}
|
||||||
|
{{- /* no indentation here for formatting so the final markdown doesn't have unneeded indentations */}}
|
||||||
|
{{- if $contributorDict}}
|
||||||
|
### Contributors
|
||||||
|
{{- range $k,$v := $contributorDict }}
|
||||||
|
- [@{{$k}}](https://github.com/{{$k}}) ({{ range $index, $element := $v }}{{if $index}}, {{end}}{{$element}}{{end}})
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
15
.flake8
Normal file
15
.flake8
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
[flake8]
|
||||||
|
select =
|
||||||
|
E
|
||||||
|
W
|
||||||
|
F
|
||||||
|
ignore =
|
||||||
|
W503 # makes Flake8 work like black
|
||||||
|
W504
|
||||||
|
E203 # makes Flake8 work like black
|
||||||
|
E704 # makes Flake8 work like black
|
||||||
|
E741
|
||||||
|
E501 # long line checking is done in black
|
||||||
|
exclude = test/
|
||||||
|
per-file-ignores =
|
||||||
|
*/__init__.py: F401
|
||||||
2
.git-blame-ignore-revs
Normal file
2
.git-blame-ignore-revs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Reformatting dbt-core via black, flake8, mypy, and assorted pre-commit hooks.
|
||||||
|
43e3fc22c4eae4d3d901faba05e33c40f1f1dc5a
|
||||||
6
.gitattributes
vendored
Normal file
6
.gitattributes
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
core/dbt/task/docs/index.html binary
|
||||||
|
tests/functional/artifacts/data/state/*/manifest.json binary
|
||||||
|
core/dbt/docs/build/html/searchindex.js binary
|
||||||
|
core/dbt/docs/build/html/index.html binary
|
||||||
|
performance/runner/Cargo.lock binary
|
||||||
|
core/dbt/events/types_pb2.py binary
|
||||||
18
.github/CODEOWNERS
vendored
Normal file
18
.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# This file contains the code owners for the dbt-core repo.
|
||||||
|
# PRs will be automatically assigned for review to the associated
|
||||||
|
# team(s) or person(s) that touches any files that are mapped to them.
|
||||||
|
#
|
||||||
|
# A statement takes precedence over the statements above it so more general
|
||||||
|
# assignments are found at the top with specific assignments being lower in
|
||||||
|
# the ordering (i.e. catch all assignment should be the first item)
|
||||||
|
#
|
||||||
|
# Consult GitHub documentation for formatting guidelines:
|
||||||
|
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file
|
||||||
|
|
||||||
|
# As a default for areas with no assignment,
|
||||||
|
# the core team as a whole will be assigned
|
||||||
|
* @dbt-labs/core-team
|
||||||
|
|
||||||
|
### ARTIFACTS
|
||||||
|
|
||||||
|
/schemas/dbt @dbt-labs/cloud-artifacts
|
||||||
30
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
30
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
@@ -9,23 +9,33 @@ body:
|
|||||||
Thanks for taking the time to fill out this bug report!
|
Thanks for taking the time to fill out this bug report!
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Is there an existing issue for this?
|
label: Is this a new bug in dbt-core?
|
||||||
description: Please search to see if an issue already exists for the bug you encountered.
|
description: >
|
||||||
|
In other words, is this an error, flaw, failure or fault in our software?
|
||||||
|
|
||||||
|
If this is a bug that broke existing functionality that used to work, please open a regression issue.
|
||||||
|
If this is a bug in an adapter plugin, please open an issue in the adapter's repository.
|
||||||
|
If this is a bug experienced while using dbt Cloud, please report to [support](mailto:support@getdbt.com).
|
||||||
|
If this is a request for help or troubleshooting code in your own dbt project, please join our [dbt Community Slack](https://www.getdbt.com/community/join-the-community/) or open a [Discussion question](https://github.com/dbt-labs/docs.getdbt.com/discussions).
|
||||||
|
|
||||||
|
Please search to see if an issue already exists for the bug you encountered.
|
||||||
options:
|
options:
|
||||||
- label: I have searched the existing issues
|
- label: I believe this is a new bug in dbt-core
|
||||||
|
required: true
|
||||||
|
- label: I have searched the existing issues, and I could not find an existing issue for this bug
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Current Behavior
|
label: Current Behavior
|
||||||
description: A concise description of what you're experiencing.
|
description: A concise description of what you're experiencing.
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Expected Behavior
|
label: Expected Behavior
|
||||||
description: A concise description of what you expected to happen.
|
description: A concise description of what you expected to happen.
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Steps To Reproduce
|
label: Steps To Reproduce
|
||||||
@@ -36,7 +46,7 @@ body:
|
|||||||
3. Run '...'
|
3. Run '...'
|
||||||
4. See error...
|
4. See error...
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: logs
|
id: logs
|
||||||
attributes:
|
attributes:
|
||||||
@@ -52,8 +62,8 @@ body:
|
|||||||
description: |
|
description: |
|
||||||
examples:
|
examples:
|
||||||
- **OS**: Ubuntu 20.04
|
- **OS**: Ubuntu 20.04
|
||||||
- **Python**: 3.7.2 (`python --version`)
|
- **Python**: 3.9.12 (`python3 --version`)
|
||||||
- **dbt**: 0.21.0 (`dbt --version`)
|
- **dbt-core**: 1.1.1 (`dbt --version`)
|
||||||
value: |
|
value: |
|
||||||
- OS:
|
- OS:
|
||||||
- Python:
|
- Python:
|
||||||
@@ -64,13 +74,15 @@ body:
|
|||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: database
|
id: database
|
||||||
attributes:
|
attributes:
|
||||||
label: What database are you using dbt with?
|
label: Which database adapter are you using with dbt?
|
||||||
|
description: If the bug is specific to the database or adapter, please open the issue in that adapter's repository instead
|
||||||
multiple: true
|
multiple: true
|
||||||
options:
|
options:
|
||||||
- postgres
|
- postgres
|
||||||
- redshift
|
- redshift
|
||||||
- snowflake
|
- snowflake
|
||||||
- bigquery
|
- bigquery
|
||||||
|
- spark
|
||||||
- other (mention it in "Additional Context")
|
- other (mention it in "Additional Context")
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
18
.github/ISSUE_TEMPLATE/code-docs.yml
vendored
Normal file
18
.github/ISSUE_TEMPLATE/code-docs.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: 📄 Code docs
|
||||||
|
description: Report an issue for markdown files within this repo, such as README, ARCHITECTURE, etc.
|
||||||
|
title: "[Code docs] <title>"
|
||||||
|
labels: ["triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for taking the time to fill out this code docs issue!
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Please describe the issue and your proposals.
|
||||||
|
description: |
|
||||||
|
Links? References? Anything that will give us more context about the issue you are encountering!
|
||||||
|
|
||||||
|
Tip: You can attach images by clicking this area to highlight it and then dragging files in.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
22
.github/ISSUE_TEMPLATE/config.yml
vendored
22
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -1,4 +1,17 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
|
- name: Documentation
|
||||||
|
url: https://github.com/dbt-labs/docs.getdbt.com/issues/new/choose
|
||||||
|
about: Problems and issues with dbt product documentation hosted on docs.getdbt.com. Issues for markdown files within this repo, such as README, should be opened using the "Code docs" template.
|
||||||
|
- name: Ask the community for help
|
||||||
|
url: https://github.com/dbt-labs/docs.getdbt.com/discussions
|
||||||
|
about: Need help troubleshooting? Check out our guide on how to ask
|
||||||
|
- name: Contact dbt Cloud support
|
||||||
|
url: mailto:support@getdbt.com
|
||||||
|
about: Are you using dbt Cloud? Contact our support team for help!
|
||||||
|
- name: Participate in Discussions
|
||||||
|
url: https://github.com/dbt-labs/dbt-core/discussions
|
||||||
|
about: Do you have a Big Idea for dbt? Read open discussions, or start a new one
|
||||||
- name: Create an issue for dbt-redshift
|
- name: Create an issue for dbt-redshift
|
||||||
url: https://github.com/dbt-labs/dbt-redshift/issues/new/choose
|
url: https://github.com/dbt-labs/dbt-redshift/issues/new/choose
|
||||||
about: Report a bug or request a feature for dbt-redshift
|
about: Report a bug or request a feature for dbt-redshift
|
||||||
@@ -8,9 +21,6 @@ contact_links:
|
|||||||
- name: Create an issue for dbt-snowflake
|
- name: Create an issue for dbt-snowflake
|
||||||
url: https://github.com/dbt-labs/dbt-snowflake/issues/new/choose
|
url: https://github.com/dbt-labs/dbt-snowflake/issues/new/choose
|
||||||
about: Report a bug or request a feature for dbt-snowflake
|
about: Report a bug or request a feature for dbt-snowflake
|
||||||
- name: Ask a question or get support
|
- name: Create an issue for dbt-spark
|
||||||
url: https://docs.getdbt.com/docs/guides/getting-help
|
url: https://github.com/dbt-labs/dbt-spark/issues/new/choose
|
||||||
about: Ask a question or request support
|
about: Report a bug or request a feature for dbt-spark
|
||||||
- name: Questions on Stack Overflow
|
|
||||||
url: https://stackoverflow.com/questions/tagged/dbt
|
|
||||||
about: Look at questions/answers at Stack Overflow
|
|
||||||
|
|||||||
22
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
22
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
@@ -1,22 +1,32 @@
|
|||||||
name: ✨ Feature
|
name: ✨ Feature
|
||||||
description: Suggest an idea for dbt
|
description: Propose a straightforward extension of dbt functionality
|
||||||
title: "[Feature] <title>"
|
title: "[Feature] <title>"
|
||||||
labels: ["enhancement", "triage"]
|
labels: ["enhancement", "triage"]
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
Thanks for taking the time to fill out this feature requests!
|
Thanks for taking the time to fill out this feature request!
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Is there an existing feature request for this?
|
label: Is this your first time submitting a feature request?
|
||||||
description: Please search to see if an issue already exists for the feature you would like.
|
description: >
|
||||||
|
We want to make sure that features are distinct and discoverable,
|
||||||
|
so that other members of the community can find them and offer their thoughts.
|
||||||
|
|
||||||
|
Issues are the right place to request straightforward extensions of existing dbt functionality.
|
||||||
|
For "big ideas" about future capabilities of dbt, we ask that you open a
|
||||||
|
[discussion](https://github.com/dbt-labs/dbt-core/discussions) in the "Ideas" category instead.
|
||||||
options:
|
options:
|
||||||
- label: I have searched the existing issues
|
- label: I have read the [expectations for open source contributors](https://docs.getdbt.com/docs/contributing/oss-expectations)
|
||||||
|
required: true
|
||||||
|
- label: I have searched the existing issues, and I could not find an existing issue for this feature
|
||||||
|
required: true
|
||||||
|
- label: I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Describe the Feature
|
label: Describe the feature
|
||||||
description: A clear and concise description of what you want to happen.
|
description: A clear and concise description of what you want to happen.
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
67
.github/ISSUE_TEMPLATE/implementation-ticket.yml
vendored
Normal file
67
.github/ISSUE_TEMPLATE/implementation-ticket.yml
vendored
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
name: 🛠️ Implementation
|
||||||
|
description: This is an implementation ticket intended for use by the maintainers of dbt-core
|
||||||
|
title: "[<project>] <title>"
|
||||||
|
labels: ["user docs"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: This is an implementation ticket intended for use by the maintainers of dbt-core
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Housekeeping
|
||||||
|
description: >
|
||||||
|
A couple friendly reminders:
|
||||||
|
1. Remove the `user docs` label if the scope of this work does not require changes to https://docs.getdbt.com/docs: no end-user interface (e.g. yml spec, CLI, error messages, etc) or functional changes
|
||||||
|
2. Link any blocking issues in the "Blocked on" field under the "Core devs & maintainers" project.
|
||||||
|
options:
|
||||||
|
- label: I am a maintainer of dbt-core
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Short description
|
||||||
|
description: |
|
||||||
|
Describe the scope of the ticket, a high-level implementation approach and any tradeoffs to consider
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Acceptance criteria
|
||||||
|
description: |
|
||||||
|
What is the definition of done for this ticket? Include any relevant edge cases and/or test cases
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Suggested Tests
|
||||||
|
description: |
|
||||||
|
Provide scenarios to test. Link to existing similar tests if appropriate.
|
||||||
|
placeholder: |
|
||||||
|
1. Test with no version specified in the schema file and use selection logic on a versioned model for a specific version. Expect pass.
|
||||||
|
2. Test with a version specified in the schema file that is no valid. Expect ParsingError.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Impact to Other Teams
|
||||||
|
description: |
|
||||||
|
Will this change impact other teams? Include details of the kinds of changes required (new tests, code changes, related tickets) and _add the relevant `Impact:[team]` label_.
|
||||||
|
placeholder: |
|
||||||
|
Example: This change impacts `dbt-redshift` because the tests will need to be modified. The `Impact:[Adapter]` label has been added.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Will backports be required?
|
||||||
|
description: |
|
||||||
|
Will this change need to be backported to previous versions? Add details, possible blockers to backporting and _add the relevant backport labels `backport 1.x.latest`_
|
||||||
|
placeholder: |
|
||||||
|
Example: Backport to 1.6.latest, 1.5.latest and 1.4.latest. Since 1.4 isn't using click, the backport may be complicated. The `backport 1.6.latest`, `backport 1.5.latest` and `backport 1.4.latest` labels have been added.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Context
|
||||||
|
description: |
|
||||||
|
Provide the "why", motivation, and alternative approaches considered -- linking to previous refinement issues, spikes and documentation as appropriate
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
93
.github/ISSUE_TEMPLATE/regression-report.yml
vendored
Normal file
93
.github/ISSUE_TEMPLATE/regression-report.yml
vendored
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
name: ☣️ Regression
|
||||||
|
description: Report a regression you've observed in a newer version of dbt
|
||||||
|
title: "[Regression] <title>"
|
||||||
|
labels: ["bug", "regression", "triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for taking the time to fill out this regression report!
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Is this a regression in a recent version of dbt-core?
|
||||||
|
description: >
|
||||||
|
A regression is when documented functionality works as expected in an older version of dbt-core,
|
||||||
|
and no longer works after upgrading to a newer version of dbt-core
|
||||||
|
options:
|
||||||
|
- label: I believe this is a regression in dbt-core functionality
|
||||||
|
required: true
|
||||||
|
- label: I have searched the existing issues, and I could not find an existing issue for this regression
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Current Behavior
|
||||||
|
description: A concise description of what you're experiencing.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Expected/Previous Behavior
|
||||||
|
description: A concise description of what you expected to happen.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Steps To Reproduce
|
||||||
|
description: Steps to reproduce the behavior.
|
||||||
|
placeholder: |
|
||||||
|
1. In this environment...
|
||||||
|
2. With this config...
|
||||||
|
3. Run '...'
|
||||||
|
4. See error...
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant log output
|
||||||
|
description: |
|
||||||
|
If applicable, log output to help explain your problem.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Environment
|
||||||
|
description: |
|
||||||
|
examples:
|
||||||
|
- **OS**: Ubuntu 20.04
|
||||||
|
- **Python**: 3.9.12 (`python3 --version`)
|
||||||
|
- **dbt-core (working version)**: 1.1.1 (`dbt --version`)
|
||||||
|
- **dbt-core (regression version)**: 1.2.0 (`dbt --version`)
|
||||||
|
value: |
|
||||||
|
- OS:
|
||||||
|
- Python:
|
||||||
|
- dbt (working version):
|
||||||
|
- dbt (regression version):
|
||||||
|
render: markdown
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: database
|
||||||
|
attributes:
|
||||||
|
label: Which database adapter are you using with dbt?
|
||||||
|
description: If the regression is specific to the database or adapter, please open the issue in that adapter's repository instead
|
||||||
|
multiple: true
|
||||||
|
options:
|
||||||
|
- postgres
|
||||||
|
- redshift
|
||||||
|
- snowflake
|
||||||
|
- bigquery
|
||||||
|
- spark
|
||||||
|
- other (mention it in "Additional Context")
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Additional Context
|
||||||
|
description: |
|
||||||
|
Links? References? Anything that will give us more context about the issue you are encountering!
|
||||||
|
|
||||||
|
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
217
.github/_README.md
vendored
Normal file
217
.github/_README.md
vendored
Normal file
@@ -0,0 +1,217 @@
|
|||||||
|
<!-- GitHub will publish this readme on the main repo page if the name is `README.md` so we've added the leading underscore to prevent this -->
|
||||||
|
<!-- Do not rename this file `README.md` -->
|
||||||
|
<!-- See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes -->
|
||||||
|
|
||||||
|
## What are GitHub Actions?
|
||||||
|
|
||||||
|
GitHub Actions are used for many different purposes. We use them to run tests in CI, validate PRs are in an expected state, and automate processes.
|
||||||
|
|
||||||
|
- [Overview of GitHub Actions](https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions)
|
||||||
|
- [What's a workflow?](https://docs.github.com/en/actions/using-workflows/about-workflows)
|
||||||
|
- [GitHub Actions guides](https://docs.github.com/en/actions/guides)
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
## Where do actions and workflows live
|
||||||
|
|
||||||
|
We try to maintain actions that are shared across repositories in a single place so that necesary changes can be made in a single place.
|
||||||
|
|
||||||
|
[dbt-labs/actions](https://github.com/dbt-labs/actions/) is the central repository of actions and workflows we use across repositories.
|
||||||
|
|
||||||
|
GitHub Actions also live locally within a repository. The workflows can be found at `.github/workflows` from the root of the repository. These should be specific to that code base.
|
||||||
|
|
||||||
|
Note: We are actively moving actions into the central Action repository so there is currently some duplication across repositories.
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
## Basics of Using Actions
|
||||||
|
|
||||||
|
### Viewing Output
|
||||||
|
|
||||||
|
- View the detailed action output for your PR in the **Checks** tab of the PR. This only shows the most recent run. You can also view high level **Checks** output at the bottom on the PR.
|
||||||
|
|
||||||
|
- View _all_ action output for a repository from the [**Actions**](https://github.com/dbt-labs/dbt-core/actions) tab. Workflow results last 1 year. Artifacts last 90 days, unless specified otherwise in individual workflows.
|
||||||
|
|
||||||
|
This view often shows what seem like duplicates of the same workflow. This occurs when files are renamed but the workflow name has not changed. These are in fact _not_ duplicates.
|
||||||
|
|
||||||
|
You can see the branch the workflow runs from in this view. It is listed in the table between the workflow name and the time/duration of the run. When blank, the workflow is running in the context of the `main` branch.
|
||||||
|
|
||||||
|
### How to view what workflow file is being referenced from a run
|
||||||
|
|
||||||
|
- When viewing the output of a specific workflow run, click the 3 dots at the top right of the display. There will be an option to `View workflow file`.
|
||||||
|
|
||||||
|
### How to manually run a workflow
|
||||||
|
|
||||||
|
- If a workflow has the `on: workflow_dispatch` trigger, it can be manually triggered
|
||||||
|
- From the [**Actions**](https://github.com/dbt-labs/dbt-core/actions) tab, find the workflow you want to run, select it and fill in any inputs requied. That's it!
|
||||||
|
|
||||||
|
### How to re-run jobs
|
||||||
|
|
||||||
|
- From the UI you can rerun from failure
|
||||||
|
- You can retrigger the cla check by commenting on the PR with `@cla-bot check`
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
## General Standards
|
||||||
|
|
||||||
|
### Permissions
|
||||||
|
- By default, workflows have read permissions in the repository for the contents scope only when no permissions are explicitly set.
|
||||||
|
- It is best practice to always define the permissions explicitly. This will allow actions to continue to work when the default permissions on the repository are changed. It also allows explicit grants of the least permissions possible.
|
||||||
|
- There are a lot of permissions available. [Read up on them](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) if you're unsure what to use.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
```
|
||||||
|
|
||||||
|
### Secrets
|
||||||
|
- When to use a [Personal Access Token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) vs the [GITHUB_TOKEN](https://docs.github.com/en/actions/security-guides/automatic-token-authentication) generated for the action?
|
||||||
|
|
||||||
|
The `GITHUB_TOKEN` is used by default. In most cases it is sufficient for what you need.
|
||||||
|
|
||||||
|
If you expect the workflow to result in a commit to that should retrigger workflows, you will need to use a Personal Access Token for the bot to commit the file. When using the GITHUB_TOKEN, the resulting commit will not trigger another GitHub Actions Workflow run. This is due to limitations set by GitHub. See [the docs](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow) for a more detailed explanation.
|
||||||
|
|
||||||
|
For example, we must use a PAT in our workflow to commit a new changelog yaml file for bot PRs. Once the file has been committed to the branch, it should retrigger the check to validate that a changelog exists on the PR. Otherwise, it would stay in a failed state since the check would never retrigger.
|
||||||
|
|
||||||
|
### Triggers
|
||||||
|
You can configure your workflows to run when specific activity on GitHub happens, at a scheduled time, or when an event outside of GitHub occurs. Read more details in the [GitHub docs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows).
|
||||||
|
|
||||||
|
These triggers are under the `on` key of the workflow and more than one can be listed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
- "*.latest"
|
||||||
|
- "releases/*"
|
||||||
|
pull_request:
|
||||||
|
# catch when the PR is opened with the label or when the label is added
|
||||||
|
types: [opened, labeled]
|
||||||
|
workflow_dispatch:
|
||||||
|
```
|
||||||
|
|
||||||
|
Some triggers of note that we use:
|
||||||
|
|
||||||
|
- `push` - Runs your workflow when you push a commit or tag.
|
||||||
|
- `pull_request` - Runs your workflow when activity on a pull request in the workflow's repository occurs. Takes in a list of activity types (opened, labeled, etc) if appropriate.
|
||||||
|
- `pull_request_target` - Same as `pull_request` but runs in the context of the PR target branch.
|
||||||
|
- `workflow_call` - used with reusable workflows. Triggered by another workflow calling it.
|
||||||
|
- `workflow_dispatch` - Gives the ability to manually trigger a workflow from the GitHub API, GitHub CLI, or GitHub browser interface.
|
||||||
|
|
||||||
|
|
||||||
|
### Basic Formatting
|
||||||
|
- Add a description of what your workflow does at the top in this format
|
||||||
|
|
||||||
|
```
|
||||||
|
# **what?**
|
||||||
|
# Describe what the action does.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# Why does this action exist?
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# How/when will it be triggered?
|
||||||
|
```
|
||||||
|
|
||||||
|
- Leave blank lines between steps and jobs
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
jobs:
|
||||||
|
dependency_changelog:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Get File Name Timestamp
|
||||||
|
id: filename_time
|
||||||
|
uses: nanzm/get-time-action@v1.1
|
||||||
|
with:
|
||||||
|
format: 'YYYYMMDD-HHmmss'
|
||||||
|
|
||||||
|
- name: Get File Content Timestamp
|
||||||
|
id: file_content_time
|
||||||
|
uses: nanzm/get-time-action@v1.1
|
||||||
|
with:
|
||||||
|
format: 'YYYY-MM-DDTHH:mm:ss.000000-05:00'
|
||||||
|
|
||||||
|
- name: Generate Filepath
|
||||||
|
id: fp
|
||||||
|
run: |
|
||||||
|
FILEPATH=.changes/unreleased/Dependencies-${{ steps.filename_time.outputs.time }}.yaml
|
||||||
|
echo "FILEPATH=$FILEPATH" >> $GITHUB_OUTPUT
|
||||||
|
```
|
||||||
|
|
||||||
|
- Print out all variables you will reference as the first step of a job. This allows for easier debugging. The first job should log all inputs. Subsequent jobs should reference outputs of other jobs, if present.
|
||||||
|
|
||||||
|
When possible, generate variables at the top of your workflow in a single place to reference later. This is not always strictly possible since you may generate a value to be used later mid-workflow.
|
||||||
|
|
||||||
|
Be sure to use quotes around these logs so special characters are not interpreted.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
job1:
|
||||||
|
- name: "[DEBUG] Print Variables"
|
||||||
|
run: |
|
||||||
|
echo "all variables defined as inputs"
|
||||||
|
echo "The last commit sha in the release: ${{ inputs.sha }}"
|
||||||
|
echo "The release version number: ${{ inputs.version_number }}"
|
||||||
|
echo "The changelog_path: ${{ inputs.changelog_path }}"
|
||||||
|
echo "The build_script_path: ${{ inputs.build_script_path }}"
|
||||||
|
echo "The s3_bucket_name: ${{ inputs.s3_bucket_name }}"
|
||||||
|
echo "The package_test_command: ${{ inputs.package_test_command }}"
|
||||||
|
|
||||||
|
# collect all the variables that need to be used in subsequent jobs
|
||||||
|
- name: Set Variables
|
||||||
|
id: variables
|
||||||
|
run: |
|
||||||
|
echo "important_path='performance/runner/Cargo.toml'" >> $GITHUB_OUTPUT
|
||||||
|
echo "release_id=${{github.event.inputs.release_id}}" >> $GITHUB_OUTPUT
|
||||||
|
echo "open_prs=${{github.event.inputs.open_prs}}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
job2:
|
||||||
|
needs: [job1]
|
||||||
|
- name: "[DEBUG] Print Variables"
|
||||||
|
run: |
|
||||||
|
echo "all variables defined in job1 > Set Variables > outputs"
|
||||||
|
echo "important_path: ${{ needs.job1.outputs.important_path }}"
|
||||||
|
echo "release_id: ${{ needs.job1.outputs.release_id }}"
|
||||||
|
echo "open_prs: ${{ needs.job1.outputs.open_prs }}"
|
||||||
|
```
|
||||||
|
|
||||||
|
- When it's not obvious what something does, add a comment!
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
## Tips
|
||||||
|
|
||||||
|
### Context
|
||||||
|
- The [GitHub CLI](https://cli.github.com/) is available in the default runners
|
||||||
|
- Actions run in your context. ie, using an action from the marketplace that uses the GITHUB_TOKEN uses the GITHUB_TOKEN generated by your workflow run.
|
||||||
|
|
||||||
|
### Actions from the Marketplace
|
||||||
|
- Don’t use external actions for things that can easily be accomplished manually.
|
||||||
|
- Always read through what an external action does before using it! Often an action in the GitHub Actions Marketplace can be replaced with a few lines in bash. This is much more maintainable (and won’t change under us) and clear as to what’s actually happening. It also prevents any
|
||||||
|
- Pin actions _we don't control_ to tags.
|
||||||
|
|
||||||
|
### Connecting to AWS
|
||||||
|
- Authenticate with the aws managed workflow
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Configure AWS credentials from Test account
|
||||||
|
uses: aws-actions/configure-aws-credentials@v2
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-1
|
||||||
|
```
|
||||||
|
|
||||||
|
- Then access with the aws command that comes installed on the action runner machines
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Copy Artifacts from S3 via CLI
|
||||||
|
run: aws s3 cp ${{ env.s3_bucket }} . --recursive
|
||||||
|
```
|
||||||
|
|
||||||
|
### Testing
|
||||||
|
|
||||||
|
- Depending on what your action does, you may be able to use [`act`](https://github.com/nektos/act) to test the action locally. Some features of GitHub Actions do not work with `act`, among those are reusable workflows. If you can't use `act`, you'll have to push your changes up before being able to test. This can be slow.
|
||||||
14
.github/actions/latest-wrangler/Dockerfile
vendored
Normal file
14
.github/actions/latest-wrangler/Dockerfile
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
FROM python:3-slim AS builder
|
||||||
|
ADD . /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# We are installing a dependency here directly into our app source dir
|
||||||
|
RUN pip install --target=/app requests packaging
|
||||||
|
|
||||||
|
# A distroless container image with Python and some basics like SSL certificates
|
||||||
|
# https://github.com/GoogleContainerTools/distroless
|
||||||
|
FROM gcr.io/distroless/python3-debian10
|
||||||
|
COPY --from=builder /app /app
|
||||||
|
WORKDIR /app
|
||||||
|
ENV PYTHONPATH /app
|
||||||
|
CMD ["/app/main.py"]
|
||||||
50
.github/actions/latest-wrangler/README.md
vendored
Normal file
50
.github/actions/latest-wrangler/README.md
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# Github package 'latest' tag wrangler for containers
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Plug in the necessary inputs to determine if the container being built should be tagged 'latest; at the package level, for example `dbt-redshift:latest`.
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
| Input | Description |
|
||||||
|
| - | - |
|
||||||
|
| `package` | Name of the GH package to check against |
|
||||||
|
| `new_version` | Semver of new container |
|
||||||
|
| `gh_token` | GH token with package read scope|
|
||||||
|
| `halt_on_missing` | Return non-zero exit code if requested package does not exist. (defaults to false)|
|
||||||
|
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
| Output | Description |
|
||||||
|
| - | - |
|
||||||
|
| `latest` | Wether or not the new container should be tagged 'latest'|
|
||||||
|
| `minor_latest` | Wether or not the new container should be tagged major.minor.latest |
|
||||||
|
|
||||||
|
## Example workflow
|
||||||
|
```yaml
|
||||||
|
name: Ship it!
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
package:
|
||||||
|
description: The package to publish
|
||||||
|
required: true
|
||||||
|
version_number:
|
||||||
|
description: The version number
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Wrangle latest tag
|
||||||
|
id: is_latest
|
||||||
|
uses: ./.github/actions/latest-wrangler
|
||||||
|
with:
|
||||||
|
package: ${{ github.event.inputs.package }}
|
||||||
|
new_version: ${{ github.event.inputs.new_version }}
|
||||||
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Print the results
|
||||||
|
run: |
|
||||||
|
echo "Is it latest? Survey says: ${{ steps.is_latest.outputs.latest }} !"
|
||||||
|
echo "Is it minor.latest? Survey says: ${{ steps.is_latest.outputs.minor_latest }} !"
|
||||||
|
```
|
||||||
21
.github/actions/latest-wrangler/action.yml
vendored
Normal file
21
.github/actions/latest-wrangler/action.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: "GitHub package `latest` tag wrangler for containers"
|
||||||
|
description: "Determines if the published image should include `latest` tags"
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
package_name:
|
||||||
|
description: "Package being published (i.e. `dbt-core`, `dbt-redshift`, etc.)"
|
||||||
|
required: true
|
||||||
|
new_version:
|
||||||
|
description: "SemVer of the package being published (i.e. 1.7.2, 1.8.0a1, etc.)"
|
||||||
|
required: true
|
||||||
|
github_token:
|
||||||
|
description: "Auth token for GitHub (must have view packages scope)"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
tags:
|
||||||
|
description: "A list of tags to associate with this version"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "docker"
|
||||||
|
image: "Dockerfile"
|
||||||
26
.github/actions/latest-wrangler/examples/example_workflow.yml
vendored
Normal file
26
.github/actions/latest-wrangler/examples/example_workflow.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Ship it!
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
package:
|
||||||
|
description: The package to publish
|
||||||
|
required: true
|
||||||
|
version_number:
|
||||||
|
description: The version number
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Wrangle latest tag
|
||||||
|
id: is_latest
|
||||||
|
uses: ./.github/actions/latest-wrangler
|
||||||
|
with:
|
||||||
|
package: ${{ github.event.inputs.package }}
|
||||||
|
new_version: ${{ github.event.inputs.new_version }}
|
||||||
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Print the results
|
||||||
|
run: |
|
||||||
|
echo "Is it latest? Survey says: ${{ steps.is_latest.outputs.latest }} !"
|
||||||
6
.github/actions/latest-wrangler/examples/example_workflow_dispatch.json
vendored
Normal file
6
.github/actions/latest-wrangler/examples/example_workflow_dispatch.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"inputs": {
|
||||||
|
"version_number": "1.0.1",
|
||||||
|
"package": "dbt-redshift"
|
||||||
|
}
|
||||||
|
}
|
||||||
71
.github/actions/latest-wrangler/main.py
vendored
Normal file
71
.github/actions/latest-wrangler/main.py
vendored
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
import os
|
||||||
|
from packaging.version import Version, parse
|
||||||
|
import requests
|
||||||
|
import sys
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
package_name: str = os.environ["INPUT_PACKAGE_NAME"]
|
||||||
|
new_version: Version = parse(os.environ["INPUT_NEW_VERSION"])
|
||||||
|
github_token: str = os.environ["INPUT_GITHUB_TOKEN"]
|
||||||
|
|
||||||
|
response = _package_metadata(package_name, github_token)
|
||||||
|
published_versions = _published_versions(response)
|
||||||
|
new_version_tags = _new_version_tags(new_version, published_versions)
|
||||||
|
_register_tags(new_version_tags, package_name)
|
||||||
|
|
||||||
|
|
||||||
|
def _package_metadata(package_name: str, github_token: str) -> requests.Response:
|
||||||
|
url = f"https://api.github.com/orgs/dbt-labs/packages/container/{package_name}/versions"
|
||||||
|
return requests.get(url, auth=("", github_token))
|
||||||
|
|
||||||
|
|
||||||
|
def _published_versions(response: requests.Response) -> List[Version]:
|
||||||
|
package_metadata = response.json()
|
||||||
|
return [
|
||||||
|
parse(tag)
|
||||||
|
for version in package_metadata
|
||||||
|
for tag in version["metadata"]["container"]["tags"]
|
||||||
|
if "latest" not in tag
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def _new_version_tags(new_version: Version, published_versions: List[Version]) -> List[str]:
|
||||||
|
# the package version is always a tag
|
||||||
|
tags = [str(new_version)]
|
||||||
|
|
||||||
|
# pre-releases don't get tagged with `latest`
|
||||||
|
if new_version.is_prerelease:
|
||||||
|
return tags
|
||||||
|
|
||||||
|
if new_version > max(published_versions):
|
||||||
|
tags.append("latest")
|
||||||
|
|
||||||
|
published_patches = [
|
||||||
|
version
|
||||||
|
for version in published_versions
|
||||||
|
if version.major == new_version.major and version.minor == new_version.minor
|
||||||
|
]
|
||||||
|
if new_version > max(published_patches):
|
||||||
|
tags.append(f"{new_version.major}.{new_version.minor}.latest")
|
||||||
|
|
||||||
|
return tags
|
||||||
|
|
||||||
|
|
||||||
|
def _register_tags(tags: List[str], package_name: str) -> None:
|
||||||
|
fully_qualified_tags = ",".join([f"ghcr.io/dbt-labs/{package_name}:{tag}" for tag in tags])
|
||||||
|
github_output = os.environ.get("GITHUB_OUTPUT")
|
||||||
|
with open(github_output, "at", encoding="utf-8") as gh_output:
|
||||||
|
gh_output.write(f"fully_qualified_tags={fully_qualified_tags}")
|
||||||
|
|
||||||
|
|
||||||
|
def _validate_response(response: requests.Response) -> None:
|
||||||
|
message = response["message"]
|
||||||
|
if response.status_code != 200:
|
||||||
|
print(f"Call to GitHub API failed: {response.status_code} - {message}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
@@ -11,11 +11,6 @@ updates:
|
|||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
rebase-strategy: "disabled"
|
rebase-strategy: "disabled"
|
||||||
- package-ecosystem: "pip"
|
|
||||||
directory: "/plugins/postgres"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
rebase-strategy: "disabled"
|
|
||||||
|
|
||||||
# docker dependencies
|
# docker dependencies
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
@@ -28,3 +23,10 @@ updates:
|
|||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
rebase-strategy: "disabled"
|
rebase-strategy: "disabled"
|
||||||
|
|
||||||
|
# github dependencies
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
rebase-strategy: "disabled"
|
||||||
|
|||||||
24
.github/pull_request_template.md
vendored
24
.github/pull_request_template.md
vendored
@@ -4,18 +4,30 @@ resolves #
|
|||||||
Include the number of the issue addressed by this PR above if applicable.
|
Include the number of the issue addressed by this PR above if applicable.
|
||||||
PRs for code changes without an associated issue *will not be merged*.
|
PRs for code changes without an associated issue *will not be merged*.
|
||||||
See CONTRIBUTING.md for more information.
|
See CONTRIBUTING.md for more information.
|
||||||
|
|
||||||
|
Add the `user docs` label to this PR if it will need docs changes. An
|
||||||
|
issue will get opened in docs.getdbt.com upon successful merge of this PR.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
### Description
|
### Problem
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
Describe the Pull Request here. Add any references and info to help reviewers
|
Describe the problem this PR is solving. What is the application state
|
||||||
understand your changes. Include any tradeoffs you considered.
|
before this PR is merged?
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Solution
|
||||||
|
|
||||||
|
<!---
|
||||||
|
Describe the way this PR solves the above problem. Add as much detail as you
|
||||||
|
can to help reviewers understand your changes. Include any alternatives and
|
||||||
|
tradeoffs you considered.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
### Checklist
|
### Checklist
|
||||||
|
|
||||||
- [ ] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements)
|
- [ ] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me
|
||||||
- [ ] I have run this code in development and it appears to resolve the stated issue
|
- [ ] I have run this code in development and it appears to resolve the stated issue
|
||||||
- [ ] This PR includes tests, or tests are not required/relevant for this PR
|
- [ ] This PR includes tests, or tests are not required/relevant for this PR
|
||||||
- [ ] I have updated the `CHANGELOG.md` and added information about my change
|
- [ ] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
|
||||||
|
- [ ] This PR includes [type annotations](https://docs.python.org/3/library/typing.html) for new and modified functions
|
||||||
|
|||||||
95
.github/scripts/integration-test-matrix.js
vendored
95
.github/scripts/integration-test-matrix.js
vendored
@@ -1,95 +0,0 @@
|
|||||||
module.exports = ({ context }) => {
|
|
||||||
const defaultPythonVersion = "3.8";
|
|
||||||
const supportedPythonVersions = ["3.6", "3.7", "3.8", "3.9"];
|
|
||||||
const supportedAdapters = ["postgres"];
|
|
||||||
|
|
||||||
// if PR, generate matrix based on files changed and PR labels
|
|
||||||
if (context.eventName.includes("pull_request")) {
|
|
||||||
// `changes` is a list of adapter names that have related
|
|
||||||
// file changes in the PR
|
|
||||||
// ex: ['postgres', 'snowflake']
|
|
||||||
const changes = JSON.parse(process.env.CHANGES);
|
|
||||||
const labels = context.payload.pull_request.labels.map(({ name }) => name);
|
|
||||||
console.log("labels", labels);
|
|
||||||
console.log("changes", changes);
|
|
||||||
const testAllLabel = labels.includes("test all");
|
|
||||||
const include = [];
|
|
||||||
|
|
||||||
for (const adapter of supportedAdapters) {
|
|
||||||
if (
|
|
||||||
changes.includes(adapter) ||
|
|
||||||
testAllLabel ||
|
|
||||||
labels.includes(`test ${adapter}`)
|
|
||||||
) {
|
|
||||||
for (const pythonVersion of supportedPythonVersions) {
|
|
||||||
if (
|
|
||||||
pythonVersion === defaultPythonVersion ||
|
|
||||||
labels.includes(`test python${pythonVersion}`) ||
|
|
||||||
testAllLabel
|
|
||||||
) {
|
|
||||||
// always run tests on ubuntu by default
|
|
||||||
include.push({
|
|
||||||
os: "ubuntu-latest",
|
|
||||||
adapter,
|
|
||||||
"python-version": pythonVersion,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (labels.includes("test windows") || testAllLabel) {
|
|
||||||
include.push({
|
|
||||||
os: "windows-latest",
|
|
||||||
adapter,
|
|
||||||
"python-version": pythonVersion,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (labels.includes("test macos") || testAllLabel) {
|
|
||||||
include.push({
|
|
||||||
os: "macos-latest",
|
|
||||||
adapter,
|
|
||||||
"python-version": pythonVersion,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("matrix", { include });
|
|
||||||
|
|
||||||
return {
|
|
||||||
include,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// if not PR, generate matrix of python version, adapter, and operating
|
|
||||||
// system to run integration tests on
|
|
||||||
|
|
||||||
const include = [];
|
|
||||||
// run for all adapters and python versions on ubuntu
|
|
||||||
for (const adapter of supportedAdapters) {
|
|
||||||
for (const pythonVersion of supportedPythonVersions) {
|
|
||||||
include.push({
|
|
||||||
os: 'ubuntu-latest',
|
|
||||||
adapter: adapter,
|
|
||||||
"python-version": pythonVersion,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// additionally include runs for all adapters, on macos and windows,
|
|
||||||
// but only for the default python version
|
|
||||||
for (const adapter of supportedAdapters) {
|
|
||||||
for (const operatingSystem of ["windows-latest", "macos-latest"]) {
|
|
||||||
include.push({
|
|
||||||
os: operatingSystem,
|
|
||||||
adapter: adapter,
|
|
||||||
"python-version": defaultPythonVersion,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("matrix", { include });
|
|
||||||
|
|
||||||
return {
|
|
||||||
include,
|
|
||||||
};
|
|
||||||
};
|
|
||||||
40
.github/workflows/backport.yml
vendored
Normal file
40
.github/workflows/backport.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# **what?**
|
||||||
|
# When a PR is merged, if it has the backport label, it will create
|
||||||
|
# a new PR to backport those changes to the given branch. If it can't
|
||||||
|
# cleanly do a backport, it will comment on the merged PR of the failure.
|
||||||
|
#
|
||||||
|
# Label naming convention: "backport <branch name to backport to>"
|
||||||
|
# Example: backport 1.0.latest
|
||||||
|
#
|
||||||
|
# You MUST "Squash and merge" the original PR or this won't work.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# Changes sometimes need to be backported to release branches.
|
||||||
|
# This automates the backporting process
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# Once a PR is "Squash and merge"'d, by adding a backport label, this is triggered
|
||||||
|
|
||||||
|
name: Backport
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
backport:
|
||||||
|
name: Backport
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Only react to merged PRs for security reasons.
|
||||||
|
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
|
||||||
|
if: >
|
||||||
|
github.event.pull_request.merged
|
||||||
|
&& contains(github.event.label.name, 'backport')
|
||||||
|
steps:
|
||||||
|
- uses: tibdex/backport@v2.0.4
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
59
.github/workflows/bot-changelog.yml
vendored
Normal file
59
.github/workflows/bot-changelog.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# **what?**
|
||||||
|
# When bots create a PR, this action will add a corresponding changie yaml file to that
|
||||||
|
# PR when a specific label is added.
|
||||||
|
#
|
||||||
|
# The file is created off a template:
|
||||||
|
#
|
||||||
|
# kind: <per action matrix>
|
||||||
|
# body: <PR title>
|
||||||
|
# time: <current timestamp>
|
||||||
|
# custom:
|
||||||
|
# Author: <PR User Login (generally the bot)>
|
||||||
|
# Issue: 4904
|
||||||
|
# PR: <PR number>
|
||||||
|
#
|
||||||
|
# **why?**
|
||||||
|
# Automate changelog generation for more visability with automated bot PRs.
|
||||||
|
#
|
||||||
|
# **when?**
|
||||||
|
# Once a PR is created, label should be added to PR before or after creation. You can also
|
||||||
|
# manually trigger this by adding the appropriate label at any time.
|
||||||
|
#
|
||||||
|
# **how to add another bot?**
|
||||||
|
# Add the label and changie kind to the include matrix. That's it!
|
||||||
|
#
|
||||||
|
|
||||||
|
name: Bot Changelog
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
# catch when the PR is opened with the label or when the label is added
|
||||||
|
types: [labeled]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate_changelog:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- label: "dependencies"
|
||||||
|
changie_kind: "Dependencies"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Create and commit changelog on bot PR
|
||||||
|
if: ${{ contains(github.event.pull_request.labels.*.name, matrix.label) }}
|
||||||
|
id: bot_changelog
|
||||||
|
uses: emmyoop/changie_bot@v1.1.0
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }}
|
||||||
|
commit_author_name: "Github Build Bot"
|
||||||
|
commit_author_email: "<buildbot@fishtownanalytics.com>"
|
||||||
|
commit_message: "Add automated changelog yaml from template for bot PR"
|
||||||
|
changie_kind: ${{ matrix.changie_kind }}
|
||||||
|
label: ${{ matrix.label }}
|
||||||
|
custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n Issue: ${{ github.event.pull_request.number }}"
|
||||||
40
.github/workflows/changelog-existence.yml
vendored
Normal file
40
.github/workflows/changelog-existence.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# **what?**
|
||||||
|
# Checks that a file has been committed under the /.changes directory
|
||||||
|
# as a new CHANGELOG entry. Cannot check for a specific filename as
|
||||||
|
# it is dynamically generated by change type and timestamp.
|
||||||
|
# This workflow runs on pull_request_target because it requires
|
||||||
|
# secrets to post comments.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# Ensure code change gets reflected in the CHANGELOG.
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# This will run for all PRs going into main and *.latest. It will
|
||||||
|
# run when they are opened, reopened, when any label is added or removed
|
||||||
|
# and when new code is pushed to the branch. The action will then get
|
||||||
|
# skipped if the 'Skip Changelog' label is present is any of the labels.
|
||||||
|
|
||||||
|
name: Check Changelog Entry
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, reopened, labeled, unlabeled, synchronize]
|
||||||
|
paths-ignore: ['.changes/**', '.github/**', 'tests/**', '**.md', '**.yml']
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changelog:
|
||||||
|
uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main
|
||||||
|
with:
|
||||||
|
changelog_comment: 'Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md#adding-changelog-entry).'
|
||||||
|
skip_label: 'Skip Changelog'
|
||||||
|
secrets: inherit
|
||||||
41
.github/workflows/check-artifact-changes.yml
vendored
Normal file
41
.github/workflows/check-artifact-changes.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Check Artifact Changes
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ opened, reopened, labeled, unlabeled, synchronize ]
|
||||||
|
paths-ignore: [ '.changes/**', '.github/**', 'tests/**', '**.md', '**.yml' ]
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-artifact-changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'artifact_minor_upgrade') }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Check for changes in core/dbt/artifacts
|
||||||
|
# https://github.com/marketplace/actions/paths-changes-filter
|
||||||
|
uses: dorny/paths-filter@v3
|
||||||
|
id: check_artifact_changes
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
artifacts_changed:
|
||||||
|
- 'core/dbt/artifacts/**'
|
||||||
|
list-files: shell
|
||||||
|
|
||||||
|
- name: Fail CI if artifacts have changed
|
||||||
|
if: steps.check_artifact_changes.outputs.artifacts_changed == 'true'
|
||||||
|
run: |
|
||||||
|
echo "CI failure: Artifact changes checked in core/dbt/artifacts directory."
|
||||||
|
echo "Files changed: ${{ steps.check_artifact_changes.outputs.artifacts_changed_files }}"
|
||||||
|
echo "To bypass this check, confirm that the change is not breaking (https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/artifacts/README.md#breaking-changes) and add the 'artifact_minor_upgrade' label to the PR. Modifications and additions to all fields require updates to https://github.com/dbt-labs/dbt-jsonschema."
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: CI check passed
|
||||||
|
if: steps.check_artifact_changes.outputs.artifacts_changed == 'false'
|
||||||
|
run: |
|
||||||
|
echo "No prohibited artifact changes found in core/dbt/artifacts. CI check passed."
|
||||||
39
.github/workflows/community-label.yml
vendored
Normal file
39
.github/workflows/community-label.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# **what?**
|
||||||
|
# Label a PR with a `community` label when a PR is opened by a user outside core/adapters
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# To streamline triage and ensure that community contributions are recognized and prioritized
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# When a PR is opened, not in draft or moved from draft to ready for review
|
||||||
|
|
||||||
|
|
||||||
|
name: Label community PRs
|
||||||
|
|
||||||
|
on:
|
||||||
|
# have to use pull_request_target since community PRs come from forks
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, ready_for_review]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write # labels PRs
|
||||||
|
contents: read # reads team membership
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
open_issues:
|
||||||
|
# If this PR already has the community label, no need to relabel it
|
||||||
|
# If this PR is opened and not draft, determine if it needs to be labeled
|
||||||
|
# if the PR is converted out of draft, determine if it needs to be labeled
|
||||||
|
if: |
|
||||||
|
(!contains(github.event.pull_request.labels.*.name, 'community') &&
|
||||||
|
(github.event.action == 'opened' && github.event.pull_request.draft == false ) ||
|
||||||
|
github.event.action == 'ready_for_review' )
|
||||||
|
uses: dbt-labs/actions/.github/workflows/label-community.yml@main
|
||||||
|
with:
|
||||||
|
github_team: 'core-group'
|
||||||
|
label: 'community'
|
||||||
|
secrets: inherit
|
||||||
41
.github/workflows/cut-release-branch.yml
vendored
Normal file
41
.github/workflows/cut-release-branch.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# **what?**
|
||||||
|
# Cuts a new `*.latest` branch
|
||||||
|
# Also cleans up all files in `.changes/unreleased` and `.changes/previous verion on
|
||||||
|
# `main` and bumps `main` to the input version.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# Generally reduces the workload of engineers and reduces error. Allow automation.
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# This will run when called manually.
|
||||||
|
|
||||||
|
name: Cut new release branch
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version_to_bump_main:
|
||||||
|
description: 'The alpha version main should bump to (ex. 1.6.0a1)'
|
||||||
|
required: true
|
||||||
|
new_branch_name:
|
||||||
|
description: 'The full name of the new branch (ex. 1.5.latest)'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cut_branch:
|
||||||
|
name: "Cut branch and clean up main for dbt-core"
|
||||||
|
uses: dbt-labs/actions/.github/workflows/cut-release-branch.yml@main
|
||||||
|
with:
|
||||||
|
version_to_bump_main: ${{ inputs.version_to_bump_main }}
|
||||||
|
new_branch_name: ${{ inputs.new_branch_name }}
|
||||||
|
PR_title: "Cleanup main after cutting new ${{ inputs.new_branch_name }} branch"
|
||||||
|
PR_body: "All adapter PRs will fail CI until the dbt-core PR has been merged due to release version conflicts."
|
||||||
|
secrets:
|
||||||
|
FISHTOWN_BOT_PAT: ${{ secrets.FISHTOWN_BOT_PAT }}
|
||||||
41
.github/workflows/docs-issue.yml
vendored
Normal file
41
.github/workflows/docs-issue.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# **what?**
|
||||||
|
# Open an issue in docs.getdbt.com when an issue is labeled `user docs` and closed as completed
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# To reduce barriers for keeping docs up to date
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# When an issue is labeled `user docs` and is closed as completed. Can be labeled before or after the issue is closed.
|
||||||
|
|
||||||
|
|
||||||
|
name: Open issues in docs.getdbt.com repo when an issue is labeled
|
||||||
|
run-name: "Open an issue in docs.getdbt.com for issue #${{ github.event.issue.number }}"
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [labeled, closed]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write # comments on issues
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
open_issues:
|
||||||
|
# we only want to run this when the issue is closed as completed and the label `user docs` has been assigned.
|
||||||
|
# If this logic does not exist in this workflow, it runs the
|
||||||
|
# risk of duplicaton of issues being created due to merge and label both triggering this workflow to run and neither having
|
||||||
|
# generating the comment before the other runs. This lives here instead of the shared workflow because this is where we
|
||||||
|
# decide if it should run or not.
|
||||||
|
if: |
|
||||||
|
(github.event.issue.state == 'closed' &&
|
||||||
|
github.event.issue.state_reason == 'completed' &&
|
||||||
|
contains( github.event.issue.labels.*.name, 'user docs'))
|
||||||
|
uses: dbt-labs/actions/.github/workflows/open-issue-in-repo.yml@main
|
||||||
|
with:
|
||||||
|
issue_repository: "dbt-labs/docs.getdbt.com"
|
||||||
|
issue_title: "Docs Changes Needed from ${{ github.event.repository.name }} Issue #${{ github.event.issue.number }}"
|
||||||
|
issue_body: "At a minimum, update body to include a link to the page on docs.getdbt.com requiring updates and what part(s) of the page you would like to see updated."
|
||||||
|
secrets: inherit
|
||||||
222
.github/workflows/integration.yml
vendored
222
.github/workflows/integration.yml
vendored
@@ -1,222 +0,0 @@
|
|||||||
# **what?**
|
|
||||||
# This workflow runs all integration tests for supported OS
|
|
||||||
# and python versions and core adapters. If triggered by PR,
|
|
||||||
# the workflow will only run tests for adapters related
|
|
||||||
# to code changes. Use the `test all` and `test ${adapter}`
|
|
||||||
# label to run all or additional tests. Use `ok to test`
|
|
||||||
# label to mark PRs from forked repositories that are safe
|
|
||||||
# to run integration tests for. Requires secrets to run
|
|
||||||
# against different warehouses.
|
|
||||||
|
|
||||||
# **why?**
|
|
||||||
# This checks the functionality of dbt from a user's perspective
|
|
||||||
# and attempts to catch functional regressions.
|
|
||||||
|
|
||||||
# **when?**
|
|
||||||
# This workflow will run on every push to a protected branch
|
|
||||||
# and when manually triggered. It will also run for all PRs, including
|
|
||||||
# PRs from forks. The workflow will be skipped until there is a label
|
|
||||||
# to mark the PR as safe to run.
|
|
||||||
|
|
||||||
name: Adapter Integration Tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
# pushes to release branches
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
- "develop"
|
|
||||||
- "*.latest"
|
|
||||||
- "releases/*"
|
|
||||||
# all PRs, important to note that `pull_request_target` workflows
|
|
||||||
# will run in the context of the target branch of a PR
|
|
||||||
pull_request_target:
|
|
||||||
# manual tigger
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# explicitly turn off permissions for `GITHUB_TOKEN`
|
|
||||||
permissions: read-all
|
|
||||||
|
|
||||||
# will cancel previous workflows triggered by the same event and for the same ref for PRs or same SHA otherwise
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
# sets default shell to bash, for all operating systems
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# generate test metadata about what files changed and the testing matrix to use
|
|
||||||
test-metadata:
|
|
||||||
# run if not a PR from a forked repository or has a label to mark as safe to test
|
|
||||||
if: >-
|
|
||||||
github.event_name != 'pull_request_target' ||
|
|
||||||
github.event.pull_request.head.repo.full_name == github.repository ||
|
|
||||||
contains(github.event.pull_request.labels.*.name, 'ok to test')
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
matrix: ${{ steps.generate-matrix.outputs.result }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out the repository (non-PR)
|
|
||||||
if: github.event_name != 'pull_request_target'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Check out the repository (PR)
|
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Check if relevant files changed
|
|
||||||
# https://github.com/marketplace/actions/paths-changes-filter
|
|
||||||
# For each filter, it sets output variable named by the filter to the text:
|
|
||||||
# 'true' - if any of changed files matches any of filter rules
|
|
||||||
# 'false' - if none of changed files matches any of filter rules
|
|
||||||
# also, returns:
|
|
||||||
# `changes` - JSON array with names of all filters matching any of the changed files
|
|
||||||
uses: dorny/paths-filter@v2
|
|
||||||
id: get-changes
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
filters: |
|
|
||||||
postgres:
|
|
||||||
- 'core/**'
|
|
||||||
- 'plugins/postgres/**'
|
|
||||||
- 'dev-requirements.txt'
|
|
||||||
|
|
||||||
- name: Generate integration test matrix
|
|
||||||
id: generate-matrix
|
|
||||||
uses: actions/github-script@v4
|
|
||||||
env:
|
|
||||||
CHANGES: ${{ steps.get-changes.outputs.changes }}
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const script = require('./.github/scripts/integration-test-matrix.js')
|
|
||||||
const matrix = script({ context })
|
|
||||||
console.log(matrix)
|
|
||||||
return matrix
|
|
||||||
|
|
||||||
test:
|
|
||||||
name: ${{ matrix.adapter }} / python ${{ matrix.python-version }} / ${{ matrix.os }}
|
|
||||||
|
|
||||||
# run if not a PR from a forked repository or has a label to mark as safe to test
|
|
||||||
# also checks that the matrix generated is not empty
|
|
||||||
if: >-
|
|
||||||
needs.test-metadata.outputs.matrix &&
|
|
||||||
fromJSON( needs.test-metadata.outputs.matrix ).include[0] &&
|
|
||||||
(
|
|
||||||
github.event_name != 'pull_request_target' ||
|
|
||||||
github.event.pull_request.head.repo.full_name == github.repository ||
|
|
||||||
contains(github.event.pull_request.labels.*.name, 'ok to test')
|
|
||||||
)
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
needs: test-metadata
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix: ${{ fromJSON(needs.test-metadata.outputs.matrix) }}
|
|
||||||
|
|
||||||
env:
|
|
||||||
TOXENV: integration-${{ matrix.adapter }}
|
|
||||||
PYTEST_ADDOPTS: "-v --color=yes -n4 --csv integration_results.csv"
|
|
||||||
DBT_INVOCATION_ENV: github-actions
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out the repository
|
|
||||||
if: github.event_name != 'pull_request_target'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
# explicity checkout the branch for the PR,
|
|
||||||
# this is necessary for the `pull_request_target` event
|
|
||||||
- name: Check out the repository (PR)
|
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
|
|
||||||
- name: Set up postgres (linux)
|
|
||||||
if: |
|
|
||||||
matrix.adapter == 'postgres' &&
|
|
||||||
runner.os == 'Linux'
|
|
||||||
uses: ./.github/actions/setup-postgres-linux
|
|
||||||
|
|
||||||
- name: Set up postgres (macos)
|
|
||||||
if: |
|
|
||||||
matrix.adapter == 'postgres' &&
|
|
||||||
runner.os == 'macOS'
|
|
||||||
uses: ./.github/actions/setup-postgres-macos
|
|
||||||
|
|
||||||
- name: Set up postgres (windows)
|
|
||||||
if: |
|
|
||||||
matrix.adapter == 'postgres' &&
|
|
||||||
runner.os == 'Windows'
|
|
||||||
uses: ./.github/actions/setup-postgres-windows
|
|
||||||
|
|
||||||
- name: Install python dependencies
|
|
||||||
run: |
|
|
||||||
pip install --user --upgrade pip
|
|
||||||
pip install tox
|
|
||||||
pip --version
|
|
||||||
tox --version
|
|
||||||
|
|
||||||
- name: Run tox (postgres)
|
|
||||||
if: matrix.adapter == 'postgres'
|
|
||||||
run: tox
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: logs
|
|
||||||
path: ./logs
|
|
||||||
|
|
||||||
- name: Get current date
|
|
||||||
if: always()
|
|
||||||
id: date
|
|
||||||
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" #no colons allowed for artifacts
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: integration_results_${{ matrix.python-version }}_${{ matrix.os }}_${{ matrix.adapter }}-${{ steps.date.outputs.date }}.csv
|
|
||||||
path: integration_results.csv
|
|
||||||
|
|
||||||
require-label-comment:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
needs: test
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Needs permission PR comment
|
|
||||||
if: >-
|
|
||||||
needs.test.result == 'skipped' &&
|
|
||||||
github.event_name == 'pull_request_target' &&
|
|
||||||
github.event.pull_request.head.repo.full_name != github.repository
|
|
||||||
uses: unsplash/comment-on-pr@master
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
msg: |
|
|
||||||
"You do not have permissions to run integration tests, @dbt-labs/core "\
|
|
||||||
"needs to label this PR with `ok to test` in order to run integration tests!"
|
|
||||||
check_for_duplicate_msg: true
|
|
||||||
275
.github/workflows/main.yml
vendored
275
.github/workflows/main.yml
vendored
@@ -1,9 +1,8 @@
|
|||||||
# **what?**
|
# **what?**
|
||||||
# Runs code quality checks, unit tests, and verifies python build on
|
# Runs code quality checks, unit tests, integration tests and
|
||||||
# all code commited to the repository. This workflow should not
|
# verifies python build on all code commited to the repository. This workflow
|
||||||
# require any secrets since it runs for PRs from forked repos.
|
# should not require any secrets since it runs for PRs from forked repos. By
|
||||||
# By default, secrets are not passed to workflows running from
|
# default, secrets are not passed to workflows running from a forked repos.
|
||||||
# a forked repo.
|
|
||||||
|
|
||||||
# **why?**
|
# **why?**
|
||||||
# Ensure code for dbt meets a certain quality standard.
|
# Ensure code for dbt meets a certain quality standard.
|
||||||
@@ -18,7 +17,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
- "develop"
|
|
||||||
- "*.latest"
|
- "*.latest"
|
||||||
- "releases/*"
|
- "releases/*"
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -35,85 +33,223 @@ defaults:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
# top-level adjustments can be made here
|
||||||
|
env:
|
||||||
|
# number of parallel processes to spawn for python integration testing
|
||||||
|
PYTHON_INTEGRATION_TEST_WORKERS: 5
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
code-quality:
|
code-quality:
|
||||||
name: ${{ matrix.toxenv }}
|
name: code-quality
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
toxenv: [flake8, mypy]
|
|
||||||
|
|
||||||
env:
|
|
||||||
TOXENV: ${{ matrix.toxenv }}
|
|
||||||
PYTEST_ADDOPTS: "-v --color=yes"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.8'
|
||||||
|
|
||||||
- name: Install python dependencies
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --user --upgrade pip
|
python -m pip install --user --upgrade pip
|
||||||
pip install tox
|
python -m pip --version
|
||||||
pip --version
|
make dev
|
||||||
tox --version
|
mypy --version
|
||||||
|
dbt --version
|
||||||
|
|
||||||
- name: Run tox
|
- name: Run pre-commit hooks
|
||||||
run: tox
|
run: pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
||||||
unit:
|
unit:
|
||||||
name: unit test / python ${{ matrix.python-version }}
|
name: unit test / python ${{ matrix.python-version }}
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8] # TODO: support unit testing for python 3.9 (https://github.com/dbt-labs/dbt/issues/3689)
|
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TOXENV: "unit"
|
TOXENV: "unit"
|
||||||
PYTEST_ADDOPTS: "-v --color=yes --csv unit_results.csv"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install python dependencies
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --user --upgrade pip
|
python -m pip install --user --upgrade pip
|
||||||
pip install tox
|
python -m pip --version
|
||||||
pip --version
|
python -m pip install tox
|
||||||
tox --version
|
tox --version
|
||||||
|
|
||||||
- name: Run tox
|
- name: Run unit tests
|
||||||
run: tox
|
uses: nick-fields/retry@v3
|
||||||
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
|
max_attempts: 3
|
||||||
|
command: tox -e unit
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
if: always()
|
if: always()
|
||||||
id: date
|
id: date
|
||||||
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" #no colons allowed for artifacts
|
run: |
|
||||||
|
CURRENT_DATE=$(date +'%Y-%m-%dT%H_%M_%S') # no colons allowed for artifacts
|
||||||
|
echo "date=$CURRENT_DATE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Upload Unit Test Coverage to Codecov
|
||||||
|
if: ${{ matrix.python-version == '3.11' }}
|
||||||
|
uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
flags: unit
|
||||||
|
|
||||||
|
integration-metadata:
|
||||||
|
name: integration test metadata generation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
split-groups: ${{ steps.generate-split-groups.outputs.split-groups }}
|
||||||
|
include: ${{ steps.generate-include.outputs.include }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: generate split-groups
|
||||||
|
id: generate-split-groups
|
||||||
|
run: |
|
||||||
|
MATRIX_JSON="["
|
||||||
|
for B in $(seq 1 ${{ env.PYTHON_INTEGRATION_TEST_WORKERS }}); do
|
||||||
|
MATRIX_JSON+=$(sed 's/^/"/;s/$/"/' <<< "${B}")
|
||||||
|
done
|
||||||
|
MATRIX_JSON="${MATRIX_JSON//\"\"/\", \"}"
|
||||||
|
MATRIX_JSON+="]"
|
||||||
|
echo "split-groups=${MATRIX_JSON}"
|
||||||
|
echo "split-groups=${MATRIX_JSON}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: generate include
|
||||||
|
id: generate-include
|
||||||
|
run: |
|
||||||
|
INCLUDE=('"python-version":"3.8","os":"windows-latest"' '"python-version":"3.8","os":"macos-12"' )
|
||||||
|
INCLUDE_GROUPS="["
|
||||||
|
for include in ${INCLUDE[@]}; do
|
||||||
|
for group in $(seq 1 ${{ env.PYTHON_INTEGRATION_TEST_WORKERS }}); do
|
||||||
|
INCLUDE_GROUPS+=$(sed 's/$/, /' <<< "{\"split-group\":\"${group}\",${include}}")
|
||||||
|
done
|
||||||
|
done
|
||||||
|
INCLUDE_GROUPS=$(echo $INCLUDE_GROUPS | sed 's/,*$//g')
|
||||||
|
INCLUDE_GROUPS+="]"
|
||||||
|
echo "include=${INCLUDE_GROUPS}"
|
||||||
|
echo "include=${INCLUDE_GROUPS}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
integration:
|
||||||
|
name: (${{ matrix.split-group }}) integration test / python ${{ matrix.python-version }} / ${{ matrix.os }}
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
timeout-minutes: 30
|
||||||
|
needs:
|
||||||
|
- integration-metadata
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
||||||
|
os: [ubuntu-20.04]
|
||||||
|
split-group: ${{ fromJson(needs.integration-metadata.outputs.split-groups) }}
|
||||||
|
include: ${{ fromJson(needs.integration-metadata.outputs.include) }}
|
||||||
|
env:
|
||||||
|
TOXENV: integration
|
||||||
|
DBT_INVOCATION_ENV: github-actions
|
||||||
|
DBT_TEST_USER_1: dbt_test_user_1
|
||||||
|
DBT_TEST_USER_2: dbt_test_user_2
|
||||||
|
DBT_TEST_USER_3: dbt_test_user_3
|
||||||
|
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
|
||||||
|
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
||||||
|
DD_SITE: datadoghq.com
|
||||||
|
DD_ENV: ci
|
||||||
|
DD_SERVICE: ${{ github.event.repository.name }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Set up postgres (linux)
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
uses: ./.github/actions/setup-postgres-linux
|
||||||
|
|
||||||
|
- name: Set up postgres (macos)
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
uses: ./.github/actions/setup-postgres-macos
|
||||||
|
|
||||||
|
- name: Set up postgres (windows)
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
uses: ./.github/actions/setup-postgres-windows
|
||||||
|
|
||||||
|
- name: Install python tools
|
||||||
|
run: |
|
||||||
|
python -m pip install --user --upgrade pip
|
||||||
|
python -m pip --version
|
||||||
|
python -m pip install tox
|
||||||
|
tox --version
|
||||||
|
|
||||||
|
- name: Run integration tests
|
||||||
|
uses: nick-fields/retry@v3
|
||||||
|
with:
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
|
command: tox -- --ddtrace
|
||||||
|
env:
|
||||||
|
PYTEST_ADDOPTS: ${{ format('--splits {0} --group {1}', env.PYTHON_INTEGRATION_TEST_WORKERS, matrix.split-group) }}
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
if: always()
|
||||||
|
id: date
|
||||||
|
run: |
|
||||||
|
CURRENT_DATE=$(date +'%Y-%m-%dT%H_%M_%S') # no colons allowed for artifacts
|
||||||
|
echo "date=$CURRENT_DATE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: unit_results_${{ matrix.python-version }}-${{ steps.date.outputs.date }}.csv
|
name: logs_${{ matrix.python-version }}_${{ matrix.os }}_${{ matrix.split-group }}_${{ steps.date.outputs.date }}
|
||||||
path: unit_results.csv
|
path: ./logs
|
||||||
|
|
||||||
|
- name: Upload Integration Test Coverage to Codecov
|
||||||
|
if: ${{ matrix.python-version == '3.11' }}
|
||||||
|
uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
flags: integration
|
||||||
|
|
||||||
|
integration-report:
|
||||||
|
if: ${{ always() }}
|
||||||
|
name: Integration Test Suite
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: integration
|
||||||
|
steps:
|
||||||
|
- name: "Integration Tests Failed"
|
||||||
|
if: ${{ contains(needs.integration.result, 'failure') || contains(needs.integration.result, 'cancelled') }}
|
||||||
|
# when this is true the next step won't execute
|
||||||
|
run: |
|
||||||
|
echo "::notice title='Integration test suite failed'"
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: "Integration Tests Passed"
|
||||||
|
run: |
|
||||||
|
echo "::notice title='Integration test suite passed'"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: build packages
|
name: build packages
|
||||||
@@ -122,20 +258,18 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: '3.8'
|
||||||
|
|
||||||
- name: Install python dependencies
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --user --upgrade pip
|
python -m pip install --user --upgrade pip
|
||||||
pip install --upgrade setuptools wheel twine check-wheel-contents
|
python -m pip install --upgrade setuptools wheel twine check-wheel-contents
|
||||||
pip --version
|
python -m pip --version
|
||||||
|
|
||||||
- name: Build distributions
|
- name: Build distributions
|
||||||
run: ./scripts/build-dist.sh
|
run: ./scripts/build-dist.sh
|
||||||
@@ -151,55 +285,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
check-wheel-contents dist/*.whl --ignore W007,W008
|
check-wheel-contents dist/*.whl --ignore W007,W008
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
|
|
||||||
test-build:
|
|
||||||
name: verify packages / python ${{ matrix.python-version }} / ${{ matrix.os }}
|
|
||||||
|
|
||||||
needs: build
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
|
|
||||||
- name: Install python dependencies
|
|
||||||
run: |
|
|
||||||
pip install --user --upgrade pip
|
|
||||||
pip install --upgrade wheel
|
|
||||||
pip --version
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
|
|
||||||
- name: Show distributions
|
|
||||||
run: ls -lh dist/
|
|
||||||
|
|
||||||
- name: Install wheel distributions
|
- name: Install wheel distributions
|
||||||
run: |
|
run: |
|
||||||
find ./dist/*.whl -maxdepth 1 -type f | xargs pip install --force-reinstall --find-links=dist/
|
find ./dist/*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/
|
||||||
|
|
||||||
- name: Check wheel distributions
|
- name: Check wheel distributions
|
||||||
run: |
|
run: |
|
||||||
dbt --version
|
dbt --version
|
||||||
|
|
||||||
- name: Install source distributions
|
- name: Install source distributions
|
||||||
|
# ignore dbt-1.0.0, which intentionally raises an error when installed from source
|
||||||
run: |
|
run: |
|
||||||
find ./dist/*.gz -maxdepth 1 -type f | xargs pip install --force-reinstall --find-links=dist/
|
find ./dist/*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/
|
||||||
|
|
||||||
- name: Check source distributions
|
- name: Check source distributions
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
265
.github/workflows/model_performance.yml
vendored
Normal file
265
.github/workflows/model_performance.yml
vendored
Normal file
@@ -0,0 +1,265 @@
|
|||||||
|
# **what?**
|
||||||
|
# This workflow models the performance characteristics of a point in time in dbt.
|
||||||
|
# It runs specific dbt commands on committed projects multiple times to create and
|
||||||
|
# commit information about the distribution to the current branch. For more information
|
||||||
|
# see the readme in the performance module at /performance/README.md.
|
||||||
|
#
|
||||||
|
# **why?**
|
||||||
|
# When developing new features, we can take quick performance samples and compare
|
||||||
|
# them against the commited baseline measurements produced by this workflow to detect
|
||||||
|
# some performance regressions at development time before they reach users.
|
||||||
|
#
|
||||||
|
# **when?**
|
||||||
|
# This is only run once directly after each release (for non-prereleases). If for some
|
||||||
|
# reason the results of a run are not satisfactory, it can also be triggered manually.
|
||||||
|
|
||||||
|
name: Model Performance Characteristics
|
||||||
|
|
||||||
|
on:
|
||||||
|
# runs after non-prereleases are published.
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
# run manually from the actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_id:
|
||||||
|
description: 'dbt version to model (must be non-prerelease in Pypi)'
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUNNER_CACHE_PATH: performance/runner/target/release/runner
|
||||||
|
|
||||||
|
# both jobs need to write
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
set-variables:
|
||||||
|
name: Setting Variables
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
cache_key: ${{ steps.variables.outputs.cache_key }}
|
||||||
|
release_id: ${{ steps.semver.outputs.base-version }}
|
||||||
|
release_branch: ${{ steps.variables.outputs.release_branch }}
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# explicitly checkout the performance runner from main regardless of which
|
||||||
|
# version we are modeling.
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
|
||||||
|
- name: Parse version into parts
|
||||||
|
id: semver
|
||||||
|
uses: dbt-labs/actions/parse-semver@v1
|
||||||
|
with:
|
||||||
|
version: ${{ github.event.inputs.release_id || github.event.release.tag_name }}
|
||||||
|
|
||||||
|
# collect all the variables that need to be used in subsequent jobs
|
||||||
|
- name: Set variables
|
||||||
|
id: variables
|
||||||
|
run: |
|
||||||
|
# create a cache key that will be used in the next job. without this the
|
||||||
|
# next job would have to checkout from main and hash the files itself.
|
||||||
|
echo "cache_key=${{ runner.os }}-${{ hashFiles('performance/runner/Cargo.toml')}}-${{ hashFiles('performance/runner/src/*') }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
branch_name="${{steps.semver.outputs.major}}.${{steps.semver.outputs.minor}}.latest"
|
||||||
|
echo "release_branch=$branch_name" >> $GITHUB_OUTPUT
|
||||||
|
echo "release branch is inferred to be ${branch_name}"
|
||||||
|
|
||||||
|
latest-runner:
|
||||||
|
name: Build or Fetch Runner
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [set-variables]
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: "-D warnings"
|
||||||
|
steps:
|
||||||
|
- name: '[DEBUG] print variables'
|
||||||
|
run: |
|
||||||
|
echo "all variables defined in set-variables"
|
||||||
|
echo "cache_key: ${{ needs.set-variables.outputs.cache_key }}"
|
||||||
|
echo "release_id: ${{ needs.set-variables.outputs.release_id }}"
|
||||||
|
echo "release_branch: ${{ needs.set-variables.outputs.release_branch }}"
|
||||||
|
|
||||||
|
# explicitly checkout the performance runner from main regardless of which
|
||||||
|
# version we are modeling.
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
|
||||||
|
# attempts to access a previously cached runner
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: ${{ env.RUNNER_CACHE_PATH }}
|
||||||
|
key: ${{ needs.set-variables.outputs.cache_key }}
|
||||||
|
|
||||||
|
- name: Fetch Rust Toolchain
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- name: Add fmt
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
run: rustup component add rustfmt
|
||||||
|
|
||||||
|
- name: Cargo fmt
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: fmt
|
||||||
|
args: --manifest-path performance/runner/Cargo.toml --all -- --check
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --manifest-path performance/runner/Cargo.toml
|
||||||
|
|
||||||
|
- name: Build (optimized)
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --release --manifest-path performance/runner/Cargo.toml
|
||||||
|
# the cache action automatically caches this binary at the end of the job
|
||||||
|
|
||||||
|
model:
|
||||||
|
# depends on `latest-runner` as a separate job so that failures in this job do not prevent
|
||||||
|
# a successfully tested and built binary from being cached.
|
||||||
|
needs: [set-variables, latest-runner]
|
||||||
|
name: Model a release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: '[DEBUG] print variables'
|
||||||
|
run: |
|
||||||
|
echo "all variables defined in set-variables"
|
||||||
|
echo "cache_key: ${{ needs.set-variables.outputs.cache_key }}"
|
||||||
|
echo "release_id: ${{ needs.set-variables.outputs.release_id }}"
|
||||||
|
echo "release_branch: ${{ needs.set-variables.outputs.release_branch }}"
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
- name: Install dbt
|
||||||
|
run: pip install dbt-postgres==${{ needs.set-variables.outputs.release_id }}
|
||||||
|
|
||||||
|
- name: Install Hyperfine
|
||||||
|
run: wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb && sudo dpkg -i hyperfine_1.11.0_amd64.deb
|
||||||
|
|
||||||
|
# explicitly checkout main to get the latest project definitions
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
|
||||||
|
# this was built in the previous job so it will be there.
|
||||||
|
- name: Fetch Runner
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: ${{ env.RUNNER_CACHE_PATH }}
|
||||||
|
key: ${{ needs.set-variables.outputs.cache_key }}
|
||||||
|
|
||||||
|
- name: Move Runner
|
||||||
|
run: mv performance/runner/target/release/runner performance/app
|
||||||
|
|
||||||
|
- name: Change Runner Permissions
|
||||||
|
run: chmod +x ./performance/app
|
||||||
|
|
||||||
|
- name: '[DEBUG] ls baseline directory before run'
|
||||||
|
run: ls -R performance/baselines/
|
||||||
|
|
||||||
|
# `${{ github.workspace }}` is used to pass the absolute path
|
||||||
|
- name: Create directories
|
||||||
|
run: |
|
||||||
|
mkdir ${{ github.workspace }}/performance/tmp/
|
||||||
|
mkdir -p performance/baselines/${{ needs.set-variables.outputs.release_id }}/
|
||||||
|
|
||||||
|
# Run modeling with taking 20 samples
|
||||||
|
- name: Run Measurement
|
||||||
|
run: |
|
||||||
|
performance/app model -v ${{ needs.set-variables.outputs.release_id }} -b ${{ github.workspace }}/performance/baselines/ -p ${{ github.workspace }}/performance/projects/ -t ${{ github.workspace }}/performance/tmp/ -n 20
|
||||||
|
|
||||||
|
- name: '[DEBUG] ls baseline directory after run'
|
||||||
|
run: ls -R performance/baselines/
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: baseline
|
||||||
|
path: performance/baselines/${{ needs.set-variables.outputs.release_id }}/
|
||||||
|
|
||||||
|
create-pr:
|
||||||
|
name: Open PR for ${{ matrix.base-branch }}
|
||||||
|
|
||||||
|
# depends on `model` as a separate job so that the baseline can be committed to more than one branch
|
||||||
|
# i.e. release branch and main
|
||||||
|
needs: [set-variables, latest-runner, model]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- base-branch: refs/heads/main
|
||||||
|
target-branch: performance-bot/main_${{ needs.set-variables.outputs.release_id }}_${{GITHUB.RUN_ID}}
|
||||||
|
- base-branch: refs/heads/${{ needs.set-variables.outputs.release_branch }}
|
||||||
|
target-branch: performance-bot/release_${{ needs.set-variables.outputs.release_id }}_${{GITHUB.RUN_ID}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: '[DEBUG] print variables'
|
||||||
|
run: |
|
||||||
|
echo "all variables defined in set-variables"
|
||||||
|
echo "cache_key: ${{ needs.set-variables.outputs.cache_key }}"
|
||||||
|
echo "release_id: ${{ needs.set-variables.outputs.release_id }}"
|
||||||
|
echo "release_branch: ${{ needs.set-variables.outputs.release_branch }}"
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ matrix.base-branch }}
|
||||||
|
|
||||||
|
- name: Create PR branch
|
||||||
|
run: |
|
||||||
|
git checkout -b ${{ matrix.target-branch }}
|
||||||
|
git push origin ${{ matrix.target-branch }}
|
||||||
|
git branch --set-upstream-to=origin/${{ matrix.target-branch }} ${{ matrix.target-branch }}
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: baseline
|
||||||
|
path: performance/baselines/${{ needs.set-variables.outputs.release_id }}
|
||||||
|
|
||||||
|
- name: '[DEBUG] ls baselines after artifact download'
|
||||||
|
run: ls -R performance/baselines/
|
||||||
|
|
||||||
|
- name: Commit baseline
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
add: 'performance/baselines/*'
|
||||||
|
author_name: 'Github Build Bot'
|
||||||
|
author_email: 'buildbot@fishtownanalytics.com'
|
||||||
|
message: 'adding performance baseline for ${{ needs.set-variables.outputs.release_id }}'
|
||||||
|
push: 'origin origin/${{ matrix.target-branch }}'
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v6
|
||||||
|
with:
|
||||||
|
author: 'Github Build Bot <buildbot@fishtownanalytics.com>'
|
||||||
|
base: ${{ matrix.base-branch }}
|
||||||
|
branch: '${{ matrix.target-branch }}'
|
||||||
|
title: 'Adding performance modeling for ${{needs.set-variables.outputs.release_id}} to ${{ matrix.base-branch }}'
|
||||||
|
body: 'Committing perf results for tracking for the ${{needs.set-variables.outputs.release_id}}'
|
||||||
|
labels: |
|
||||||
|
Skip Changelog
|
||||||
|
Performance
|
||||||
97
.github/workflows/nightly-release.yml
vendored
Normal file
97
.github/workflows/nightly-release.yml
vendored
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
# **what?**
|
||||||
|
# Nightly releases to GitHub and PyPI. This workflow produces the following outcome:
|
||||||
|
# - generate and validate data for night release (commit SHA, version number, release branch);
|
||||||
|
# - pass data to release workflow;
|
||||||
|
# - night release will be pushed to GitHub as a draft release;
|
||||||
|
# - night build will be pushed to test PyPI;
|
||||||
|
#
|
||||||
|
# **why?**
|
||||||
|
# Ensure an automated and tested release process for nightly builds
|
||||||
|
#
|
||||||
|
# **when?**
|
||||||
|
# This workflow runs on schedule or can be run manually on demand.
|
||||||
|
|
||||||
|
name: Nightly Test Release to GitHub and PyPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # for manual triggering
|
||||||
|
schedule:
|
||||||
|
- cron: 0 9 * * *
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write # this is the permission that allows creating a new release
|
||||||
|
packages: write # this is the permission that allows Docker release
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
env:
|
||||||
|
RELEASE_BRANCH: "main"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
aggregate-release-data:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
version_number: ${{ steps.nightly-release-version.outputs.number }}
|
||||||
|
release_branch: ${{ steps.release-branch.outputs.name }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout ${{ github.repository }} Branch ${{ env.RELEASE_BRANCH }}"
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ env.RELEASE_BRANCH }}
|
||||||
|
|
||||||
|
- name: "Get Current Version Number"
|
||||||
|
id: version-number-sources
|
||||||
|
run: |
|
||||||
|
current_version=`awk -F"current_version = " '{print $2}' .bumpversion.cfg | tr '\n' ' '`
|
||||||
|
echo "current_version=$current_version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: "Audit Version And Parse Into Parts"
|
||||||
|
id: semver
|
||||||
|
uses: dbt-labs/actions/parse-semver@v1.1.0
|
||||||
|
with:
|
||||||
|
version: ${{ steps.version-number-sources.outputs.current_version }}
|
||||||
|
|
||||||
|
- name: "Get Current Date"
|
||||||
|
id: current-date
|
||||||
|
run: echo "date=$(date +'%m%d%Y')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: "Generate Nightly Release Version Number"
|
||||||
|
id: nightly-release-version
|
||||||
|
run: |
|
||||||
|
number="${{ steps.semver.outputs.version }}.dev${{ steps.current-date.outputs.date }}"
|
||||||
|
echo "number=$number" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: "Audit Nightly Release Version And Parse Into Parts"
|
||||||
|
uses: dbt-labs/actions/parse-semver@v1.1.0
|
||||||
|
with:
|
||||||
|
version: ${{ steps.nightly-release-version.outputs.number }}
|
||||||
|
|
||||||
|
- name: "Set Release Branch"
|
||||||
|
id: release-branch
|
||||||
|
run: |
|
||||||
|
echo "name=${{ env.RELEASE_BRANCH }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
log-outputs-aggregate-release-data:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [aggregate-release-data]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "[DEBUG] Log Outputs"
|
||||||
|
run: |
|
||||||
|
echo version_number: ${{ needs.aggregate-release-data.outputs.version_number }}
|
||||||
|
echo release_branch: ${{ needs.aggregate-release-data.outputs.release_branch }}
|
||||||
|
|
||||||
|
release-github-pypi:
|
||||||
|
needs: [aggregate-release-data]
|
||||||
|
|
||||||
|
uses: ./.github/workflows/release.yml
|
||||||
|
with:
|
||||||
|
target_branch: ${{ needs.aggregate-release-data.outputs.release_branch }}
|
||||||
|
version_number: ${{ needs.aggregate-release-data.outputs.version_number }}
|
||||||
|
test_run: true
|
||||||
|
nightly_release: true
|
||||||
|
secrets: inherit
|
||||||
176
.github/workflows/performance.yml
vendored
176
.github/workflows/performance.yml
vendored
@@ -1,176 +0,0 @@
|
|||||||
name: Performance Regression Tests
|
|
||||||
# Schedule triggers
|
|
||||||
on:
|
|
||||||
# runs twice a day at 10:05am and 10:05pm
|
|
||||||
schedule:
|
|
||||||
- cron: "5 10,22 * * *"
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# checks fmt of runner code
|
|
||||||
# purposefully not a dependency of any other job
|
|
||||||
# will block merging, but not prevent developing
|
|
||||||
fmt:
|
|
||||||
name: Cargo fmt
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- run: rustup component add rustfmt
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --manifest-path performance/runner/Cargo.toml --all -- --check
|
|
||||||
|
|
||||||
# runs any tests associated with the runner
|
|
||||||
# these tests make sure the runner logic is correct
|
|
||||||
test-runner:
|
|
||||||
name: Test Runner
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
# turns errors into warnings
|
|
||||||
RUSTFLAGS: "-D warnings"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --manifest-path performance/runner/Cargo.toml
|
|
||||||
|
|
||||||
# build an optimized binary to be used as the runner in later steps
|
|
||||||
build-runner:
|
|
||||||
needs: [test-runner]
|
|
||||||
name: Build Runner
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: "-D warnings"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --release --manifest-path performance/runner/Cargo.toml
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: runner
|
|
||||||
path: performance/runner/target/release/runner
|
|
||||||
|
|
||||||
# run the performance measurements on the current or default branch
|
|
||||||
measure-dev:
|
|
||||||
needs: [build-runner]
|
|
||||||
name: Measure Dev Branch
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout dev
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v2.2.2
|
|
||||||
with:
|
|
||||||
python-version: "3.8"
|
|
||||||
- name: install dbt
|
|
||||||
run: pip install -r dev-requirements.txt -r editable-requirements.txt
|
|
||||||
- name: install hyperfine
|
|
||||||
run: wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb && sudo dpkg -i hyperfine_1.11.0_amd64.deb
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: runner
|
|
||||||
- name: change permissions
|
|
||||||
run: chmod +x ./runner
|
|
||||||
- name: run
|
|
||||||
run: ./runner measure -b dev -p ${{ github.workspace }}/performance/projects/
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dev-results
|
|
||||||
path: performance/results/
|
|
||||||
|
|
||||||
# run the performance measurements on the release branch which we use
|
|
||||||
# as a performance baseline. This part takes by far the longest, so
|
|
||||||
# we do everything we can first so the job fails fast.
|
|
||||||
# -----
|
|
||||||
# we need to checkout dbt twice in this job: once for the baseline dbt
|
|
||||||
# version, and once to get the latest regression testing projects,
|
|
||||||
# metrics, and runner code from the develop or current branch so that
|
|
||||||
# the calculations match for both versions of dbt we are comparing.
|
|
||||||
measure-baseline:
|
|
||||||
needs: [build-runner]
|
|
||||||
name: Measure Baseline Branch
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout latest
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: "0.20.latest"
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v2.2.2
|
|
||||||
with:
|
|
||||||
python-version: "3.8"
|
|
||||||
- name: move repo up a level
|
|
||||||
run: mkdir ${{ github.workspace }}/../baseline/ && cp -r ${{ github.workspace }} ${{ github.workspace }}/../baseline
|
|
||||||
- name: "[debug] ls new dbt location"
|
|
||||||
run: ls ${{ github.workspace }}/../baseline/dbt/
|
|
||||||
# installation creates egg-links so we have to preserve source
|
|
||||||
- name: install dbt from new location
|
|
||||||
run: cd ${{ github.workspace }}/../baseline/dbt/ && pip install -r dev-requirements.txt -r editable-requirements.txt
|
|
||||||
# checkout the current branch to get all the target projects
|
|
||||||
# this deletes the old checked out code which is why we had to copy before
|
|
||||||
- name: checkout dev
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: install hyperfine
|
|
||||||
run: wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb && sudo dpkg -i hyperfine_1.11.0_amd64.deb
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: runner
|
|
||||||
- name: change permissions
|
|
||||||
run: chmod +x ./runner
|
|
||||||
- name: run runner
|
|
||||||
run: ./runner measure -b baseline -p ${{ github.workspace }}/performance/projects/
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: baseline-results
|
|
||||||
path: performance/results/
|
|
||||||
|
|
||||||
# detect regressions on the output generated from measuring
|
|
||||||
# the two branches. Exits with non-zero code if a regression is detected.
|
|
||||||
calculate-regressions:
|
|
||||||
needs: [measure-dev, measure-baseline]
|
|
||||||
name: Compare Results
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dev-results
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: baseline-results
|
|
||||||
- name: "[debug] ls result files"
|
|
||||||
run: ls
|
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: runner
|
|
||||||
- name: change permissions
|
|
||||||
run: chmod +x ./runner
|
|
||||||
- name: make results directory
|
|
||||||
run: mkdir ./final-output/
|
|
||||||
- name: run calculation
|
|
||||||
run: ./runner calculate -r ./ -o ./final-output/
|
|
||||||
# always attempt to upload the results even if there were regressions found
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
if: ${{ always() }}
|
|
||||||
with:
|
|
||||||
name: final-calculations
|
|
||||||
path: ./final-output/*
|
|
||||||
31
.github/workflows/release-branch-tests.yml
vendored
Normal file
31
.github/workflows/release-branch-tests.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# **what?**
|
||||||
|
# The purpose of this workflow is to trigger CI to run for each
|
||||||
|
# release branch and main branch on a regular cadence. If the CI workflow
|
||||||
|
# fails for a branch, it will post to #dev-core-alerts to raise awareness.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# Ensures release branches and main are always shippable and not broken.
|
||||||
|
# Also, can catch any dependencies shifting beneath us that might
|
||||||
|
# introduce breaking changes (could also impact Cloud).
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# Mainly on a schedule of 9:00, 13:00, 18:00 UTC everyday.
|
||||||
|
# Manual trigger can also test on demand
|
||||||
|
|
||||||
|
name: Release branch scheduled testing
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 9,13,18 * * *' # 9:00, 13:00, 18:00 UTC
|
||||||
|
|
||||||
|
workflow_dispatch: # for manual triggering
|
||||||
|
|
||||||
|
# no special access is needed
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run_tests:
|
||||||
|
uses: dbt-labs/actions/.github/workflows/release-branch-tests.yml@main
|
||||||
|
with:
|
||||||
|
workflows_to_run: '["main.yml"]'
|
||||||
|
secrets: inherit
|
||||||
270
.github/workflows/release.yml
vendored
Normal file
270
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
# **what?**
|
||||||
|
# Release workflow provides the following steps:
|
||||||
|
# - checkout the given commit;
|
||||||
|
# - validate version in sources and changelog file for given version;
|
||||||
|
# - bump the version and generate a changelog if needed;
|
||||||
|
# - merge all changes to the target branch if needed;
|
||||||
|
# - run unit and integration tests against given commit;
|
||||||
|
# - build and package that SHA;
|
||||||
|
# - release it to GitHub and PyPI with that specific build;
|
||||||
|
# - release it to Docker
|
||||||
|
#
|
||||||
|
# **why?**
|
||||||
|
# Ensure an automated and tested release process
|
||||||
|
#
|
||||||
|
# **when?**
|
||||||
|
# This workflow can be run manually on demand or can be called by other workflows
|
||||||
|
|
||||||
|
name: "Release to GitHub, PyPI & Docker"
|
||||||
|
run-name: "Release ${{ inputs.version_number }} to GitHub, PyPI & Docker"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
target_branch:
|
||||||
|
description: "The branch to release from"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
version_number:
|
||||||
|
description: "The release version number (i.e. 1.0.0b1)"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
test_run:
|
||||||
|
description: "Test run (Publish release as draft)"
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
required: false
|
||||||
|
nightly_release:
|
||||||
|
description: "Nightly release to dev environment"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
|
only_docker:
|
||||||
|
description: "Only release Docker image, skip GitHub & PyPI"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
target_branch:
|
||||||
|
description: "The branch to release from"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
version_number:
|
||||||
|
description: "The release version number (i.e. 1.0.0b1)"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
test_run:
|
||||||
|
description: "Test run (Publish release as draft)"
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
required: false
|
||||||
|
nightly_release:
|
||||||
|
description: "Nightly release to dev environment"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write # this is the permission that allows creating a new release
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
job-setup:
|
||||||
|
name: Log Inputs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
starting_sha: ${{ steps.set_sha.outputs.starting_sha }}
|
||||||
|
steps:
|
||||||
|
- name: "[DEBUG] Print Variables"
|
||||||
|
run: |
|
||||||
|
echo Inputs
|
||||||
|
echo The branch to release from: ${{ inputs.target_branch }}
|
||||||
|
echo The release version number: ${{ inputs.version_number }}
|
||||||
|
echo Test run: ${{ inputs.test_run }}
|
||||||
|
echo Nightly release: ${{ inputs.nightly_release }}
|
||||||
|
echo Only Docker: ${{ inputs.only_docker }}
|
||||||
|
|
||||||
|
- name: "Checkout target branch"
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.target_branch }}
|
||||||
|
|
||||||
|
# release-prep.yml really shouldn't take in the sha but since core + all adapters
|
||||||
|
# depend on it now this workaround lets us not input it manually with risk of error.
|
||||||
|
# The changes always get merged into the head so we can't use a specific commit for
|
||||||
|
# releases anyways.
|
||||||
|
- name: "Capture sha"
|
||||||
|
id: set_sha
|
||||||
|
run: |
|
||||||
|
echo "starting_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
bump-version-generate-changelog:
|
||||||
|
name: Bump package version, Generate changelog
|
||||||
|
needs: [job-setup]
|
||||||
|
if: ${{ !inputs.only_docker }}
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/release-prep.yml@main
|
||||||
|
|
||||||
|
with:
|
||||||
|
sha: ${{ needs.job-setup.outputs.starting_sha }}
|
||||||
|
version_number: ${{ inputs.version_number }}
|
||||||
|
target_branch: ${{ inputs.target_branch }}
|
||||||
|
env_setup_script_path: "scripts/env-setup.sh"
|
||||||
|
test_run: ${{ inputs.test_run }}
|
||||||
|
nightly_release: ${{ inputs.nightly_release }}
|
||||||
|
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
log-outputs-bump-version-generate-changelog:
|
||||||
|
name: "[Log output] Bump package version, Generate changelog"
|
||||||
|
if: ${{ !failure() && !cancelled() && !inputs.only_docker }}
|
||||||
|
|
||||||
|
needs: [bump-version-generate-changelog]
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Print variables
|
||||||
|
run: |
|
||||||
|
echo Final SHA : ${{ needs.bump-version-generate-changelog.outputs.final_sha }}
|
||||||
|
echo Changelog path: ${{ needs.bump-version-generate-changelog.outputs.changelog_path }}
|
||||||
|
|
||||||
|
build-test-package:
|
||||||
|
name: Build, Test, Package
|
||||||
|
if: ${{ !failure() && !cancelled() && !inputs.only_docker }}
|
||||||
|
needs: [job-setup, bump-version-generate-changelog]
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/build.yml@main
|
||||||
|
|
||||||
|
with:
|
||||||
|
sha: ${{ needs.bump-version-generate-changelog.outputs.final_sha }}
|
||||||
|
version_number: ${{ inputs.version_number }}
|
||||||
|
changelog_path: ${{ needs.bump-version-generate-changelog.outputs.changelog_path }}
|
||||||
|
build_script_path: "scripts/build-dist.sh"
|
||||||
|
s3_bucket_name: "core-team-artifacts"
|
||||||
|
package_test_command: "dbt --version"
|
||||||
|
test_run: ${{ inputs.test_run }}
|
||||||
|
nightly_release: ${{ inputs.nightly_release }}
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
github-release:
|
||||||
|
name: GitHub Release
|
||||||
|
if: ${{ !failure() && !cancelled() && !inputs.only_docker }}
|
||||||
|
|
||||||
|
needs: [bump-version-generate-changelog, build-test-package]
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/github-release.yml@main
|
||||||
|
|
||||||
|
with:
|
||||||
|
sha: ${{ needs.bump-version-generate-changelog.outputs.final_sha }}
|
||||||
|
version_number: ${{ inputs.version_number }}
|
||||||
|
changelog_path: ${{ needs.bump-version-generate-changelog.outputs.changelog_path }}
|
||||||
|
test_run: ${{ inputs.test_run }}
|
||||||
|
|
||||||
|
pypi-release:
|
||||||
|
name: PyPI Release
|
||||||
|
|
||||||
|
needs: [github-release]
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/pypi-release.yml@main
|
||||||
|
|
||||||
|
with:
|
||||||
|
version_number: ${{ inputs.version_number }}
|
||||||
|
test_run: ${{ inputs.test_run }}
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||||
|
|
||||||
|
determine-docker-package:
|
||||||
|
# dbt-postgres exists within dbt-core for versions 1.7 and earlier but is a separate package for 1.8 and later.
|
||||||
|
# determine if we need to release dbt-core or both dbt-core and dbt-postgres
|
||||||
|
name: Determine Docker Package
|
||||||
|
if: ${{ !failure() && !cancelled() }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [pypi-release]
|
||||||
|
outputs:
|
||||||
|
matrix: ${{ steps.determine-docker-package.outputs.matrix }}
|
||||||
|
steps:
|
||||||
|
- name: "Audit Version And Parse Into Parts"
|
||||||
|
id: semver
|
||||||
|
uses: dbt-labs/actions/parse-semver@v1.1.0
|
||||||
|
with:
|
||||||
|
version: ${{ inputs.version_number }}
|
||||||
|
|
||||||
|
- name: "Determine Packages to Release"
|
||||||
|
id: determine-docker-package
|
||||||
|
run: |
|
||||||
|
if [ ${{ steps.semver.outputs.minor }} -ge 8 ]; then
|
||||||
|
json_output={\"package\":[\"dbt-core\"]}
|
||||||
|
else
|
||||||
|
json_output={\"package\":[\"dbt-core\",\"dbt-postgres\"]}
|
||||||
|
fi
|
||||||
|
echo "matrix=$json_output" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
docker-release:
|
||||||
|
name: "Docker Release for ${{ matrix.package }}"
|
||||||
|
needs: [determine-docker-package]
|
||||||
|
# We cannot release to docker on a test run because it uses the tag in GitHub as
|
||||||
|
# what we need to release but draft releases don't actually tag the commit so it
|
||||||
|
# finds nothing to release
|
||||||
|
if: ${{ !failure() && !cancelled() && (!inputs.test_run || inputs.only_docker) }}
|
||||||
|
strategy:
|
||||||
|
matrix: ${{fromJson(needs.determine-docker-package.outputs.matrix)}}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/release-docker.yml@main
|
||||||
|
with:
|
||||||
|
package: ${{ matrix.package }}
|
||||||
|
version_number: ${{ inputs.version_number }}
|
||||||
|
test_run: ${{ inputs.test_run }}
|
||||||
|
|
||||||
|
slack-notification:
|
||||||
|
name: Slack Notification
|
||||||
|
if: ${{ failure() && (!inputs.test_run || inputs.nightly_release) }}
|
||||||
|
|
||||||
|
needs:
|
||||||
|
[
|
||||||
|
bump-version-generate-changelog,
|
||||||
|
build-test-package,
|
||||||
|
github-release,
|
||||||
|
pypi-release,
|
||||||
|
docker-release,
|
||||||
|
]
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/slack-post-notification.yml@main
|
||||||
|
with:
|
||||||
|
status: "failure"
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_CORE_ALERTS }}
|
||||||
|
|
||||||
|
testing-slack-notification:
|
||||||
|
# sends notifications to #slackbot-test
|
||||||
|
name: Testing - Slack Notification
|
||||||
|
if: ${{ failure() && inputs.test_run && !inputs.nightly_release }}
|
||||||
|
|
||||||
|
needs:
|
||||||
|
[
|
||||||
|
bump-version-generate-changelog,
|
||||||
|
build-test-package,
|
||||||
|
github-release,
|
||||||
|
pypi-release,
|
||||||
|
docker-release,
|
||||||
|
]
|
||||||
|
|
||||||
|
uses: dbt-labs/dbt-release/.github/workflows/slack-post-notification.yml@main
|
||||||
|
with:
|
||||||
|
status: "failure"
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TESTING_WEBHOOK_URL }}
|
||||||
30
.github/workflows/repository-cleanup.yml
vendored
Normal file
30
.github/workflows/repository-cleanup.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# **what?**
|
||||||
|
# Cleanup branches left over from automation and testing. Also cleanup
|
||||||
|
# draft releases from release testing.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# The automations are leaving behind branches and releases that clutter
|
||||||
|
# the repository. Sometimes we need them to debug processes so we don't
|
||||||
|
# want them immediately deleted. Running on Saturday to avoid running
|
||||||
|
# at the same time as an actual release to prevent breaking a release
|
||||||
|
# mid-release.
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# Mainly on a schedule of 12:00 Saturday.
|
||||||
|
# Manual trigger can also run on demand
|
||||||
|
|
||||||
|
name: Repository Cleanup
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 12 * * SAT' # At 12:00 on Saturday - details in `why` above
|
||||||
|
|
||||||
|
workflow_dispatch: # for manual triggering
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cleanup-repo:
|
||||||
|
uses: dbt-labs/actions/.github/workflows/repository-cleanup.yml@main
|
||||||
|
secrets: inherit
|
||||||
73
.github/workflows/schema-check.yml
vendored
73
.github/workflows/schema-check.yml
vendored
@@ -1,5 +1,5 @@
|
|||||||
# **what?**
|
# **what?**
|
||||||
# Compares the schema of the dbt version of the given ref vs
|
# Compares the schema of the dbt version of the given ref vs
|
||||||
# the latest official schema releases found in schemas.getdbt.com.
|
# the latest official schema releases found in schemas.getdbt.com.
|
||||||
# If there are differences, the workflow will fail and upload the
|
# If there are differences, the workflow will fail and upload the
|
||||||
# diff as an artifact. The metadata team should be alerted to the change.
|
# diff as an artifact. The metadata team should be alerted to the change.
|
||||||
@@ -13,17 +13,18 @@
|
|||||||
name: Artifact Schema Check
|
name: Artifact Schema Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ opened, reopened, labeled, unlabeled, synchronize ]
|
||||||
|
paths-ignore: [ '.changes/**', '.github/**', 'tests/**', '**.md', '**.yml' ]
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request: #TODO: remove before merging
|
|
||||||
push:
|
# no special access is needed
|
||||||
branches:
|
permissions: read-all
|
||||||
- "develop"
|
|
||||||
- "*.latest"
|
|
||||||
- "releases/*"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LATEST_SCHEMA_PATH: ${{ github.workspace }}/new_schemas
|
LATEST_SCHEMA_PATH: ${{ github.workspace }}/new_schemas
|
||||||
SCHEMA_DIFF_ARTIFACT: ${{ github.workspace }}//schema_schanges.txt
|
SCHEMA_DIFF_ARTIFACT: ${{ github.workspace }}/schema_changes.txt
|
||||||
DBT_REPO_DIRECTORY: ${{ github.workspace }}/dbt
|
DBT_REPO_DIRECTORY: ${{ github.workspace }}/dbt
|
||||||
SCHEMA_REPO_DIRECTORY: ${{ github.workspace }}/schemas.getdbt.com
|
SCHEMA_REPO_DIRECTORY: ${{ github.workspace }}/schemas.getdbt.com
|
||||||
|
|
||||||
@@ -34,24 +35,41 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
|
|
||||||
- name: Checkout dbt repo
|
- name: Checkout dbt repo
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.DBT_REPO_DIRECTORY }}
|
path: ${{ env.DBT_REPO_DIRECTORY }}
|
||||||
|
|
||||||
|
- name: Check for changes in core/dbt/artifacts
|
||||||
|
# https://github.com/marketplace/actions/paths-changes-filter
|
||||||
|
uses: dorny/paths-filter@v3
|
||||||
|
id: check_artifact_changes
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
artifacts_changed:
|
||||||
|
- 'core/dbt/artifacts/**'
|
||||||
|
list-files: shell
|
||||||
|
working-directory: ${{ env.DBT_REPO_DIRECTORY }}
|
||||||
|
|
||||||
|
- name: Succeed if no artifacts have changed
|
||||||
|
if: steps.check_artifact_changes.outputs.artifacts_changed == 'false'
|
||||||
|
run: |
|
||||||
|
echo "No artifact changes found in core/dbt/artifacts. CI check passed."
|
||||||
|
|
||||||
- name: Checkout schemas.getdbt.com repo
|
- name: Checkout schemas.getdbt.com repo
|
||||||
uses: actions/checkout@v2.3.4
|
if: steps.check_artifact_changes.outputs.artifacts_changed == 'true'
|
||||||
with:
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
repository: dbt-labs/schemas.getdbt.com
|
repository: dbt-labs/schemas.getdbt.com
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
ssh-key: ${{ secrets.SCHEMA_SSH_PRIVATE_KEY }}
|
|
||||||
path: ${{ env.SCHEMA_REPO_DIRECTORY }}
|
path: ${{ env.SCHEMA_REPO_DIRECTORY }}
|
||||||
|
|
||||||
- name: Generate current schema
|
- name: Generate current schema
|
||||||
|
if: steps.check_artifact_changes.outputs.artifacts_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
cd ${{ env.DBT_REPO_DIRECTORY }}
|
cd ${{ env.DBT_REPO_DIRECTORY }}
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
@@ -59,29 +77,20 @@ jobs:
|
|||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -r dev-requirements.txt -r editable-requirements.txt
|
pip install -r dev-requirements.txt -r editable-requirements.txt
|
||||||
python scripts/collect-artifact-schema.py --path ${{ env.LATEST_SCHEMA_PATH }}
|
python scripts/collect-artifact-schema.py --path ${{ env.LATEST_SCHEMA_PATH }}
|
||||||
|
|
||||||
# Copy generated schema files into the schemas.getdbt.com repo
|
# Copy generated schema files into the schemas.getdbt.com repo
|
||||||
# Do a git diff to find any changes
|
# Do a git diff to find any changes
|
||||||
# Ignore any date or version changes though
|
# Ignore any lines with date-like (yyyy-mm-dd) or version-like (x.y.z) changes
|
||||||
- name: Compare schemas
|
- name: Compare schemas
|
||||||
|
if: steps.check_artifact_changes.outputs.artifacts_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
cp -r ${{ env.LATEST_SCHEMA_PATH }}/dbt ${{ env.SCHEMA_REPO_DIRECTORY }}
|
cp -r ${{ env.LATEST_SCHEMA_PATH }}/dbt ${{ env.SCHEMA_REPO_DIRECTORY }}
|
||||||
cd ${{ env.SCHEMA_REPO_DIRECTORY }}
|
cd ${{ env.SCHEMA_REPO_DIRECTORY }}
|
||||||
diff_results=$(git diff -I='*[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T' \
|
git diff -I='*[0-9]{4}-[0-9]{2}-[0-9]{2}' -I='*[0-9]+\.[0-9]+\.[0-9]+' --exit-code > ${{ env.SCHEMA_DIFF_ARTIFACT }}
|
||||||
-I='*[0-9]{1}.[0-9]{2}.[0-9]{1}(rc[0-9]|b[0-9]| )' --compact-summary)
|
|
||||||
if [[ $(echo diff_results) ]]; then
|
|
||||||
echo $diff_results
|
|
||||||
echo "Schema changes detected!"
|
|
||||||
git diff -I='*[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T' \
|
|
||||||
-I='*[0-9]{1}.[0-9]{2}.[0-9]{1}(rc[0-9]|b[0-9]| )' > ${{ env.SCHEMA_DIFF_ARTIFACT }}
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "No schema changes detected"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload schema diff
|
- name: Upload schema diff
|
||||||
uses: actions/upload-artifact@v2.2.4
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() && steps.check_artifact_changes.outputs.artifacts_changed == 'true' }}
|
||||||
with:
|
with:
|
||||||
name: 'schema_schanges.txt'
|
name: 'schema_changes.txt'
|
||||||
path: '${{ env.SCHEMA_DIFF_ARTIFACT }}'
|
path: '${{ env.SCHEMA_DIFF_ARTIFACT }}'
|
||||||
|
|||||||
16
.github/workflows/stale.yml
vendored
16
.github/workflows/stale.yml
vendored
@@ -3,16 +3,10 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "30 1 * * *"
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
uses: dbt-labs/actions/.github/workflows/stale-bot-matrix.yml@main
|
||||||
steps:
|
|
||||||
# pinned at v4 (https://github.com/actions/stale/releases/tag/v4.0.0)
|
|
||||||
- uses: actions/stale@cdf15f641adb27a71842045a94023bef6945e3aa
|
|
||||||
with:
|
|
||||||
stale-issue-message: "This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days."
|
|
||||||
stale-pr-message: "This PR has been marked as Stale because it has been open for 180 days with no activity. If you would like the PR to remain open, please remove the stale label or comment on the PR, or it will be closed in 7 days."
|
|
||||||
# mark issues/PRs stale when they haven't seen activity in 180 days
|
|
||||||
days-before-stale: 180
|
|
||||||
# ignore checking issues with the following labels
|
|
||||||
exempt-issue-labels: "epic,discussion"
|
|
||||||
|
|||||||
112
.github/workflows/structured-logging-schema-check.yml
vendored
Normal file
112
.github/workflows/structured-logging-schema-check.yml
vendored
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
# This Action checks makes a dbt run to sample json structured logs
|
||||||
|
# and checks that they conform to the currently documented schema.
|
||||||
|
#
|
||||||
|
# If this action fails it either means we have unintentionally deviated
|
||||||
|
# from our documented structured logging schema, or we need to bump the
|
||||||
|
# version of our structured logging and add new documentation to
|
||||||
|
# communicate these changes.
|
||||||
|
|
||||||
|
name: Structured Logging Schema Check
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
- "*.latest"
|
||||||
|
- "releases/*"
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
# top-level adjustments can be made here
|
||||||
|
env:
|
||||||
|
# number of parallel processes to spawn for python testing
|
||||||
|
PYTHON_INTEGRATION_TEST_WORKERS: 5
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
integration-metadata:
|
||||||
|
name: integration test metadata generation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
split-groups: ${{ steps.generate-split-groups.outputs.split-groups }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: generate split-groups
|
||||||
|
id: generate-split-groups
|
||||||
|
run: |
|
||||||
|
MATRIX_JSON="["
|
||||||
|
for B in $(seq 1 ${{ env.PYTHON_INTEGRATION_TEST_WORKERS }}); do
|
||||||
|
MATRIX_JSON+=$(sed 's/^/"/;s/$/"/' <<< "${B}")
|
||||||
|
done
|
||||||
|
MATRIX_JSON="${MATRIX_JSON//\"\"/\", \"}"
|
||||||
|
MATRIX_JSON+="]"
|
||||||
|
echo "split-groups=${MATRIX_JSON}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
# run the performance measurements on the current or default branch
|
||||||
|
test-schema:
|
||||||
|
name: Test Log Schema
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
timeout-minutes: 30
|
||||||
|
needs:
|
||||||
|
- integration-metadata
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
split-group: ${{ fromJson(needs.integration-metadata.outputs.split-groups) }}
|
||||||
|
env:
|
||||||
|
# turns warnings into errors
|
||||||
|
RUSTFLAGS: "-D warnings"
|
||||||
|
# points tests to the log file
|
||||||
|
LOG_DIR: "/home/runner/work/dbt-core/dbt-core/logs"
|
||||||
|
# tells integration tests to output into json format
|
||||||
|
DBT_LOG_FORMAT: "json"
|
||||||
|
# tell eventmgr to convert logging events into bytes
|
||||||
|
DBT_TEST_BINARY_SERIALIZATION: "true"
|
||||||
|
# Additional test users
|
||||||
|
DBT_TEST_USER_1: dbt_test_user_1
|
||||||
|
DBT_TEST_USER_2: dbt_test_user_2
|
||||||
|
DBT_TEST_USER_3: dbt_test_user_3
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout dev
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
- name: Install python dependencies
|
||||||
|
run: |
|
||||||
|
pip install --user --upgrade pip
|
||||||
|
pip --version
|
||||||
|
pip install tox
|
||||||
|
tox --version
|
||||||
|
|
||||||
|
- name: Set up postgres
|
||||||
|
uses: ./.github/actions/setup-postgres-linux
|
||||||
|
|
||||||
|
- name: ls
|
||||||
|
run: ls
|
||||||
|
|
||||||
|
# integration tests generate a ton of logs in different files. the next step will find them all.
|
||||||
|
# we actually care if these pass, because the normal test run doesn't usually include many json log outputs
|
||||||
|
- name: Run integration tests
|
||||||
|
uses: nick-fields/retry@v3
|
||||||
|
with:
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
|
command: tox -e integration -- -nauto
|
||||||
|
env:
|
||||||
|
PYTEST_ADDOPTS: ${{ format('--splits {0} --group {1}', env.PYTHON_INTEGRATION_TEST_WORKERS, matrix.split-group) }}
|
||||||
|
|
||||||
|
test-schema-report:
|
||||||
|
name: Log Schema Test Suite
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test-schema
|
||||||
|
steps:
|
||||||
|
- name: "[Notification] Log test suite passes"
|
||||||
|
run: |
|
||||||
|
echo "::notice title="Log test suite passes""
|
||||||
155
.github/workflows/test-repeater.yml
vendored
Normal file
155
.github/workflows/test-repeater.yml
vendored
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
# **what?**
|
||||||
|
# This workflow will test all test(s) at the input path given number of times to determine if it's flaky or not. You can test with any supported OS/Python combination.
|
||||||
|
# This is batched in 10 to allow more test iterations faster.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# Testing if a test is flaky and if a previously flaky test has been fixed. This allows easy testing on supported python versions and OS combinations.
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# This is triggered manually from dbt-core.
|
||||||
|
|
||||||
|
name: Flaky Tester
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: 'Branch to check out'
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: 'main'
|
||||||
|
test_path:
|
||||||
|
description: 'Path to single test to run (ex: tests/functional/retry/test_retry.py::TestRetry::test_fail_fast)'
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: 'tests/functional/...'
|
||||||
|
python_version:
|
||||||
|
description: 'Version of Python to Test Against'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- '3.8'
|
||||||
|
- '3.9'
|
||||||
|
- '3.10'
|
||||||
|
- '3.11'
|
||||||
|
os:
|
||||||
|
description: 'OS to run test in'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- 'ubuntu-latest'
|
||||||
|
- 'macos-12'
|
||||||
|
- 'windows-latest'
|
||||||
|
num_runs_per_batch:
|
||||||
|
description: 'Max number of times to run the test per batch. We always run 10 batches.'
|
||||||
|
type: number
|
||||||
|
required: true
|
||||||
|
default: '50'
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
debug:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "[DEBUG] Output Inputs"
|
||||||
|
run: |
|
||||||
|
echo "Branch: ${{ inputs.branch }}"
|
||||||
|
echo "test_path: ${{ inputs.test_path }}"
|
||||||
|
echo "python_version: ${{ inputs.python_version }}"
|
||||||
|
echo "os: ${{ inputs.os }}"
|
||||||
|
echo "num_runs_per_batch: ${{ inputs.num_runs_per_batch }}"
|
||||||
|
|
||||||
|
pytest:
|
||||||
|
runs-on: ${{ inputs.os }}
|
||||||
|
strategy:
|
||||||
|
# run all batches, even if one fails. This informs how flaky the test may be.
|
||||||
|
fail-fast: false
|
||||||
|
# using a matrix to speed up the jobs since the matrix will run in parallel when runners are available
|
||||||
|
matrix:
|
||||||
|
batch: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
|
||||||
|
env:
|
||||||
|
PYTEST_ADDOPTS: "-v --color=yes -n4 --csv integration_results.csv"
|
||||||
|
DBT_TEST_USER_1: dbt_test_user_1
|
||||||
|
DBT_TEST_USER_2: dbt_test_user_2
|
||||||
|
DBT_TEST_USER_3: dbt_test_user_3
|
||||||
|
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
|
||||||
|
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
||||||
|
DD_SITE: datadoghq.com
|
||||||
|
DD_ENV: ci
|
||||||
|
DD_SERVICE: ${{ github.event.repository.name }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout code"
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.branch }}
|
||||||
|
|
||||||
|
- name: "Setup Python"
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "${{ inputs.python_version }}"
|
||||||
|
|
||||||
|
- name: "Setup Dev Environment"
|
||||||
|
run: make dev
|
||||||
|
|
||||||
|
- name: "Set up postgres (linux)"
|
||||||
|
if: inputs.os == 'ubuntu-latest'
|
||||||
|
run: make setup-db
|
||||||
|
|
||||||
|
# mac and windows don't use make due to limitations with docker with those runners in GitHub
|
||||||
|
- name: "Set up postgres (macos)"
|
||||||
|
if: inputs.os == 'macos-12'
|
||||||
|
uses: ./.github/actions/setup-postgres-macos
|
||||||
|
|
||||||
|
- name: "Set up postgres (windows)"
|
||||||
|
if: inputs.os == 'windows-latest'
|
||||||
|
uses: ./.github/actions/setup-postgres-windows
|
||||||
|
|
||||||
|
- name: "Test Command"
|
||||||
|
id: command
|
||||||
|
run: |
|
||||||
|
test_command="python -m pytest ${{ inputs.test_path }}"
|
||||||
|
echo "test_command=$test_command" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: "Run test ${{ inputs.num_runs_per_batch }} times"
|
||||||
|
id: pytest
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
for ((i=1; i<=${{ inputs.num_runs_per_batch }}; i++))
|
||||||
|
do
|
||||||
|
echo "Running pytest iteration $i..."
|
||||||
|
python -m pytest --ddtrace ${{ inputs.test_path }}
|
||||||
|
exit_code=$?
|
||||||
|
|
||||||
|
if [[ $exit_code -eq 0 ]]; then
|
||||||
|
success=$((success + 1))
|
||||||
|
echo "Iteration $i: Success"
|
||||||
|
else
|
||||||
|
failure=$((failure + 1))
|
||||||
|
echo "Iteration $i: Failure"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "==========================="
|
||||||
|
echo "Successful runs: $success"
|
||||||
|
echo "Failed runs: $failure"
|
||||||
|
echo "==========================="
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "failure=$failure" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: "Success and Failure Summary: ${{ inputs.os }}/Python ${{ inputs.python_version }}"
|
||||||
|
run: |
|
||||||
|
echo "Batch: ${{ matrix.batch }}"
|
||||||
|
echo "Successful runs: ${{ steps.pytest.outputs.success }}"
|
||||||
|
echo "Failed runs: ${{ steps.pytest.outputs.failure }}"
|
||||||
|
|
||||||
|
- name: "Error for Failures"
|
||||||
|
if: ${{ steps.pytest.outputs.failure }}
|
||||||
|
run: |
|
||||||
|
echo "Batch ${{ matrix.batch }} failed ${{ steps.pytest.outputs.failure }} of ${{ inputs.num_runs_per_batch }} tests"
|
||||||
|
exit 1
|
||||||
31
.github/workflows/triage-labels.yml
vendored
Normal file
31
.github/workflows/triage-labels.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# **what?**
|
||||||
|
# When the core team triages, we sometimes need more information from the issue creator. In
|
||||||
|
# those cases we remove the `triage` label and add the `awaiting_response` label. Once we
|
||||||
|
# recieve a response in the form of a comment, we want the `awaiting_response` label removed
|
||||||
|
# in favor of the `triage` label so we are aware that the issue needs action.
|
||||||
|
|
||||||
|
# **why?**
|
||||||
|
# To help with out team triage issue tracking
|
||||||
|
|
||||||
|
# **when?**
|
||||||
|
# This will run when a comment is added to an issue and that issue has to `awaiting_response` label.
|
||||||
|
|
||||||
|
name: Update Triage Label
|
||||||
|
|
||||||
|
on: issue_comment
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage_label:
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'awaiting_response')
|
||||||
|
uses: dbt-labs/actions/.github/workflows/swap-labels.yml@main
|
||||||
|
with:
|
||||||
|
add_label: "triage"
|
||||||
|
remove_label: "awaiting_response"
|
||||||
|
secrets: inherit
|
||||||
109
.github/workflows/version-bump.yml
vendored
109
.github/workflows/version-bump.yml
vendored
@@ -1,109 +0,0 @@
|
|||||||
# **what?**
|
|
||||||
# This workflow will take a version number and a dry run flag. With that
|
|
||||||
# it will run versionbump to update the version number everywhere in the
|
|
||||||
# code base and then generate an update Docker requirements file. If this
|
|
||||||
# is a dry run, a draft PR will open with the changes. If this isn't a dry
|
|
||||||
# run, the changes will be committed to the branch this is run on.
|
|
||||||
|
|
||||||
# **why?**
|
|
||||||
# This is to aid in releasing dbt and making sure we have updated
|
|
||||||
# the versions and Docker requirements in all places.
|
|
||||||
|
|
||||||
# **when?**
|
|
||||||
# This is triggered either manually OR
|
|
||||||
# from the repository_dispatch event "version-bump" which is sent from
|
|
||||||
# the dbt-release repo Action
|
|
||||||
|
|
||||||
name: Version Bump
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
version_number:
|
|
||||||
description: 'The version number to bump to'
|
|
||||||
required: true
|
|
||||||
is_dry_run:
|
|
||||||
description: 'Creates a draft PR to allow testing instead of committing to a branch'
|
|
||||||
required: true
|
|
||||||
default: 'true'
|
|
||||||
repository_dispatch:
|
|
||||||
types: [version-bump]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
bump:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out the repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set version and dry run values
|
|
||||||
id: variables
|
|
||||||
env:
|
|
||||||
VERSION_NUMBER: "${{ github.event.client_payload.version_number == '' && github.event.inputs.version_number || github.event.client_payload.version_number }}"
|
|
||||||
IS_DRY_RUN: "${{ github.event.client_payload.is_dry_run == '' && github.event.inputs.is_dry_run || github.event.client_payload.is_dry_run }}"
|
|
||||||
run: |
|
|
||||||
echo Repository dispatch event version: ${{ github.event.client_payload.version_number }}
|
|
||||||
echo Repository dispatch event dry run: ${{ github.event.client_payload.is_dry_run }}
|
|
||||||
echo Workflow dispatch event version: ${{ github.event.inputs.version_number }}
|
|
||||||
echo Workflow dispatch event dry run: ${{ github.event.inputs.is_dry_run }}
|
|
||||||
echo ::set-output name=VERSION_NUMBER::$VERSION_NUMBER
|
|
||||||
echo ::set-output name=IS_DRY_RUN::$IS_DRY_RUN
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: "3.8"
|
|
||||||
|
|
||||||
- name: Install python dependencies
|
|
||||||
run: |
|
|
||||||
python3 -m venv env
|
|
||||||
source env/bin/activate
|
|
||||||
pip install --upgrade pip
|
|
||||||
|
|
||||||
- name: Create PR branch
|
|
||||||
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }}
|
|
||||||
run: |
|
|
||||||
git checkout -b bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_$GITHUB_RUN_ID
|
|
||||||
git push origin bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_$GITHUB_RUN_ID
|
|
||||||
git branch --set-upstream-to=origin/bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_$GITHUB_RUN_ID bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_$GITHUB_RUN_ID
|
|
||||||
|
|
||||||
- name: Generate Docker requirements
|
|
||||||
run: |
|
|
||||||
source env/bin/activate
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip freeze -l > docker/requirements/requirements.txt
|
|
||||||
git status
|
|
||||||
|
|
||||||
- name: Bump version
|
|
||||||
run: |
|
|
||||||
source env/bin/activate
|
|
||||||
pip install -r dev-requirements.txt
|
|
||||||
env/bin/bumpversion --allow-dirty --new-version ${{steps.variables.outputs.VERSION_NUMBER}} major
|
|
||||||
git status
|
|
||||||
|
|
||||||
- name: Commit version bump directly
|
|
||||||
uses: EndBug/add-and-commit@v7
|
|
||||||
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'false' }}
|
|
||||||
with:
|
|
||||||
author_name: 'Github Build Bot'
|
|
||||||
author_email: 'buildbot@fishtownanalytics.com'
|
|
||||||
message: 'Bumping version to ${{steps.variables.outputs.VERSION_NUMBER}}'
|
|
||||||
|
|
||||||
- name: Commit version bump to branch
|
|
||||||
uses: EndBug/add-and-commit@v7
|
|
||||||
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }}
|
|
||||||
with:
|
|
||||||
author_name: 'Github Build Bot'
|
|
||||||
author_email: 'buildbot@fishtownanalytics.com'
|
|
||||||
message: 'Bumping version to ${{steps.variables.outputs.VERSION_NUMBER}}'
|
|
||||||
branch: 'bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_${{GITHUB.RUN_ID}}'
|
|
||||||
push: 'origin origin/bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_${{GITHUB.RUN_ID}}'
|
|
||||||
|
|
||||||
- name: Create Pull Request
|
|
||||||
uses: peter-evans/create-pull-request@v3
|
|
||||||
if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }}
|
|
||||||
with:
|
|
||||||
author: 'Github Build Bot <buildbot@fishtownanalytics.com>'
|
|
||||||
draft: true
|
|
||||||
base: ${{github.ref}}
|
|
||||||
title: 'Bumping version to ${{steps.variables.outputs.VERSION_NUMBER}}'
|
|
||||||
branch: 'bumping-version/${{steps.variables.outputs.VERSION_NUMBER}}_${{GITHUB.RUN_ID}}'
|
|
||||||
21
.gitignore
vendored
21
.gitignore
vendored
@@ -11,6 +11,8 @@ __pycache__/
|
|||||||
env*/
|
env*/
|
||||||
dbt_env/
|
dbt_env/
|
||||||
build/
|
build/
|
||||||
|
!tests/functional/build
|
||||||
|
!core/dbt/docs/build
|
||||||
develop-eggs/
|
develop-eggs/
|
||||||
dist/
|
dist/
|
||||||
downloads/
|
downloads/
|
||||||
@@ -24,8 +26,11 @@ var/
|
|||||||
*.egg-info/
|
*.egg-info/
|
||||||
.installed.cfg
|
.installed.cfg
|
||||||
*.egg
|
*.egg
|
||||||
*.mypy_cache/
|
.mypy_cache/
|
||||||
|
.dmypy.json
|
||||||
logs/
|
logs/
|
||||||
|
.user.yml
|
||||||
|
profiles.yml
|
||||||
|
|
||||||
# PyInstaller
|
# PyInstaller
|
||||||
# Usually these files are written by a python script from a template
|
# Usually these files are written by a python script from a template
|
||||||
@@ -49,9 +54,9 @@ coverage.xml
|
|||||||
*,cover
|
*,cover
|
||||||
.hypothesis/
|
.hypothesis/
|
||||||
test.env
|
test.env
|
||||||
|
makefile.test.env
|
||||||
|
*.pytest_cache/
|
||||||
|
|
||||||
# Mypy
|
|
||||||
.mypy_cache/
|
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
@@ -66,10 +71,10 @@ docs/_build/
|
|||||||
# PyBuilder
|
# PyBuilder
|
||||||
target/
|
target/
|
||||||
|
|
||||||
#Ipython Notebook
|
# Ipython Notebook
|
||||||
.ipynb_checkpoints
|
.ipynb_checkpoints
|
||||||
|
|
||||||
#Emacs
|
# Emacs
|
||||||
*~
|
*~
|
||||||
|
|
||||||
# Sublime Text
|
# Sublime Text
|
||||||
@@ -78,6 +83,7 @@ target/
|
|||||||
# Vim
|
# Vim
|
||||||
*.sw*
|
*.sw*
|
||||||
|
|
||||||
|
# Pyenv
|
||||||
.python-version
|
.python-version
|
||||||
|
|
||||||
# Vim
|
# Vim
|
||||||
@@ -90,7 +96,12 @@ venv/
|
|||||||
# AWS credentials
|
# AWS credentials
|
||||||
.aws/
|
.aws/
|
||||||
|
|
||||||
|
# MacOS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# vscode
|
# vscode
|
||||||
.vscode/
|
.vscode/
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# poetry
|
||||||
|
poetry.lock
|
||||||
|
|||||||
4
.isort.cfg
Normal file
4
.isort.cfg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[settings]
|
||||||
|
profile=black
|
||||||
|
extend_skip_glob=.github/*,third-party-stubs/*,scripts/*
|
||||||
|
known_first_party=dbt,dbt_adapters,dbt_common,dbt_extractor,dbt_semantic_interfaces
|
||||||
70
.pre-commit-config.yaml
Normal file
70
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
# Configuration for pre-commit hooks (see https://pre-commit.com/).
|
||||||
|
# Eventually the hooks described here will be run as tests before merging each PR.
|
||||||
|
|
||||||
|
exclude: ^(core/dbt/docs/build/|core/dbt/common/events/types_pb2.py|core/dbt/events/core_types_pb2.py|core/dbt/adapters/events/adapter_types_pb2.py)
|
||||||
|
|
||||||
|
# Force all unspecified python hooks to run python 3.8
|
||||||
|
default_language_version:
|
||||||
|
python: python3
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v3.2.0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
args: [--unsafe]
|
||||||
|
- id: check-json
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
exclude_types:
|
||||||
|
- "markdown"
|
||||||
|
- id: check-case-conflict
|
||||||
|
- repo: https://github.com/pycqa/isort
|
||||||
|
# rev must match what's in dev-requirements.txt
|
||||||
|
rev: 5.13.2
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
# rev must match what's in dev-requirements.txt
|
||||||
|
rev: 24.3.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
- id: black
|
||||||
|
alias: black-check
|
||||||
|
stages: [manual]
|
||||||
|
args:
|
||||||
|
- "--check"
|
||||||
|
- "--diff"
|
||||||
|
- repo: https://github.com/pycqa/flake8
|
||||||
|
# rev must match what's in dev-requirements.txt
|
||||||
|
rev: 4.0.1
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
- id: flake8
|
||||||
|
alias: flake8-check
|
||||||
|
stages: [manual]
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
|
# rev must match what's in dev-requirements.txt
|
||||||
|
rev: v1.4.1
|
||||||
|
hooks:
|
||||||
|
- id: mypy
|
||||||
|
# N.B.: Mypy is... a bit fragile.
|
||||||
|
#
|
||||||
|
# By using `language: system` we run this hook in the local
|
||||||
|
# environment instead of a pre-commit isolated one. This is needed
|
||||||
|
# to ensure mypy correctly parses the project.
|
||||||
|
|
||||||
|
# It may cause trouble
|
||||||
|
# in that it adds environmental variables out of our control to the
|
||||||
|
# mix. Unfortunately, there's nothing we can do about per pre-commit's
|
||||||
|
# author.
|
||||||
|
# See https://github.com/pre-commit/pre-commit/issues/730 for details.
|
||||||
|
args: [--show-error-codes]
|
||||||
|
files: ^core/dbt/
|
||||||
|
language: system
|
||||||
|
- id: mypy
|
||||||
|
alias: mypy-check
|
||||||
|
stages: [manual]
|
||||||
|
args: [--show-error-codes, --pretty]
|
||||||
|
files: ^core/dbt/
|
||||||
|
language: system
|
||||||
@@ -2,29 +2,37 @@ The core function of dbt is SQL compilation and execution. Users create projects
|
|||||||
|
|
||||||
## dbt-core
|
## dbt-core
|
||||||
|
|
||||||
Most of the python code in the repository is within the `core/dbt` directory. Currently the main subdirectories are:
|
Most of the python code in the repository is within the `core/dbt` directory.
|
||||||
|
- [`single python files`](core/dbt/README.md): A number of individual files, such as 'compilation.py' and 'exceptions.py'
|
||||||
|
|
||||||
- [`adapters`](core/dbt/adapters): Define base classes for behavior that is likely to differ across databases
|
The main subdirectories of core/dbt:
|
||||||
- [`clients`](core/dbt/clients): Interface with dependencies (agate, jinja) or across operating systems
|
- [`adapters`](core/dbt/adapters/README.md): Define base classes for behavior that is likely to differ across databases
|
||||||
- [`config`](core/dbt/config): Reconcile user-supplied configuration from connection profiles, project files, and Jinja macros
|
- [`clients`](core/dbt/clients/README.md): Interface with dependencies (agate, jinja) or across operating systems
|
||||||
- [`context`](core/dbt/context): Build and expose dbt-specific Jinja functionality
|
- [`config`](core/dbt/config/README.md): Reconcile user-supplied configuration from connection profiles, project files, and Jinja macros
|
||||||
- [`contracts`](core/dbt/contracts): Define Python objects (dataclasses) that dbt expects to create and validate
|
- [`context`](core/dbt/context/README.md): Build and expose dbt-specific Jinja functionality
|
||||||
- [`deps`](core/dbt/deps): Package installation and dependency resolution
|
- [`contracts`](core/dbt/contracts/README.md): Define Python objects (dataclasses) that dbt expects to create and validate
|
||||||
- [`graph`](core/dbt/graph): Produce a `networkx` DAG of project resources, and selecting those resources given user-supplied criteria
|
- [`deps`](core/dbt/deps/README.md): Package installation and dependency resolution
|
||||||
- [`include`](core/dbt/include): The dbt "global project," which defines default implementations of Jinja2 macros
|
- [`events`](core/dbt/events/README.md): Logging events
|
||||||
- [`parser`](core/dbt/parser): Read project files, validate, construct python objects
|
- [`graph`](core/dbt/graph/README.md): Produce a `networkx` DAG of project resources, and selecting those resources given user-supplied criteria
|
||||||
- [`task`](core/dbt/task): Set forth the actions that dbt can perform when invoked
|
- [`include`](core/dbt/include/README.md): The dbt "global project," which defines default implementations of Jinja2 macros
|
||||||
|
- [`parser`](core/dbt/parser/README.md): Read project files, validate, construct python objects
|
||||||
|
- [`task`](core/dbt/task/README.md): Set forth the actions that dbt can perform when invoked
|
||||||
|
|
||||||
|
Legacy tests are found in the 'test' directory:
|
||||||
|
- [`unit tests`](core/dbt/test/unit/README.md): Unit tests
|
||||||
|
- [`integration tests`](core/dbt/test/integration/README.md): Integration tests
|
||||||
|
|
||||||
### Invoking dbt
|
### Invoking dbt
|
||||||
|
|
||||||
The "tasks" map to top-level dbt commands. So `dbt run` => task.run.RunTask, etc. Some are more like abstract base classes (GraphRunnableTask, for example) but all the concrete types outside of task should map to tasks. Currently one executes at a time. The tasks kick off their “Runners” and those do execute in parallel. The parallelism is managed via a thread pool, in GraphRunnableTask.
|
The "tasks" map to top-level dbt commands. So `dbt run` => task.run.RunTask, etc. Some are more like abstract base classes (GraphRunnableTask, for example) but all the concrete types outside of task should map to tasks. Currently one executes at a time. The tasks kick off their “Runners” and those do execute in parallel. The parallelism is managed via a thread pool, in GraphRunnableTask.
|
||||||
|
|
||||||
core/dbt/include/index.html
|
core/dbt/task/docs/index.html
|
||||||
This is the docs website code. It comes from the dbt-docs repository, and is generated when a release is packaged.
|
This is the docs website code. It comes from the dbt-docs repository, and is generated when a release is packaged.
|
||||||
|
|
||||||
## Adapters
|
## Adapters
|
||||||
|
|
||||||
dbt uses an adapter-plugin pattern to extend support to different databases, warehouses, query engines, etc. For testing and development purposes, the dbt-postgres plugin lives alongside the dbt-core codebase, in the [`plugins`](plugins) subdirectory. Like other adapter plugins, it is a self-contained codebase and package that builds on top of dbt-core.
|
dbt uses an adapter-plugin pattern to extend support to different databases, warehouses, query engines, etc.
|
||||||
|
Note: dbt-postgres used to exist in dbt-core but is now in [its own repo](https://github.com/dbt-labs/dbt-postgres)
|
||||||
|
|
||||||
Each adapter is a mix of python, Jinja2, and SQL. The adapter code also makes heavy use of Jinja2 to wrap modular chunks of SQL functionality, define default implementations, and allow plugins to override it.
|
Each adapter is a mix of python, Jinja2, and SQL. The adapter code also makes heavy use of Jinja2 to wrap modular chunks of SQL functionality, define default implementations, and allow plugins to override it.
|
||||||
|
|
||||||
@@ -44,4 +52,4 @@ The [`test/`](test/) subdirectory includes unit and integration tests that run a
|
|||||||
|
|
||||||
- [docker](docker/): All dbt versions are published as Docker images on DockerHub. This subfolder contains the `Dockerfile` (constant) and `requirements.txt` (one for each version).
|
- [docker](docker/): All dbt versions are published as Docker images on DockerHub. This subfolder contains the `Dockerfile` (constant) and `requirements.txt` (one for each version).
|
||||||
- [etc](etc/): Images for README
|
- [etc](etc/): Images for README
|
||||||
- [scripts](scripts/): Helper scripts for testing, releasing, and producing JSON schemas. These are not included in distributions of dbt, not are they rigorously tested—they're just handy tools for the dbt maintainers :)
|
- [scripts](scripts/): Helper scripts for testing, releasing, and producing JSON schemas. These are not included in distributions of dbt, nor are they rigorously tested—they're just handy tools for the dbt maintainers :)
|
||||||
|
|||||||
3360
CHANGELOG.md
Normal file → Executable file
3360
CHANGELOG.md
Normal file → Executable file
File diff suppressed because it is too large
Load Diff
242
CONTRIBUTING.md
242
CONTRIBUTING.md
@@ -1,120 +1,76 @@
|
|||||||
# Contributing to `dbt`
|
# Contributing to `dbt-core`
|
||||||
|
|
||||||
|
`dbt-core` is open source software. It is what it is today because community members have opened issues, provided feedback, and [contributed to the knowledge loop](https://www.getdbt.com/dbt-labs/values/). Whether you are a seasoned open source contributor or a first-time committer, we welcome and encourage you to contribute code, documentation, ideas, or problem statements to this project.
|
||||||
|
|
||||||
1. [About this document](#about-this-document)
|
1. [About this document](#about-this-document)
|
||||||
2. [Proposing a change](#proposing-a-change)
|
2. [Getting the code](#getting-the-code)
|
||||||
3. [Getting the code](#getting-the-code)
|
3. [Setting up an environment](#setting-up-an-environment)
|
||||||
4. [Setting up an environment](#setting-up-an-environment)
|
4. [Running dbt-core in development](#running-dbt-core-in-development)
|
||||||
5. [Running `dbt` in development](#running-dbt-in-development)
|
5. [Testing dbt-core](#testing)
|
||||||
6. [Testing](#testing)
|
6. [Debugging](#debugging)
|
||||||
7. [Submitting a Pull Request](#submitting-a-pull-request)
|
7. [Adding or modifying a changelog entry](#adding-or-modifying-a-changelog-entry)
|
||||||
|
8. [Submitting a Pull Request](#submitting-a-pull-request)
|
||||||
|
9. [Troubleshooting Tips](#troubleshooting-tips)
|
||||||
|
|
||||||
## About this document
|
## About this document
|
||||||
|
|
||||||
This document is a guide intended for folks interested in contributing to `dbt`. Below, we document the process by which members of the community should create issues and submit pull requests (PRs) in this repository. It is not intended as a guide for using `dbt`, and it assumes a certain level of familiarity with Python concepts such as virtualenvs, `pip`, python modules, filesystems, and so on. This guide assumes you are using macOS or Linux and are comfortable with the command line.
|
There are many ways to contribute to the ongoing development of `dbt-core`, such as by participating in discussions and issues. We encourage you to first read our higher-level document: ["Expectations for Open Source Contributors"](https://docs.getdbt.com/docs/contributing/oss-expectations).
|
||||||
|
|
||||||
If you're new to python development or contributing to open-source software, we encourage you to read this document from start to finish. If you get stuck, drop us a line in the `#dbt-core-development` channel on [slack](https://community.getdbt.com).
|
The rest of this document serves as a more granular guide for contributing code changes to `dbt-core` (this repository). It is not intended as a guide for using `dbt-core`, and some pieces assume a level of familiarity with Python development (virtualenvs, `pip`, etc). Specific code snippets in this guide assume you are using macOS or Linux and are comfortable with the command line.
|
||||||
|
|
||||||
#### Adapters
|
If you get stuck, we're happy to help! Drop us a line in the `#dbt-core-development` channel in the [dbt Community Slack](https://community.getdbt.com).
|
||||||
|
|
||||||
If you have an issue or code change suggestion related to a specific database [adapter](https://docs.getdbt.com/docs/available-adapters); please refer to that supported databases seperate repo for those contributions.
|
### Notes
|
||||||
|
|
||||||
### Signing the CLA
|
- **Adapters:** Is your issue or proposed code change related to a specific [database adapter](https://docs.getdbt.com/docs/available-adapters)? If so, please open issues, PRs, and discussions in that adapter's repository instead.
|
||||||
|
- **CLA:** Please note that anyone contributing code to `dbt-core` must sign the [Contributor License Agreement](https://docs.getdbt.com/docs/contributor-license-agreements). If you are unable to sign the CLA, the `dbt-core` maintainers will unfortunately be unable to merge any of your Pull Requests. We welcome you to participate in discussions, open issues, and comment on existing ones.
|
||||||
Please note that all contributors to `dbt` must sign the [Contributor License Agreement](https://docs.getdbt.com/docs/contributor-license-agreements) to have their Pull Request merged into the `dbt` codebase. If you are unable to sign the CLA, then the `dbt` maintainers will unfortunately be unable to merge your Pull Request. You are, however, welcome to open issues and comment on existing ones.
|
- **Branches:** All pull requests from community contributors should target the `main` branch (default). If the change is needed as a patch for a minor version of dbt that has already been released (or is already a release candidate), a maintainer will backport the changes in your PR to the relevant "latest" release branch (`1.0.latest`, `1.1.latest`, ...). If an issue fix applies to a release branch, that fix should be first committed to the development branch and then to the release branch (rarely release-branch fixes may not apply to `main`).
|
||||||
|
- **Releases**: Before releasing a new minor version of Core, we prepare a series of alphas and release candidates to allow users (especially employees of dbt Labs!) to test the new version in live environments. This is an important quality assurance step, as it exposes the new code to a wide variety of complicated deployments and can surface bugs before official release. Releases are accessible via our [supported installation methods](https://docs.getdbt.com/docs/core/installation-overview#install-dbt-core).
|
||||||
## Proposing a change
|
|
||||||
|
|
||||||
`dbt` is Apache 2.0-licensed open source software. `dbt` is what it is today because community members like you have opened issues, provided feedback, and contributed to the knowledge loop for the entire communtiy. Whether you are a seasoned open source contributor or a first-time committer, we welcome and encourage you to contribute code, documentation, ideas, or problem statements to this project.
|
|
||||||
|
|
||||||
### Defining the problem
|
|
||||||
|
|
||||||
If you have an idea for a new feature or if you've discovered a bug in `dbt`, the first step is to open an issue. Please check the list of [open issues](https://github.com/dbt-labs/dbt-core/issues) before creating a new one. If you find a relevant issue, please add a comment to the open issue instead of creating a new one. There are hundreds of open issues in this repository and it can be hard to know where to look for a relevant open issue. **The `dbt` maintainers are always happy to point contributors in the right direction**, so please err on the side of documenting your idea in a new issue if you are unsure where a problem statement belongs.
|
|
||||||
|
|
||||||
> **Note:** All community-contributed Pull Requests _must_ be associated with an open issue. If you submit a Pull Request that does not pertain to an open issue, you will be asked to create an issue describing the problem before the Pull Request can be reviewed.
|
|
||||||
|
|
||||||
### Discussing the idea
|
|
||||||
|
|
||||||
After you open an issue, a `dbt` maintainer will follow up by commenting on your issue (usually within 1-3 days) to explore your idea further and advise on how to implement the suggested changes. In many cases, community members will chime in with their own thoughts on the problem statement. If you as the issue creator are interested in submitting a Pull Request to address the issue, you should indicate this in the body of the issue. The `dbt` maintainers are _always_ happy to help contributors with the implementation of fixes and features, so please also indicate if there's anything you're unsure about or could use guidance around in the issue.
|
|
||||||
|
|
||||||
### Submitting a change
|
|
||||||
|
|
||||||
If an issue is appropriately well scoped and describes a beneficial change to the `dbt` codebase, then anyone may submit a Pull Request to implement the functionality described in the issue. See the sections below on how to do this.
|
|
||||||
|
|
||||||
The `dbt` maintainers will add a `good first issue` label if an issue is suitable for a first-time contributor. This label often means that the required code change is small, limited to one database adapter, or a net-new addition that does not impact existing functionality. You can see the list of currently open issues on the [Contribute](https://github.com/dbt-labs/dbt-core/contribute) page.
|
|
||||||
|
|
||||||
Here's a good workflow:
|
|
||||||
- Comment on the open issue, expressing your interest in contributing the required code change
|
|
||||||
- Outline your planned implementation. If you want help getting started, ask!
|
|
||||||
- Follow the steps outlined below to develop locally. Once you have opened a PR, one of the `dbt` maintainers will work with you to review your code.
|
|
||||||
- Add a test! Tests are crucial for both fixes and new features alike. We want to make sure that code works as intended, and that it avoids any bugs previously encountered. Currently, the best resource for understanding `dbt`'s [unit](test/unit) and [integration](test/integration) tests is the tests themselves. One of the maintainers can help by pointing out relevant examples.
|
|
||||||
|
|
||||||
In some cases, the right resolution to an open issue might be tangential to the `dbt` codebase. The right path forward might be a documentation update or a change that can be made in user-space. In other cases, the issue might describe functionality that the `dbt` maintainers are unwilling or unable to incorporate into the `dbt` codebase. When it is determined that an open issue describes functionality that will not translate to a code change in the `dbt` repository, the issue will be tagged with the `wontfix` label (see below) and closed.
|
|
||||||
|
|
||||||
### Using issue labels
|
|
||||||
|
|
||||||
The `dbt` maintainers use labels to categorize open issues. Some labels indicate the databases impacted by the issue, while others describe the domain in the `dbt` codebase germane to the discussion. While most of these labels are self-explanatory (eg. `snowflake` or `bigquery`), there are others that are worth describing.
|
|
||||||
|
|
||||||
| tag | description |
|
|
||||||
| --- | ----------- |
|
|
||||||
| [triage](https://github.com/dbt-labs/dbt-core/labels/triage) | This is a new issue which has not yet been reviewed by a `dbt` maintainer. This label is removed when a maintainer reviews and responds to the issue. |
|
|
||||||
| [bug](https://github.com/dbt-labs/dbt-core/labels/bug) | This issue represents a defect or regression in `dbt` |
|
|
||||||
| [enhancement](https://github.com/dbt-labs/dbt-core/labels/enhancement) | This issue represents net-new functionality in `dbt` |
|
|
||||||
| [good first issue](https://github.com/dbt-labs/dbt-core/labels/good%20first%20issue) | This issue does not require deep knowledge of the `dbt` codebase to implement. This issue is appropriate for a first-time contributor. |
|
|
||||||
| [help wanted](https://github.com/dbt-labs/dbt-core/labels/help%20wanted) / [discussion](https://github.com/dbt-labs/dbt-core/labels/discussion) | Conversation around this issue in ongoing, and there isn't yet a clear path forward. Input from community members is most welcome. |
|
|
||||||
| [duplicate](https://github.com/dbt-labs/dbt-core/issues/duplicate) | This issue is functionally identical to another open issue. The `dbt` maintainers will close this issue and encourage community members to focus conversation on the other one. |
|
|
||||||
| [snoozed](https://github.com/dbt-labs/dbt-core/labels/snoozed) | This issue describes a good idea, but one which will probably not be addressed in a six-month time horizon. The `dbt` maintainers will revist these issues periodically and re-prioritize them accordingly. |
|
|
||||||
| [stale](https://github.com/dbt-labs/dbt-core/labels/stale) | This is an old issue which has not recently been updated. Stale issues will periodically be closed by `dbt` maintainers, but they can be re-opened if the discussion is restarted. |
|
|
||||||
| [wontfix](https://github.com/dbt-labs/dbt-core/labels/wontfix) | This issue does not require a code change in the `dbt` repository, or the maintainers are unwilling/unable to merge a Pull Request which implements the behavior described in the issue. |
|
|
||||||
|
|
||||||
#### Branching Strategy
|
|
||||||
|
|
||||||
`dbt` has three types of branches:
|
|
||||||
|
|
||||||
- **Trunks** are where active development of the next release takes place. There is one trunk named `develop` at the time of writing this, and will be the default branch of the repository.
|
|
||||||
- **Release Branches** track a specific, not yet complete release of `dbt`. Each minor version release has a corresponding release branch. For example, the `0.11.x` series of releases has a branch called `0.11.latest`. This allows us to release new patch versions under `0.11` without necessarily needing to pull them into the latest version of `dbt`.
|
|
||||||
- **Feature Branches** track individual features and fixes. On completion they should be merged into the trunk branch or a specific release branch.
|
|
||||||
|
|
||||||
## Getting the code
|
## Getting the code
|
||||||
|
|
||||||
### Installing git
|
### Installing git
|
||||||
|
|
||||||
You will need `git` in order to download and modify the `dbt` source code. On macOS, the best way to download git is to just install [Xcode](https://developer.apple.com/support/xcode/).
|
You will need `git` in order to download and modify the `dbt-core` source code. On macOS, the best way to download git is to just install [Xcode](https://developer.apple.com/support/xcode/).
|
||||||
|
|
||||||
### External contributors
|
### External contributors
|
||||||
|
|
||||||
If you are not a member of the `dbt-labs` GitHub organization, you can contribute to `dbt` by forking the `dbt` repository. For a detailed overview on forking, check out the [GitHub docs on forking](https://help.github.com/en/articles/fork-a-repo). In short, you will need to:
|
If you are not a member of the `dbt-labs` GitHub organization, you can contribute to `dbt-core` by forking the `dbt-core` repository. For a detailed overview on forking, check out the [GitHub docs on forking](https://help.github.com/en/articles/fork-a-repo). In short, you will need to:
|
||||||
|
|
||||||
1. fork the `dbt` repository
|
1. Fork the `dbt-core` repository
|
||||||
2. clone your fork locally
|
2. Clone your fork locally
|
||||||
3. check out a new branch for your proposed changes
|
3. Check out a new branch for your proposed changes
|
||||||
4. push changes to your fork
|
4. Push changes to your fork
|
||||||
5. open a pull request against `dbt-labs/dbt` from your forked repository
|
5. Open a pull request against `dbt-labs/dbt-core` from your forked repository
|
||||||
|
|
||||||
### Core contributors
|
### dbt Labs contributors
|
||||||
|
|
||||||
If you are a member of the `dbt-labs` GitHub organization, you will have push access to the `dbt` repo. Rather than forking `dbt` to make your changes, just clone the repository, check out a new branch, and push directly to that branch.
|
If you are a member of the `dbt-labs` GitHub organization, you will have push access to the `dbt-core` repo. Rather than forking `dbt-core` to make your changes, just clone the repository, check out a new branch, and push directly to that branch.
|
||||||
|
|
||||||
## Setting up an environment
|
## Setting up an environment
|
||||||
|
|
||||||
There are some tools that will be helpful to you in developing locally. While this is the list relevant for `dbt` development, many of these tools are used commonly across open-source python projects.
|
There are some tools that will be helpful to you in developing locally. While this is the list relevant for `dbt-core` development, many of these tools are used commonly across open-source python projects.
|
||||||
|
|
||||||
### Tools
|
### Tools
|
||||||
|
|
||||||
A short list of tools used in `dbt` testing that will be helpful to your understanding:
|
These are the tools used in `dbt-core` development and testing:
|
||||||
|
|
||||||
- [`tox`](https://tox.readthedocs.io/en/latest/) to manage virtualenvs across python versions. We currently target the latest patch releases for Python 3.6, Python 3.7, Python 3.8, and Python 3.9
|
- [`tox`](https://tox.readthedocs.io/en/latest/) to manage virtualenvs across python versions. We currently target the latest patch releases for Python 3.8, 3.9, 3.10 and 3.11
|
||||||
- [`pytest`](https://docs.pytest.org/en/latest/) to discover/run tests
|
- [`pytest`](https://docs.pytest.org/en/latest/) to define, discover, and run tests
|
||||||
- [`make`](https://users.cs.duke.edu/~ola/courses/programming/Makefiles/Makefiles.html) - but don't worry too much, nobody _really_ understands how make works and our Makefile is super simple
|
|
||||||
- [`flake8`](https://flake8.pycqa.org/en/latest/) for code linting
|
- [`flake8`](https://flake8.pycqa.org/en/latest/) for code linting
|
||||||
|
- [`black`](https://github.com/psf/black) for code formatting
|
||||||
- [`mypy`](https://mypy.readthedocs.io/en/stable/) for static type checking
|
- [`mypy`](https://mypy.readthedocs.io/en/stable/) for static type checking
|
||||||
- [Github Actions](https://github.com/features/actions)
|
- [`pre-commit`](https://pre-commit.com) to easily run those checks
|
||||||
|
- [`changie`](https://changie.dev/) to create changelog entries, without merge conflicts
|
||||||
|
- [`make`](https://users.cs.duke.edu/~ola/courses/programming/Makefiles/Makefiles.html) to run multiple setup or test steps in combination. Don't worry too much, nobody _really_ understands how `make` works, and our Makefile aims to be super simple.
|
||||||
|
- [GitHub Actions](https://github.com/features/actions) for automating tests and checks, once a PR is pushed to the `dbt-core` repository
|
||||||
|
|
||||||
A deep understanding of these tools in not required to effectively contribute to `dbt`, but we recommend checking out the attached documentation if you're interested in learning more about them.
|
A deep understanding of these tools in not required to effectively contribute to `dbt-core`, but we recommend checking out the attached documentation if you're interested in learning more about each one.
|
||||||
|
|
||||||
#### virtual environments
|
#### Virtual environments
|
||||||
|
|
||||||
We strongly recommend using virtual environments when developing code in `dbt`. We recommend creating this virtualenv
|
We strongly recommend using virtual environments when developing code in `dbt-core`. We recommend creating this virtualenv
|
||||||
in the root of the `dbt` repository. To create a new virtualenv, run:
|
in the root of the `dbt-core` repository. To create a new virtualenv, run:
|
||||||
```sh
|
```sh
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
@@ -122,12 +78,12 @@ source env/bin/activate
|
|||||||
|
|
||||||
This will create and activate a new Python virtual environment.
|
This will create and activate a new Python virtual environment.
|
||||||
|
|
||||||
#### docker and docker-compose
|
#### Docker and `docker-compose`
|
||||||
|
|
||||||
Docker and docker-compose are both used in testing. Specific instructions for you OS can be found [here](https://docs.docker.com/get-docker/).
|
Docker and `docker-compose` are both used in testing. Specific instructions for you OS can be found [here](https://docs.docker.com/get-docker/).
|
||||||
|
|
||||||
|
|
||||||
#### postgres (optional)
|
#### Postgres (optional)
|
||||||
|
|
||||||
For testing, and later in the examples in this document, you may want to have `psql` available so you can poke around in the database and see what happened. We recommend that you use [homebrew](https://brew.sh/) for that on macOS, and your package manager on Linux. You can install any version of the postgres client that you'd like. On macOS, with homebrew setup, you can run:
|
For testing, and later in the examples in this document, you may want to have `psql` available so you can poke around in the database and see what happened. We recommend that you use [homebrew](https://brew.sh/) for that on macOS, and your package manager on Linux. You can install any version of the postgres client that you'd like. On macOS, with homebrew setup, you can run:
|
||||||
|
|
||||||
@@ -135,35 +91,41 @@ For testing, and later in the examples in this document, you may want to have `p
|
|||||||
brew install postgresql
|
brew install postgresql
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running `dbt` in development
|
## Running `dbt-core` in development
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
First make sure that you set up your `virtualenv` as described in [Setting up an environment](#setting-up-an-environment). Also ensure you have the latest version of pip installed with `pip install --upgrade pip`. Next, install `dbt` (and its dependencies) with:
|
First make sure that you set up your `virtualenv` as described in [Setting up an environment](#setting-up-an-environment). Also ensure you have the latest version of pip installed with `pip install --upgrade pip`. Next, install `dbt-core` (and its dependencies):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make dev
|
make dev
|
||||||
# or
|
```
|
||||||
|
or, alternatively:
|
||||||
|
```sh
|
||||||
pip install -r dev-requirements.txt -r editable-requirements.txt
|
pip install -r dev-requirements.txt -r editable-requirements.txt
|
||||||
|
pre-commit install
|
||||||
```
|
```
|
||||||
|
|
||||||
When `dbt` is installed this way, any changes you make to the `dbt` source code will be reflected immediately in your next `dbt` run.
|
When installed in this way, any changes you make to your local copy of the source code will be reflected immediately in your next `dbt` run.
|
||||||
|
|
||||||
### Running `dbt`
|
### Running `dbt-core`
|
||||||
|
|
||||||
With your virtualenv activated, the `dbt` script should point back to the source code you've cloned on your machine. You can verify this by running `which dbt`. This command should show you a path to an executable in your virtualenv.
|
With your virtualenv activated, the `dbt` script should point back to the source code you've cloned on your machine. You can verify this by running `which dbt`. This command should show you a path to an executable in your virtualenv.
|
||||||
|
|
||||||
Configure your [profile](https://docs.getdbt.com/docs/configure-your-profile) as necessary to connect to your target databases. It may be a good idea to add a new profile pointing to a local postgres instance, or a specific test sandbox within your data warehouse if appropriate.
|
Configure your [profile](https://docs.getdbt.com/docs/configure-your-profile) as necessary to connect to your target databases. It may be a good idea to add a new profile pointing to a local Postgres instance, or a specific test sandbox within your data warehouse if appropriate. Make sure to create a profile before running integration tests.
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
Getting the `dbt` integration tests set up in your local environment will be very helpful as you start to make changes to your local version of `dbt`. The section that follows outlines some helpful tips for setting up the test environment.
|
Once you're able to manually test that your code change is working as expected, it's important to run existing automated tests, as well as adding some new ones. These tests will ensure that:
|
||||||
|
- Your code changes do not unexpectedly break other established functionality
|
||||||
|
- Your code changes can handle all known edge cases
|
||||||
|
- The functionality you're adding will _keep_ working in the future
|
||||||
|
|
||||||
Although `dbt` works with a number of different databases, you won't need to supply credentials for every one of these databases in your test environment. Instead you can test all dbt-core code changes with Python and Postgres.
|
Although `dbt-core` works with a number of different databases, you won't need to supply credentials for every one of these databases in your test environment. Instead, you can test most `dbt-core` code changes with Python and Postgres.
|
||||||
|
|
||||||
### Initial setup
|
### Initial setup
|
||||||
|
|
||||||
We recommend starting with `dbt`'s Postgres tests. These tests cover most of the functionality in `dbt`, are the fastest to run, and are the easiest to set up. To run the Postgres integration tests, you'll have to do one extra step of setting up the test database:
|
Postgres offers the easiest way to test most `dbt-core` functionality today. They are the fastest to run, and the easiest to set up. To run the Postgres integration tests, you'll have to do one extra step of setting up the test database:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make setup-db
|
make setup-db
|
||||||
@@ -174,15 +136,6 @@ docker-compose up -d database
|
|||||||
PGHOST=localhost PGUSER=root PGPASSWORD=password PGDATABASE=postgres bash test/setup_db.sh
|
PGHOST=localhost PGUSER=root PGPASSWORD=password PGDATABASE=postgres bash test/setup_db.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
`dbt` uses test credentials specified in a `test.env` file in the root of the repository for non-Postgres databases. This `test.env` file is git-ignored, but please be _extra_ careful to never check in credentials or other sensitive information when developing against `dbt`. To create your `test.env` file, copy the provided sample file, then supply your relevant credentials. This step is only required to use non-Postgres databases.
|
|
||||||
|
|
||||||
```
|
|
||||||
cp test.env.sample test.env
|
|
||||||
$EDITOR test.env
|
|
||||||
```
|
|
||||||
|
|
||||||
> In general, it's most important to have successful unit and Postgres tests. Once you open a PR, `dbt` will automatically run integration tests for the other three core database adapters. Of course, if you are a BigQuery user, contributing a BigQuery-only feature, it's important to run BigQuery tests as well.
|
|
||||||
|
|
||||||
### Test commands
|
### Test commands
|
||||||
|
|
||||||
There are a few methods for running tests locally.
|
There are a few methods for running tests locally.
|
||||||
@@ -198,38 +151,81 @@ make test
|
|||||||
# Runs postgres integration tests with py38 in "fail fast" mode.
|
# Runs postgres integration tests with py38 in "fail fast" mode.
|
||||||
make integration
|
make integration
|
||||||
```
|
```
|
||||||
> These make targets assume you have a recent version of [`tox`](https://tox.readthedocs.io/en/latest/) installed locally,
|
> These make targets assume you have a local installation of a recent version of [`tox`](https://tox.readthedocs.io/en/latest/) for unit/integration testing and pre-commit for code quality checks,
|
||||||
> unless you use choose a Docker container to run tests. Run `make help` for more info.
|
> unless you use choose a Docker container to run tests. Run `make help` for more info.
|
||||||
|
|
||||||
Check out the other targets in the Makefile to see other commonly used test
|
Check out the other targets in the Makefile to see other commonly used test
|
||||||
suites.
|
suites.
|
||||||
|
|
||||||
|
#### `pre-commit`
|
||||||
|
[`pre-commit`](https://pre-commit.com) takes care of running all code-checks for formatting and linting. Run `make dev` to install `pre-commit` in your local environment (we recommend running this command with a python virtual environment active). This command installs several pip executables including black, mypy, and flake8. Once this is done you can use any of the linter-based make targets as well as a git pre-commit hook that will ensure proper formatting and linting.
|
||||||
|
|
||||||
#### `tox`
|
#### `tox`
|
||||||
|
|
||||||
[`tox`](https://tox.readthedocs.io/en/latest/) takes care of managing virtualenvs and install dependencies in order to run
|
[`tox`](https://tox.readthedocs.io/en/latest/) takes care of managing virtualenvs and install dependencies in order to run tests. You can also run tests in parallel, for example, you can run unit tests for Python 3.8, Python 3.9, Python 3.10 and Python 3.11 checks in parallel with `tox -p`. Also, you can run unit tests for specific python versions with `tox -e py38`. The configuration for these tests in located in `tox.ini`.
|
||||||
tests. You can also run tests in parallel, for example, you can run unit tests
|
|
||||||
for Python 3.6, Python 3.7, Python 3.8, `flake8` checks, and `mypy` checks in
|
|
||||||
parallel with `tox -p`. Also, you can run unit tests for specific python versions
|
|
||||||
with `tox -e py36`. The configuration for these tests in located in `tox.ini`.
|
|
||||||
|
|
||||||
#### `pytest`
|
#### `pytest`
|
||||||
|
|
||||||
Finally, you can also run a specific test or group of tests using [`pytest`](https://docs.pytest.org/en/latest/) directly. With a virtualenv
|
Finally, you can also run a specific test or group of tests using [`pytest`](https://docs.pytest.org/en/latest/) directly. With a virtualenv active and dev dependencies installed you can do things like:
|
||||||
active and dev dependencies installed you can do things like:
|
|
||||||
```sh
|
```sh
|
||||||
# run specific postgres integration tests
|
|
||||||
python -m pytest -m profile_postgres test/integration/001_simple_copy_test
|
|
||||||
# run all unit tests in a file
|
# run all unit tests in a file
|
||||||
python -m pytest test/unit/test_graph.py
|
python3 -m pytest tests/unit/test_base_column.py
|
||||||
# run a specific unit test
|
# run a specific unit test
|
||||||
python -m pytest test/unit/test_graph.py::GraphTest::test__dependency_list
|
python3 -m pytest tests/unit/test_base_column.py::TestNumericType::test__numeric_type
|
||||||
|
# run specific Postgres functional tests
|
||||||
|
python3 -m pytest tests/functional/sources
|
||||||
```
|
```
|
||||||
> [Here](https://docs.pytest.org/en/reorganize-docs/new-docs/user/commandlineuseful.html)
|
|
||||||
> is a list of useful command-line options for `pytest` to use while developing.
|
> See [pytest usage docs](https://docs.pytest.org/en/6.2.x/usage.html) for an overview of useful command-line options.
|
||||||
|
|
||||||
|
### Unit, Integration, Functional?
|
||||||
|
|
||||||
|
Here are some general rules for adding tests:
|
||||||
|
* unit tests (`tests/unit`) don’t need to access a database; "pure Python" tests should be written as unit tests
|
||||||
|
* functional tests (`tests/functional`) cover anything that interacts with a database, namely adapter
|
||||||
|
|
||||||
|
## Debugging
|
||||||
|
|
||||||
|
1. The logs for a `dbt run` have stack traces and other information for debugging errors (in `logs/dbt.log` in your project directory).
|
||||||
|
2. Try using a debugger, like `ipdb`. For pytest: `--pdb --pdbcls=IPython.terminal.debugger:pdb`
|
||||||
|
3. Sometimes, it’s easier to debug on a single thread: `dbt --single-threaded run`
|
||||||
|
4. To make print statements from Jinja macros: `{{ log(msg, info=true) }}`
|
||||||
|
5. You can also add `{{ debug() }}` statements, which will drop you into some auto-generated code that the macro wrote.
|
||||||
|
6. The dbt “artifacts” are written out to the ‘target’ directory of your dbt project. They are in unformatted json, which can be hard to read. Format them with:
|
||||||
|
> python -m json.tool target/run_results.json > run_results.json
|
||||||
|
|
||||||
|
### Assorted development tips
|
||||||
|
* Append `# type: ignore` to the end of a line if you need to disable `mypy` on that line.
|
||||||
|
* Sometimes flake8 complains about lines that are actually fine, in which case you can put a comment on the line such as: # noqa or # noqa: ANNN, where ANNN is the error code that flake8 issues.
|
||||||
|
* To collect output for `CProfile`, run dbt with the `-r` option and the name of an output file, i.e. `dbt -r dbt.cprof run`. If you just want to profile parsing, you can do: `dbt -r dbt.cprof parse`. `pip` install `snakeviz` to view the output. Run `snakeviz dbt.cprof` and output will be rendered in a browser window.
|
||||||
|
|
||||||
|
## Adding or modifying a CHANGELOG Entry
|
||||||
|
|
||||||
|
We use [changie](https://changie.dev) to generate `CHANGELOG` entries. **Note:** Do not edit the `CHANGELOG.md` directly. Your modifications will be lost.
|
||||||
|
|
||||||
|
Follow the steps to [install `changie`](https://changie.dev/guide/installation/) for your system.
|
||||||
|
|
||||||
|
Once changie is installed and your PR is created for a new feature, simply run the following command and changie will walk you through the process of creating a changelog entry:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
changie new
|
||||||
|
```
|
||||||
|
|
||||||
|
Commit the file that's created and your changelog entry is complete!
|
||||||
|
|
||||||
|
If you are contributing to a feature already in progress, you will modify the changie yaml file in dbt/.changes/unreleased/ related to your change. If you need help finding this file, please ask within the discussion for the pull request!
|
||||||
|
|
||||||
|
You don't need to worry about which `dbt-core` version your change will go into. Just create the changelog entry with `changie`, and open your PR against the `main` branch. All merged changes will be included in the next minor version of `dbt-core`. The Core maintainers _may_ choose to "backport" specific changes in order to patch older minor versions. In that case, a maintainer will take care of that backport after merging your PR, before releasing the new version of `dbt-core`.
|
||||||
|
|
||||||
## Submitting a Pull Request
|
## Submitting a Pull Request
|
||||||
|
|
||||||
dbt Labs provides a CI environment to test changes to specific adapters, and periodic maintenance checks of `dbt-core` through Github Actions. For example, if you submit a pull request to the `dbt-redshift` repo, GitHub will trigger automated code checks and tests against Redshift.
|
Code can be merged into the current development branch `main` by opening a pull request. If the proposal looks like it's on the right track, then a `dbt-core` maintainer will triage the PR and label it as `ready_for_review`. From this point, two code reviewers will be assigned with the aim of responding to any updates to the PR within about one week. They may suggest code revision for style or clarity, or request that you add unit or integration test(s). These are good things! We believe that, with a little bit of help, anyone can contribute high-quality code. Once merged, your contribution will be available for the next release of `dbt-core`.
|
||||||
|
|
||||||
A `dbt` maintainer will review your PR. They may suggest code revision for style or clarity, or request that you add unit or integration test(s). These are good things! We believe that, with a little bit of help, anyone can contribute high-quality code.
|
Automated tests run via GitHub Actions. If you're a first-time contributor, all tests (including code checks and unit tests) will require a maintainer to approve. Changes in the `dbt-core` repository trigger integration tests against Postgres. dbt Labs also provides CI environments in which to test changes to other adapters, triggered by PRs in those adapters' repositories, as well as periodic maintenance checks of each adapter in concert with the latest `dbt-core` code changes.
|
||||||
|
|
||||||
Once all tests are passing and your PR has been approved, a `dbt` maintainer will merge your changes into the active development branch. And that's it! Happy developing :tada:
|
Once all tests are passing and your PR has been approved, a `dbt-core` maintainer will merge your changes into the active development branch. And that's it! Happy developing :tada:
|
||||||
|
|
||||||
|
## Troubleshooting Tips
|
||||||
|
|
||||||
|
Sometimes, the content license agreement auto-check bot doesn't find a user's entry in its roster. If you need to force a rerun, add `@cla-bot check` in a comment on the pull request.
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
FROM ubuntu:20.04
|
##
|
||||||
|
# This dockerfile is used for local development and adapter testing only.
|
||||||
|
# See `/docker` for a generic and production-ready docker file
|
||||||
|
##
|
||||||
|
|
||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
software-properties-common \
|
software-properties-common gpg-agent \
|
||||||
&& add-apt-repository ppa:git-core/ppa -y \
|
&& add-apt-repository ppa:git-core/ppa -y \
|
||||||
&& apt-get dist-upgrade -y \
|
&& apt-get dist-upgrade -y \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
@@ -25,22 +30,21 @@ RUN apt-get update \
|
|||||||
unixodbc-dev \
|
unixodbc-dev \
|
||||||
&& add-apt-repository ppa:deadsnakes/ppa \
|
&& add-apt-repository ppa:deadsnakes/ppa \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
python \
|
python-is-python3 \
|
||||||
python-dev \
|
python-dev-is-python3 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3.6 \
|
|
||||||
python3.6-dev \
|
|
||||||
python3-pip \
|
|
||||||
python3.6-venv \
|
|
||||||
python3.7 \
|
|
||||||
python3.7-dev \
|
|
||||||
python3.7-venv \
|
|
||||||
python3.8 \
|
python3.8 \
|
||||||
python3.8-dev \
|
python3.8-dev \
|
||||||
python3.8-venv \
|
python3.8-venv \
|
||||||
python3.9 \
|
python3.9 \
|
||||||
python3.9-dev \
|
python3.9-dev \
|
||||||
python3.9-venv \
|
python3.9-venv \
|
||||||
|
python3.10 \
|
||||||
|
python3.10-dev \
|
||||||
|
python3.10-venv \
|
||||||
|
python3.11 \
|
||||||
|
python3.11-dev \
|
||||||
|
python3.11-venv \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
|||||||
132
Makefile
132
Makefile
@@ -6,47 +6,102 @@ ifeq ($(USE_DOCKER),true)
|
|||||||
DOCKER_CMD := docker-compose run --rm test
|
DOCKER_CMD := docker-compose run --rm test
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: dev
|
#
|
||||||
dev: ## Installs dbt-* packages in develop mode along with development dependencies.
|
# To override CI_flags, create a file at this repo's root dir named `makefile.test.env`. Fill it
|
||||||
|
# with any ENV_VAR overrides required by your test environment, e.g.
|
||||||
|
# DBT_TEST_USER_1=user
|
||||||
|
# LOG_DIR="dir with a space in it"
|
||||||
|
#
|
||||||
|
# Warn: Restrict each line to one variable only.
|
||||||
|
#
|
||||||
|
ifeq (./makefile.test.env,$(wildcard ./makefile.test.env))
|
||||||
|
include ./makefile.test.env
|
||||||
|
endif
|
||||||
|
|
||||||
|
CI_FLAGS =\
|
||||||
|
DBT_TEST_USER_1=$(if $(DBT_TEST_USER_1),$(DBT_TEST_USER_1),dbt_test_user_1)\
|
||||||
|
DBT_TEST_USER_2=$(if $(DBT_TEST_USER_2),$(DBT_TEST_USER_2),dbt_test_user_2)\
|
||||||
|
DBT_TEST_USER_3=$(if $(DBT_TEST_USER_3),$(DBT_TEST_USER_3),dbt_test_user_3)\
|
||||||
|
RUSTFLAGS=$(if $(RUSTFLAGS),$(RUSTFLAGS),"-D warnings")\
|
||||||
|
LOG_DIR=$(if $(LOG_DIR),$(LOG_DIR),./logs)\
|
||||||
|
DBT_LOG_FORMAT=$(if $(DBT_LOG_FORMAT),$(DBT_LOG_FORMAT),json)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: dev_req
|
||||||
|
dev_req: ## Installs dbt-* packages in develop mode along with only development dependencies.
|
||||||
|
@\
|
||||||
pip install -r dev-requirements.txt -r editable-requirements.txt
|
pip install -r dev-requirements.txt -r editable-requirements.txt
|
||||||
|
|
||||||
|
.PHONY: dev
|
||||||
|
dev: dev_req ## Installs dbt-* packages in develop mode along with development dependencies and pre-commit.
|
||||||
|
@\
|
||||||
|
pre-commit install
|
||||||
|
|
||||||
|
.PHONY: dev-uninstall
|
||||||
|
dev-uninstall: ## Uninstall all packages in venv except for build tools
|
||||||
|
@\
|
||||||
|
pip freeze | grep -v "^-e" | cut -d "@" -f1 | xargs pip uninstall -y; \
|
||||||
|
pip uninstall -y dbt-core
|
||||||
|
|
||||||
|
.PHONY: core_proto_types
|
||||||
|
core_proto_types: ## generates google protobuf python file from core_types.proto
|
||||||
|
protoc -I=./core/dbt/events --python_out=./core/dbt/events ./core/dbt/events/core_types.proto
|
||||||
|
|
||||||
.PHONY: mypy
|
.PHONY: mypy
|
||||||
mypy: .env ## Runs mypy for static type checking.
|
mypy: .env ## Runs mypy against staged changes for static type checking.
|
||||||
$(DOCKER_CMD) tox -e mypy
|
@\
|
||||||
|
$(DOCKER_CMD) pre-commit run --hook-stage manual mypy-check | grep -v "INFO"
|
||||||
|
|
||||||
.PHONY: flake8
|
.PHONY: flake8
|
||||||
flake8: .env ## Runs flake8 to enforce style guide.
|
flake8: .env ## Runs flake8 against staged changes to enforce style guide.
|
||||||
$(DOCKER_CMD) tox -e flake8
|
@\
|
||||||
|
$(DOCKER_CMD) pre-commit run --hook-stage manual flake8-check | grep -v "INFO"
|
||||||
|
|
||||||
|
.PHONY: black
|
||||||
|
black: .env ## Runs black against staged changes to enforce style guide.
|
||||||
|
@\
|
||||||
|
$(DOCKER_CMD) pre-commit run --hook-stage manual black-check -v | grep -v "INFO"
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: .env ## Runs all code checks in parallel.
|
lint: .env ## Runs flake8 and mypy code checks against staged changes.
|
||||||
$(DOCKER_CMD) tox -p -e flake8,mypy
|
@\
|
||||||
|
$(DOCKER_CMD) pre-commit run flake8-check --hook-stage manual | grep -v "INFO"; \
|
||||||
|
$(DOCKER_CMD) pre-commit run mypy-check --hook-stage manual | grep -v "INFO"
|
||||||
|
|
||||||
.PHONY: unit
|
.PHONY: unit
|
||||||
unit: .env ## Runs unit tests with py38.
|
unit: .env ## Runs unit tests with py
|
||||||
$(DOCKER_CMD) tox -e py38
|
@\
|
||||||
|
$(DOCKER_CMD) tox -e py
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: .env ## Runs unit tests with py38 and code checks in parallel.
|
test: .env ## Runs unit tests with py and code checks against staged changes.
|
||||||
$(DOCKER_CMD) tox -p -e py38,flake8,mypy
|
@\
|
||||||
|
$(DOCKER_CMD) tox -e py; \
|
||||||
|
$(DOCKER_CMD) pre-commit run black-check --hook-stage manual | grep -v "INFO"; \
|
||||||
|
$(DOCKER_CMD) pre-commit run flake8-check --hook-stage manual | grep -v "INFO"; \
|
||||||
|
$(DOCKER_CMD) pre-commit run mypy-check --hook-stage manual | grep -v "INFO"
|
||||||
|
|
||||||
.PHONY: integration
|
.PHONY: integration
|
||||||
integration: .env integration-postgres ## Alias for integration-postgres.
|
integration: .env ## Runs core integration tests using postgres with py-integration
|
||||||
|
@\
|
||||||
|
$(CI_FLAGS) $(DOCKER_CMD) tox -e py-integration -- -nauto
|
||||||
|
|
||||||
.PHONY: integration-fail-fast
|
.PHONY: integration-fail-fast
|
||||||
integration-fail-fast: .env integration-postgres-fail-fast ## Alias for integration-postgres-fail-fast.
|
integration-fail-fast: .env ## Runs core integration tests using postgres with py-integration in "fail fast" mode.
|
||||||
|
@\
|
||||||
|
$(DOCKER_CMD) tox -e py-integration -- -x -nauto
|
||||||
|
|
||||||
.PHONY: integration-postgres
|
.PHONY: interop
|
||||||
integration-postgres: .env ## Runs postgres integration tests with py38.
|
interop: clean
|
||||||
$(DOCKER_CMD) tox -e py38-postgres -- -nauto
|
@\
|
||||||
|
mkdir $(LOG_DIR) && \
|
||||||
.PHONY: integration-postgres-fail-fast
|
$(CI_FLAGS) $(DOCKER_CMD) tox -e py-integration -- -nauto && \
|
||||||
integration-postgres-fail-fast: .env ## Runs postgres integration tests with py38 in "fail fast" mode.
|
LOG_DIR=$(LOG_DIR) cargo run --manifest-path test/interop/log_parsing/Cargo.toml
|
||||||
$(DOCKER_CMD) tox -e py38-postgres -- -x -nauto
|
|
||||||
|
|
||||||
.PHONY: setup-db
|
.PHONY: setup-db
|
||||||
setup-db: ## Setup Postgres database with docker-compose for system testing.
|
setup-db: ## Setup Postgres database with docker-compose for system testing.
|
||||||
docker-compose up -d database
|
@\
|
||||||
|
docker-compose up -d database && \
|
||||||
PGHOST=localhost PGUSER=root PGPASSWORD=password PGDATABASE=postgres bash test/setup_db.sh
|
PGHOST=localhost PGUSER=root PGPASSWORD=password PGDATABASE=postgres bash test/setup_db.sh
|
||||||
|
|
||||||
# This rule creates a file named .env that is used by docker-compose for passing
|
# This rule creates a file named .env that is used by docker-compose for passing
|
||||||
@@ -62,27 +117,30 @@ endif
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: ## Resets development environment.
|
clean: ## Resets development environment.
|
||||||
rm -f .coverage
|
@echo 'cleaning repo...'
|
||||||
rm -rf .eggs/
|
@rm -f .coverage
|
||||||
rm -f .env
|
@rm -f .coverage.*
|
||||||
rm -rf .tox/
|
@rm -rf .eggs/
|
||||||
rm -rf build/
|
@rm -f .env
|
||||||
rm -rf dbt.egg-info/
|
@rm -rf .tox/
|
||||||
rm -f dbt_project.yml
|
@rm -rf build/
|
||||||
rm -rf dist/
|
@rm -rf dbt.egg-info/
|
||||||
rm -f htmlcov/*.{css,html,js,json,png}
|
@rm -f dbt_project.yml
|
||||||
rm -rf logs/
|
@rm -rf dist/
|
||||||
rm -rf target/
|
@rm -f htmlcov/*.{css,html,js,json,png}
|
||||||
find . -type f -name '*.pyc' -delete
|
@rm -rf logs/
|
||||||
find . -type d -name '__pycache__' -depth -delete
|
@rm -rf target/
|
||||||
|
@find . -type f -name '*.pyc' -delete
|
||||||
|
@find . -type d -name '__pycache__' -depth -delete
|
||||||
|
@echo 'done.'
|
||||||
|
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help: ## Show this help message.
|
help: ## Show this help message.
|
||||||
@echo 'usage: make [target] [USE_DOCKER=true]'
|
@echo 'usage: make [target] [USE_DOCKER=true]'
|
||||||
@echo
|
@echo
|
||||||
@echo 'targets:'
|
@echo 'targets:'
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[8+a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
@echo
|
@echo
|
||||||
@echo 'options:'
|
@echo 'options:'
|
||||||
@echo 'use USE_DOCKER=true to run target in a docker container'
|
@echo 'use USE_DOCKER=true to run target in a docker container'
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user