benorbital
05/20/2024, 4:47 PMprefect.yaml
(with different names to the production deployments). This approach seems inefficient, and does not play nicely with run_deployment
, which will need the names of these test deployments.
Another way of solving this is to override the git branch at runtime (without creating any new deployments). I believe this can be done by overriding job_variables
when you launch a run.
Is this the correct route to go down? My problem feels relatively standard, and yet this solution feels hidden and not well-maintained.
I say "hidden" because in the UI you have to select 'custom run' and then 'additional options' to find it. And I say "not well-maintained" because I have encountered several bugs with overriding job variables as acknowledged here and here.
I am very curious how other people are testing their deployments inside git branches.Chris White
benorbital
05/20/2024, 5:26 PMrun_deployment
in my code, so automating that would be wonderful.
I think it's still the case that the github issues I linked to make it tricky to specify environment variables at runtime (especially via the CLI).
Overall, I am loving prefect! ❤️ The git integration is the biggest issue i've had so farChris White
benorbital
05/20/2024, 5:43 PMprefect deployment run
, I have some easy way of specifying a git branch.
Potentially it would be built into the git clone step that exists i.e this:
pull:
- prefect.deployments.steps.git_clone:
repository: <https://gitlab.com/org/my-private-repo.git>
access_token: "{{ prefect.blocks.secret.my-block-name }}"
The other (admittedly more demanding) ask is that subflows executed with run_deployment
can inherit this git branch automatically.benorbital
05/20/2024, 5:44 PMChris White
benorbital
05/20/2024, 5:48 PMif we expose branching in a more first classThis would also be great for me, as multi-infrastructure branching is the main reason I started using prefect
Chris White
benorbital
05/20/2024, 5:56 PMChris White
<mailto:chris@prefect.io|chris@prefect.io>
)benorbital
05/28/2024, 9:34 AMrun_deployment
, as I discovered here: https://prefect-community.slack.com/archives/CL09KU1K7/p1716576242919739Chris White