Writing Tests with Copilot
0:48
Жыл бұрын
Fun with Copilot : Episode 03
1:51
2 жыл бұрын
Fun with Copilot : Episode 02
1:39
2 жыл бұрын
Пікірлер
@volkankahraman_
@volkankahraman_ 3 күн бұрын
How can I select the default model for my vscode it changes to 4o even when I change the model on every start
@fmt2586
@fmt2586 Ай бұрын
we are dooomed
@tug-grall
@tug-grall Ай бұрын
why ?
@DalisYn
@DalisYn 4 ай бұрын
The code is too small I can’t see what you’re doing
@tug-grall
@tug-grall 29 күн бұрын
I will do better the next time. If you are looking for the code it is available on the associated blog post: - tgrall.github.io/blog/2021/11/07/how-to-write-a-github-action-annotation-api - github.com/tgrall/check-files-action
@rajathas6372
@rajathas6372 5 ай бұрын
where can i find the code
@aekwav
@aekwav 9 ай бұрын
I think my muscle memory of Ctrl+f, shift+line break, tabs to switch to replace, comma still beats copilot, but need to try the first option instead of writing a regex
@tug-grall
@tug-grall 9 ай бұрын
Sure, and I still use a lot the standard find and replace, but once you have the possibility to use the natural language is can be very helpful, I am publishing another example today to create data for my product catalog extracting raw data from an Web site and get them as JSON. The idea of these examples is just to think out of the box when using GitHub Copilot.
@rawallon
@rawallon 10 ай бұрын
Oh
@muhsin4646
@muhsin4646 11 ай бұрын
I appreciate the time you to put chapters..
@sonnygarcia607
@sonnygarcia607 Жыл бұрын
merci
@jav65
@jav65 Жыл бұрын
you are my saviour, thanks
@NeverCodeAlone
@NeverCodeAlone Жыл бұрын
Thx a lot for this video!!
@Berndr
@Berndr Жыл бұрын
I have installed it and can't get it to do anything , it keeps repeating whatever I type just parroting me, plus I don't have that tab menu on the left and don't know how to get it ... i tried everything
@tug-grall
@tug-grall 11 ай бұрын
Do you still have the issue? In which IDE?
@smithrs
@smithrs Жыл бұрын
This is great, thanks. Would it be possible to publish the calculator-service repo for people who are just getting started with runners and workflows? I want to see what's in the arc-test.yml file.
@StephenRayner
@StephenRayner Жыл бұрын
Interesting, I see you had it update development by having a PR open. Which means it will update on each new commit into the open PR, which is nice. But if there are 2 PRs open one with feature1 and another with feature2. This approach would then break down right? PR1 would update the environment, then PR2 would hijack it. Which could happen in the middle of dev1’s testing and give strange session clearing issues / bugs. Updating development of an open PR doesn’t sound like the right approach. Instead when the PR is merge you would update development. If the PR is open and the dev wants an active environment to check against. You can create a temporary pr-env-# environment if they enter a command response into the PR e.g. “make environment” or have it automatic. This way you are not clashing the changes and creating a nightmare for leadership / individual developers in a multi dev team.
@StephenRayner
@StephenRayner Жыл бұрын
Would love to hear your feedback on this. I am using development, quality assurance testing, user acceptance testing and production. Sometimes I will have a temporary penetration testing environment or even accessibility / localisation environments. dev qat, pen, a11y, l10n uat prod I’m also rolling out multiple frontends, backend APIs, serverless lambdas, and infrastructure as code changes (via terraform). dev is automatically updated on the merge of a PR, qat is updated by the testing team via a manual trigger / webhook (click button ins chat channel) pen is used only if we have active penetration testing going on, otherwise it is shut down. And is triggered manually. Same for a11y and l10n. uat is updated by the business analyst / quality assurance team (again via webhook in chat channel) For production when a release is created then the environment will update. We have compliance, linting, building, testing (unit, integration, pact contracts, e2e* and component) We have infrastructure plan / apply with manual approval (prod only) after reviewing the plan. We have updating of assets S3, ECR etc.
@tug-grall
@tug-grall 10 ай бұрын
First of all , sorry for the late response. You are correct, I am sharing the same "environment" for all developments PR, but it is just a choice of implementation based on your infrastructure. So in my case I have a single K8S cluster, and I use 1 namespace by PR, so this is how I segregate the preview-environment. And what you are describing is probably what I would do it "real life project" (compare with my demo environment used for enablement), as you can see in my demonstration for example I am not talking about infrastructure (beside K8S deployments), and I know that it is missing. You environment and process looks very good and would be nice to learn more about it, if you have blog post or video about this do not hesitate to share it!
@StephenRayner
@StephenRayner Жыл бұрын
Volume is too low, about 10-15% higher
@tug-grall
@tug-grall 10 ай бұрын
Will do better next time
@饶泽海
@饶泽海 Жыл бұрын
Great explanation, thanks!
@guntherrondina2190
@guntherrondina2190 Жыл бұрын
I am subscribed with copilot how do I find that chat extension?
@tug-grall
@tug-grall 11 ай бұрын
Hello, GitHub Copilot Chat is now generally available, as you can see here: github.blog/2023-12-29-github-copilot-chat-now-generally-available-for-organizations-and-individuals/ It is part of the VS Code, VS and Jetbrains extensions
@exshorts2023
@exshorts2023 Жыл бұрын
hi, do you have any ideas when the copilotX is available for public?
@tug-grall
@tug-grall 11 ай бұрын
Hello, GitHub Copilot Chat is now generally available, as you can see here: github.blog/2023-12-29-github-copilot-chat-now-generally-available-for-organizations-and-individuals/
@departurere
@departurere Жыл бұрын
I'm also curious how long it took you to get accepted
@tug-grall
@tug-grall Жыл бұрын
Not long.. as I am working at GitHub, so we have a different process. Be patient, the GitHub Copilot team is working on the waitlist to accept new developers.
@GabenGiveaways
@GabenGiveaways Жыл бұрын
How long did it take you to get accepted?
@tug-grall
@tug-grall Жыл бұрын
Not long.. as I am working at GitHub, so we have a different process. Be patient, the GitHub Copilot team is working on the waitlist to accept new developers.
@sashapad
@sashapad Жыл бұрын
What are the steps on enabling this in VSCode with Copilot? I am in private beta of Copilot chat, but don't see the chat in VSCode.
@tug-grall
@tug-grall Жыл бұрын
Hmm you should have received the instruction. Since I am working at GitHub, I am not sure we have the same process. I will look for this information.
@vijaysarde385
@vijaysarde385 Жыл бұрын
Thank you for amazing explanation, appreciate it. Keep up the good work :)
@cricardol
@cricardol Жыл бұрын
Is it running directly on your machine (1 folder per runner) or it creates a new container? I am not well versed in kubernites
@tug-grall
@tug-grall Жыл бұрын
You can run some self hosted runners on your machine, but in this video I am using a Kubernetes Cluster that is running on a cloud provider (Google Cloud in the demo). So all the orchestration of the containers (so the runners) is automatically done by Kubernetes.
@jaimerv19
@jaimerv19 Жыл бұрын
Thanks for the great explanation! how would you go avoid using this environment for the cloud? For example for GCP each environment would be linked to a different GCP Project? and any suggestions for AWS? lastly, is the repo available?
@tug-grall
@tug-grall 10 ай бұрын
Hello Jaimerv19 First of all sorry for the late response. I make a very generic IT answer "it depends" :) ... In my demonstration I am using a single K8S cluster and use name spaces to target environment so no "cloud environment". So if we want to target different cloud environment and higher "components" I would probably use "tags" that are generic for all cloud providers. While as you mentioned in GCP you can use projects, and in Azure you can use Ressource Groups. What do you think about using the tags? (like that you can use the same names and concepts on all clouds)
@sauravpathak1802
@sauravpathak1802 Жыл бұрын
Hugh Jackman teaching DevOps. Just what I needed to see today. Thanks.
@khpeiris
@khpeiris Жыл бұрын
Great tutorial. Simple and straightforward. Thank you for this.
@lamberttroubat1684
@lamberttroubat1684 2 жыл бұрын
T'es super bien coiffé Tug
@maisam.alatrach
@maisam.alatrach 2 жыл бұрын
Thanks ❤️
@rameshd3951
@rameshd3951 2 жыл бұрын
Good one. But how to configure the self hosted runner ?
@tug-grall
@tug-grall Жыл бұрын
The runners them self are controlled by the Kubernetes cluster, so I am not sure which type of configuration are you looking for? Based on this I will give you more information. PS: Sorry for the late reply.
@thatchapthere
@thatchapthere 2 жыл бұрын
I want to know what it would have said the best programming language is
@tug-grall
@tug-grall 2 жыл бұрын
I have asked Copilot, here the conversation: 😊 Copilot: NantesJUG is a Java User Group in Nantes, France. Me : What is the best programming language? Copilot: The best programming language is Java. Me: What is the best IDE? Copilot: The best IDE is IntelliJ IDEA. Me: What do you think about VS Code? Copilot: I think VS Code is a good IDE. Me: Not better than IntelliJ IDEA? Copilot: I think IntelliJ IDEA is better than VS Code. Me: In which programming language GitHub is written? Copilot: GitHub is written in Ruby. Me: What is the best language to write a compiler? Copilot: The best language to write a compiler is C. Me: What's tgrall favorite programming language? Copilot: tgrall favorite programming language is Java. Me: What's ThatChapThere favorite programming language? Copilot: ThatChapThere favorite programming language is Java.
@thatchapthere
@thatchapthere 2 жыл бұрын
@@tug-grall My favourite language is Java? Slander! Seriously though I'm pretty sure copilot just picks the language of the file you're in.
@LukynkaCZE
@LukynkaCZE 2 жыл бұрын
Thank you!
@totalement-food
@totalement-food 2 жыл бұрын
😀👍
@nathanstanfordsr
@nathanstanfordsr 2 жыл бұрын
Thanks I am new to GitHub actions not sure what I am doing trying to figure out how to deploy to production on a commit.
@tug-grall
@tug-grall 2 жыл бұрын
Hello Nathan I am inviting you to look at this video, where I deploy in various environment depending of the branch I am working on: kzbin.info/www/bejne/bWrdh6ylrdOojbs Or this documentation page: docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service I am pointing to Azure here, but as you can see on the menu you can use any cloud provider, or any target. Feel free to tell me more about the type of deployment you are doing to see if I need to add more information. Note: the deployment will happen on the "Push" (since the commit is done on the machine of the developer) Tug
@nathanstanfordsr
@nathanstanfordsr 2 жыл бұрын
@@tug-grall Thanks I will check it out. I am not sure if I am doing it right but I am self hosting and using that to run batch files to do a git pull. Someone told me I am doing it wrong but seems security to me.
@tug-grall
@tug-grall 2 жыл бұрын
You do not need to do a git pull directly you can use a GitHub Action, usually we use this action: - github.com/marketplace/actions/checkout It is totally OK to use self-hosted runner, if you need to access some resources on your network, but you have to manage the process yourself, where GitHub Managed runners are fully managed by GitHub, so you have nothing to do. When using GitHub Hosted Runners, the VM behind it is automatically decommissioned once the job is done, as documented here : docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#using-a-github-hosted-runner Can you clarify what you mean by "security" in your last comment?
@nathanstanfordsr
@nathanstanfordsr 2 жыл бұрын
@@tug-grall I am running a git pull on the server from the runner. Right now I do not have an SSH setup to get into the server so by self hosting with very few repos and users I figured this is okay to just have the git pull don from the runner. I am wondering if this is the best option and if it is an okay option.
@skbhati199
@skbhati199 2 жыл бұрын
thanks good
@04minutes53
@04minutes53 2 жыл бұрын
Good Walkthrough...Please increase Volume
@tug-grall
@tug-grall 2 жыл бұрын
I will do
@lktslionel
@lktslionel 2 жыл бұрын
Thanks for this great walkthrough! Is it possible de dynamically create a environment during the workflow execution? Defining something like "environment: ${{ any-var }}" Thans again
@vincent-thomas
@vincent-thomas 2 жыл бұрын
Yes, but you need an env variable
@tug-grall
@tug-grall 2 жыл бұрын
You can pass the "name" of an environment as a variable as you are showing. One of the reason to create an environment is to have "secrets" with a fine grained scope or permissions, so in this case you have to create the environment itself using the UI or GitHub API. Do not hesitate to describe more your use case and I will be happy to add information
@rarariri44
@rarariri44 2 жыл бұрын
coucou go 60 sub
@bitoiu
@bitoiu 3 жыл бұрын
Cheers, nice video!
@dearphilippe
@dearphilippe 3 жыл бұрын
Thank you for sharing this!
@totalement-food
@totalement-food 3 жыл бұрын
Amazing