-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: create environment for every PR using Uffizzi #2262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @daramayis I'm interested in seeing how useful this could be for us. One thing is that opening lazygit on its own isn't particularly useful: typically a PR is trying to address some problem, and the expectation is that the PR adds one or more integration tests to verify the change. So I'd like to see Currently that program will compile lazygit before running it for a given integration test. If that proves too slow for our test box we could instead pre-compile lazygit and pass an env var or argument to the On a separate note, how would one typically go to the link? Would a bot post a comment on the PR with a link to the new session every time a commit is pushed? |
|
Also tagging @mark2185 and @Ryooooooga for their thoughts. Do you think this would prove useful? Thinking out loud: one potential use case is for people who want to demonstrate some bug: they could create a PR containing an integration test which demonstrates the problem, and then a contributor could verify it without needing to check out the branch. Having said that, if somebody is willing to go and create an integration test for the sake of reproduction, they'd probably be willing to just fix the issue itself. |
Exactly. I'd rather not put the burden on the reporter. What it might come handy for is maybe presenting new features, e.g. "look at these new icons", or "could you try to reproduce your bug on this branch, to see if it's fixed" for people not willing or able to build a custom branch. But that often requires a custom setup, a private repo, or something else. I dunno, I'm not quite sold on it (at least not yet), but maybe I'm not the target audience. |
5166b56 to
8cb2207
Compare
|
Hi @jesseduffield and @mark2185 , |
|
@daramayis testing that out I see visual artefacts: I assume you need to bump your xterm library or something. It's also still quite slow. Is it possible to speed it up? |
|
Thank you for the review. The visual artifacts look fixed after the image components bump. Beside of that we also updated the The preview link: https://app.uffizzi.com//github.com/daramayis/f-lazygit/pull/1 Stacktrace of random unstable tests |
|
That's looking good @daramayis . I want to trial this out for a month and then decide whether to keep it. I'll admit, at the moment I'm not confident we'll stick with it, but I also have a negativity bias so in order to compensate for that I'll give it a go. One thing I want to know: how will this actually work? Would a bot post a comment with the link upon raising a PR? Would it post a comment upon each push? If it's the latter, that will get very noisy. |
On each push — it will just edit(update) the existing comment. |
|
Sweet, so is this PR good to merge? |
|
@jesseduffield yes — it's ready to merge 🚀 |
|
Hey @jesseduffield, Friendly ping — do you have a timeline for looking at this? Thank you. |
|
@daramayis it's now merged :) sorry for the wait |
|
No problem, thank you. |

PR Description
This PR is a part of #2234 and helps demonstrate Uffizzi integration with lazygit. This will help create preview environments on all of lazygit Pull Requests and help contributors including the maintainers iterate faster on their PRs.
I have created a PR over daramayis#1 (comment) to show what it looks like to have a preview environment deployed against your PR.
You can check out the preview over here as well.
@waveywaves