nixbot

builds

failed aarch64-darwin.pkgs-formatter-check build #38 · raw · ·

1this derivation will be built:2  /nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv3building '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one'4building '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv'5treefmt-check> treefmt v2.5.0traversed 157 files6treefmt-check> emitted 93 files for processing7treefmt-check> formatted 93 files (2 changed) in 1.656s8treefmt-check>  M packages/harvest-invoicer/src/harvest_invoicer/app.py9treefmt-check>  M packages/harvest-invoicer/tests/test_app.py10treefmt-check> diff --git a/packages/harvest-invoicer/src/harvest_invoicer/app.py b/packages/harvest-invoicer/src/harvest_invoicer/app.py11treefmt-check> index 9b06d9b..ffa4806 10064412treefmt-check> --- a/packages/harvest-invoicer/src/harvest_invoicer/app.py13treefmt-check> +++ b/packages/harvest-invoicer/src/harvest_invoicer/app.py14treefmt-check> @@ -406,6 +406,7 @@ def create_app(15treefmt-check>          clients_map: dict[str, dict[str, str]] = app.state["clients"]  # type: ignore[attr-defined]16treefmt-check>          key = request.form.get("client_key", "").strip()17treefmt-check>          entry = clients_map.get(key)18treefmt-check> +19treefmt-check>          def rows_and_totals() -> Response:20treefmt-check>              return Response(21treefmt-check>                  _render_rows(inv) + _render_totals(inv), content_type="text/html"22treefmt-check> diff --git a/packages/harvest-invoicer/tests/test_app.py b/packages/harvest-invoicer/tests/test_app.py23treefmt-check> index 310115e..0996406 10064424treefmt-check> --- a/packages/harvest-invoicer/tests/test_app.py25treefmt-check> +++ b/packages/harvest-invoicer/tests/test_app.py26treefmt-check> @@ -420,9 +420,7 @@ class TestBillToSwitch:27treefmt-check>          assert b"Domestic S.L." in preview.data28treefmt-check>          assert b"Numtide Sarl" not in preview.data29treefmt-check>  30treefmt-check> -    def test_switch_applies_vat_and_extras_keeps_lines(31treefmt-check> -        self, tmp_path: Path32treefmt-check> -    ) -> None:33treefmt-check> +    def test_switch_applies_vat_and_extras_keeps_lines(self, tmp_path: Path) -> None:34treefmt-check>          app = self._make_app(tmp_path)35treefmt-check>          with app.test_client() as c:36treefmt-check>              # Edit a harvest line first: the edit must survive the switch37error: build of '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv' on 'ssh-ng://customer@mac02.m.ntd.one' failed: Cannot build '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv'.38       Reason: builder failed with exit code 1.39       Output paths:40         /nix/store/l79h6rz9v6qdhv8c4qg99pdk4diydixf-treefmt-check41       Last 25 log lines:42       > --- a/packages/harvest-invoicer/src/harvest_invoicer/app.py43       > +++ b/packages/harvest-invoicer/src/harvest_invoicer/app.py44       > @@ -406,6 +406,7 @@ def create_app(45       >          clients_map: dict[str, dict[str, str]] = app.state["clients"]  # type: ignore[attr-defined]46       >          key = request.form.get("client_key", "").strip()47       >          entry = clients_map.get(key)48       > +49       >          def rows_and_totals() -> Response:50       >              return Response(51       >                  _render_rows(inv) + _render_totals(inv), content_type="text/html"52       > diff --git a/packages/harvest-invoicer/tests/test_app.py b/packages/harvest-invoicer/tests/test_app.py53       > index 310115e..0996406 10064454       > --- a/packages/harvest-invoicer/tests/test_app.py55       > +++ b/packages/harvest-invoicer/tests/test_app.py56       > @@ -420,9 +420,7 @@ class TestBillToSwitch:57       >          assert b"Domestic S.L." in preview.data58       >          assert b"Numtide Sarl" not in preview.data59       >  60       > -    def test_switch_applies_vat_and_extras_keeps_lines(61       > -        self, tmp_path: Path62       > -    ) -> None:63       > +    def test_switch_applies_vat_and_extras_keeps_lines(self, tmp_path: Path) -> None:64       >          app = self._make_app(tmp_path)65       >          with app.test_client() as c:66       >              # Edit a harvest line first: the edit must survive the switch67       For full logs, run:68         nix log /nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv69error: Cannot build '/nix/store/hfc6380qgqsqig9igvzkim935bapzxyb-treefmt-check.drv'.70       Reason: builder failed with exit code 1.71       Output paths:72         /nix/store/l79h6rz9v6qdhv8c4qg99pdk4diydixf-treefmt-check