Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: format

+28 -8
+4 -1
apps/nix/test/fixtures/derivation.nix
··· 4 4 name = "test-derivation"; 5 5 system = builtins.currentSystem; 6 6 builder = "/bin/sh"; 7 - args = [ "-c" "echo hello > $out" ]; 7 + args = [ 8 + "-c" 9 + "echo hello > $out" 10 + ]; 8 11 }
+8 -2
apps/nix/test/fixtures/nested.nix
··· 6 6 name = "hello"; 7 7 system = builtins.currentSystem; 8 8 builder = "/bin/sh"; 9 - args = [ "-c" "echo hello > $out" ]; 9 + args = [ 10 + "-c" 11 + "echo hello > $out" 12 + ]; 10 13 }; 11 14 world = derivation { 12 15 name = "world"; 13 16 system = builtins.currentSystem; 14 17 builder = "/bin/sh"; 15 - args = [ "-c" "echo world > $out" ]; 18 + args = [ 19 + "-c" 20 + "echo world > $out" 21 + ]; 16 22 }; 17 23 }; 18 24
+5 -2
apps/sower/lib/sower_web/live/deployment_live/show.ex
··· 145 145 |> redirect(to: ~p"/deployments")} 146 146 147 147 deployment -> 148 - deployment = Sower.Repo.preload(deployment, [seed_deployments: :seed, subscriptions: [], agent: []]) 148 + deployment = 149 + Sower.Repo.preload(deployment, seed_deployments: :seed, subscriptions: [], agent: []) 149 150 150 151 {:noreply, 151 152 socket ··· 161 162 {:noreply, socket} 162 163 163 164 deployment -> 164 - deployment = Sower.Repo.preload(deployment, [seed_deployments: :seed, subscriptions: [], agent: []]) 165 + deployment = 166 + Sower.Repo.preload(deployment, seed_deployments: :seed, subscriptions: [], agent: []) 167 + 165 168 {:noreply, assign(socket, :deployment, deployment)} 166 169 end 167 170 end
+2 -1
apps/sower/test/sower_web/live/deployment_live_show_test.exs
··· 25 25 26 26 # Write a log to the seed_deployment 27 27 seed_deployment = 28 - Sower.Repo.get_by!(Sower.Orchestration.SeedDeployment, 28 + Sower.Repo.get_by!( 29 + Sower.Orchestration.SeedDeployment, 29 30 [deployment_id: deployment.id, seed_id: seed.id], 30 31 skip_org_id: true 31 32 )
+4 -1
apps/sower_agent/lib/sower_agent/deployer.ex
··· 26 26 |> upgrade(upgrade_opts) 27 27 |> deployment_result() 28 28 29 - maybe_reboot(deployment, result, [{:report_seed_result_fun, report_seed_result_fun} | reboot_opts]) 29 + maybe_reboot(deployment, result, [ 30 + {:report_seed_result_fun, report_seed_result_fun} | reboot_opts 31 + ]) 32 + 30 33 result 31 34 end 32 35
+5 -1
apps/sower_agent/test/sower_agent/deployer_test.exs
··· 447 447 assert_received {:seed_result, :success, _activation_lines} 448 448 # Second call: reboot decision appended to last seed 449 449 assert_received {:seed_result, nil, reboot_lines} 450 - assert Enum.any?(reboot_lines, &(&1 =~ "[sower]" and &1 =~ "reboot initiated: policy_always")) 450 + 451 + assert Enum.any?( 452 + reboot_lines, 453 + &(&1 =~ "[sower]" and &1 =~ "reboot initiated: policy_always") 454 + ) 451 455 end 452 456 453 457 test "includes reboot skipped in last seed log for failed deployment" do