text stringlengths 0 1.8k |
|---|
[811.94 --> 813.32] And that's what will make it really quick. |
[813.72 --> 815.46] So you can see what the cached run looks like. |
[815.50 --> 817.60] You can see that all these steps are really, really quick. |
[818.08 --> 819.36] The tests take the longest. |
[819.70 --> 823.36] And all in all, we're done in 47 seconds, 46.98. |
[823.46 --> 824.24] Let's be precise. |
[824.82 --> 825.02] Okay? |
[825.32 --> 828.32] I think that's one of the beautiful things about Dagger |
[828.32 --> 830.34] and our use of BuildKit too, |
[830.44 --> 835.30] is that because we're describing at a very fine-grained level, |
[835.30 --> 841.24] the relationships between these relatively fine-grained steps |
[841.24 --> 844.82] that might be, you know, within the context of an action. |
[844.98 --> 847.26] We can run many of those in parallel. |
[847.68 --> 850.16] So if you need to go run a bunch of things along, |
[850.86 --> 852.10] say, the assets pipeline, |
[852.36 --> 857.02] you can do that at the same time that you're doing stuff with mix. |
[857.02 --> 859.26] And then, like you said, |
[859.40 --> 861.86] you're basically waiting for both of those things to be done |
[861.86 --> 864.90] because those are inputs to some next stage. |
[865.96 --> 869.10] And you could imagine much more complicated versions of this as well, |
[869.56 --> 872.50] where you're going and building a ton of microservices in parallel. |
[872.84 --> 873.50] Yeah, exactly. |
[874.62 --> 876.12] What about the GitHub Actions integration? |
[876.22 --> 876.92] Well, this is a screenshot. |
[877.04 --> 877.70] This is what it looks like. |
[877.74 --> 879.18] We want to do like a point in time, |
[879.42 --> 880.86] and we can see how much quicker this is. |
[880.96 --> 882.54] But I would like to talk about this, |
[882.72 --> 884.28] and maybe Guillaume can run us through it. |
[884.38 --> 885.32] What does this look like? |
[885.32 --> 886.52] This is the GitHub Actions config. |
[886.78 --> 888.04] So what can you tell us about it, Guillaume? |
[888.10 --> 889.16] How do you read this? |
[889.16 --> 892.66] So it's like a normal GitHub Action. |
[893.16 --> 896.40] What I see here, you have environment variables, |
[896.88 --> 900.72] so Docker host, the hotel, so the Jaeger endpoint. |
[901.30 --> 901.60] Okay. |
[902.14 --> 904.28] And then you have a job, only one job, |
[904.60 --> 906.82] which is this name CI. |
[907.32 --> 908.30] It runs on Ubuntu. |
[909.16 --> 912.40] So you just check out the code for the context of the changes. |
[912.40 --> 916.82] And then you use basically Dagger here. |
[917.32 --> 917.96] The Dagger Action. |
[918.08 --> 918.34] Or Action. |
[918.72 --> 919.72] The Dagger Action, exactly. |
[920.40 --> 923.06] And then you configure the Tailscale Tunnel. |
[923.16 --> 925.48] I think it's for you, I believe. |
[926.22 --> 927.66] Yeah, because this Docker is remote. |
[927.78 --> 928.20] That's right. |
[928.50 --> 930.88] And it's the same Docker host, which I use locally. |
[930.98 --> 932.74] Like I don't run Docker locally. |
[932.98 --> 934.48] I just have a Tailscale Tunnel, |
[934.56 --> 935.88] which connects me to that host. |
[936.04 --> 938.70] And it's the same host that the CI uses. |
[938.70 --> 941.12] Now there's an improvement to be made there, |
[941.18 --> 942.94] and we'll get to that maybe at the end. |
[943.12 --> 945.00] But yeah, it's the same one. |
[945.16 --> 948.78] So if it runs locally, it will run exactly the same in CI. |
[949.22 --> 950.22] And that's really cool, I think. |
[950.58 --> 951.84] And what about this last step? |
[952.20 --> 954.58] Basically, it's the step you do when you run it locally. |
[954.94 --> 956.46] You just do a Dagger rep, |
[956.84 --> 958.96] and I presume you have an input, |
[960.04 --> 961.52] you have specified an input, |
[961.70 --> 963.60] which is a local folder. |
[964.06 --> 964.20] Yeah. |
[964.24 --> 966.74] And you don't have to specify it. |
[966.74 --> 967.14] That's right. |
[967.22 --> 968.98] So if you want to see the glue code, |
[969.06 --> 970.78] so the Dagger up, you're right. |
[970.80 --> 973.82] It's just a step which already takes some values |
[973.82 --> 974.88] that have been pre-configured. |
[975.42 --> 977.02] So those values are committed, |
[977.34 --> 978.74] including the secrets, by the way. |
[979.66 --> 981.54] I'm using this really cool thing called SOPS. |
[981.70 --> 983.12] You may have heard of it from Bozilla |
[983.12 --> 984.32] to encrypt all the secrets. |
[984.74 --> 986.76] So we have to set in terms of a secret, |
[986.98 --> 990.20] the H key for them to be able to be decrypted. |
[990.36 --> 992.30] Like if you think of it like the private key. |
[993.14 --> 995.30] And yeah, everything just works. |
[995.30 --> 996.90] So we commit secrets, right? |
[997.48 --> 998.42] We're crazy, I know. |
[999.12 --> 1000.32] No, actually it works really well. |
[1000.46 --> 1001.68] It's a done thing. |
[1001.72 --> 1003.26] And I waited for a long time to do this. |
[1003.30 --> 1003.88] I'm really excited. |
[1004.12 --> 1006.62] So this is what the glue code looks like locally. |
[1007.82 --> 1010.82] So it's basically what puts everything together. |
[1011.90 --> 1013.82] It is a make file. |
[1014.10 --> 1014.82] That's what we use. |
[1014.88 --> 1015.94] It just makes things easier. |
[1016.00 --> 1017.20] It just runs a bunch of commands. |
[1017.20 --> 1020.44] And what I would like to point out is, for example, |
[1021.22 --> 1022.72] the new CI package. |
[1022.98 --> 1024.18] So it declares new CI. |
[1024.30 --> 1024.92] This is a plan. |
[1025.22 --> 1025.72] Is that right? |
[1026.06 --> 1027.70] Is it called a plan or is it an environment? |
[1028.10 --> 1029.64] It's an environment in the current version. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.