From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id DE11322304; Wed, 18 May 2022 12:45:02 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id A452622300; Wed, 18 May 2022 12:44:59 +0000 (UTC) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by atuin.qyliss.net (Postfix) with ESMTPS id 5401D2227E for ; Wed, 18 May 2022 12:44:57 +0000 (UTC) Received: by mail-lj1-x22e.google.com with SMTP id i23so2385230ljb.4 for ; Wed, 18 May 2022 05:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5vdnQwYxQRKdrXoX8QWfGGyn3D1t4BuCVvLDfoVPOFI=; b=Xz3ZrW8eeWPlZZq4NtKrjLFMHMpNhU3g4N5HNpQatNVNjuruYejS5CiZU0lnkJT6UT OUe6oLv+7k1IjBZiZQISKjwSjhKqo/BEYAl2HMic2L619ly8spzg+i5oNA3CCIGkhZw8 dJ1DJO7eRv5ez+vIGOl/njMpi4O+9ndFq7/QsTfDlxWodFOVBxNODQrYlO0ndRIWCmMt XbLGkzgAhlkgVphmNkueJnTuYhtGJSfe68xnawinlRIkaDyeTWtMD46PRhU6pQP4qUhG V0YDpe9Rq8e6UlHqjZcPwISEwPgbuV1qaJQYgENxJrYCwZxslRu8nlj+6xFmQFb8ZNAk QHuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5vdnQwYxQRKdrXoX8QWfGGyn3D1t4BuCVvLDfoVPOFI=; b=Y7Bq64kUXRdfr808xRKjfXjtBTwr6wUsIjRdOZKs+y8PeV1RAkuWWMBgMfkK9mVXxT N9GAKRhuMfxM/U/GfJLenyTDkJUP/tztB5EdWCbJ+gVISaxKKNXFigUXnczt03x0nD9T id7+ffSAinpYsZQuHTDoFXi1KgODMmDPf3DA4ynPrH1aUuMWksQghiaA5Ccz9ftQmy1M y7JPdYOJwqn7haEdXvm2ticJ5diH4XYnZTqLEbziJ1Y99wlqoTZxwmMNPcnYRG08gYn9 BpD7qk+1fgTYWS70hRvXE5JrjCtH5+Pn4DXeJtL3lrc7fT/ruTqjmb+E4kSvs6RIu3ow qDXg== X-Gm-Message-State: AOAM53143f8Hnz0rvD14TjSKIqMkALeX7k866oGmdGE8hc/ZG4KjnB0k MxbNVEJjmPpX/8sy7QaeOzkxvHpd6yfPSUOitAKbOA== X-Google-Smtp-Source: ABdhPJz9QnNE8KHHvdW3m/DGzsHU6Yro3h0BMHF1NowcLZUOTH2lrgEIYEl+QYHhOdl63Lbm9VzTRdOo0lhWCdgVSt0= X-Received: by 2002:a2e:a37c:0:b0:24f:1141:84f8 with SMTP id i28-20020a2ea37c000000b0024f114184f8mr17826844ljn.255.1652877896019; Wed, 18 May 2022 05:44:56 -0700 (PDT) MIME-Version: 1.0 References: <165276675569.2703.7962474952768136863@atuin.qyliss.net> <20220517122508.ioizqbm6rcpk3waw@eve> <1efedd1a-739f-4569-0d97-ff3233dc4416@ecomail.io> In-Reply-To: <1efedd1a-739f-4569-0d97-ff3233dc4416@ecomail.io> From: Ville Ilvonen Date: Wed, 18 May 2022 15:44:45 +0300 Message-ID: Subject: Re: Documentation and diagrams To: Paco Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 7DWPEXL47ZJVQNE6UFCW5DC3PVWUEGA7 X-Message-ID-Hash: 7DWPEXL47ZJVQNE6UFCW5DC3PVWUEGA7 X-MailFrom: ville.ilvonen@unikie.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-discuss.spectrum-os.org-0; header-match-discuss.spectrum-os.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Alyssa Ross , discuss@spectrum-os.org X-Mailman-Version: 3.3.5 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, May 17, 2022 at 10:00 PM Paco wrote: > > Hi all, > > > One question about draw.io: is there a tool we could use in the build > > process of our documentation to render the .drawio files to SVG, so we > > don't have to check in the SVG files? > > drawio supports being called on the command-line like this: > > drawio in.drawio --export --output out.png # or svg Yes, and no. Yes, command line but no in a headless environment. It was easy to test this before "jekyll build" with "drawio in.drawio --export --output test.svg" However, [vilvo@blop:~/dev/spectrum/Documentation]$ nix-build -I nixpkgs=3D../../nixpkgs-spectrum ... error: builder for '/nix/store/r8xf2kpba673ngi2fck4xsyvyc6pd3j1-spectrum-docs.drv' failed with exit code 133; last 10 log lines: > at new ElectronStore (/nix/store/iqinmbk2jzl8nay42hqkbd32mbj1jzq7-drawio-18.0.6/share/drawio/res= ources/app.asar/node_modules/electron-store/index.js:48:32) > at Object. (/nix/store/iqinmbk2jzl8nay42hqkbd32mbj1jzq7-drawio-18.0.6/share/drawio/res= ources/app.asar/electron.js:15:15) > at Module._compile (node:internal/modules/cjs/loader:1116:14) > at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) > at Module.load (node:internal/modules/cjs/loader:988:32) > at Module._load (node:internal/modules/cjs/loader:829:12) > at Function.c._load (node:electron/js2c/asar_bundle:5:13343) > at Object. (node:electron/js2c/browser_init:185:310= 4) > at Object../lib/browser/init.ts (node:electron/js2c/browser_init:185:3308) > /build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 1: 5 Trace/breakpoint trap (core dumped) drawio in.drawio --export --output test.svg Issue is the same with drawio versions: - version 15.7.3 from nixpkgs - version 17.4.2 from nixpkgs-spectrum - latest rpm available - 18.0.6 from updated nixpkgs-spectrum > but it's a huge dependency, as it's an Electron app, installing it > requires ~400 MB=E2=80=A6 This could be managed with caching but that's not the issue. People seem to have worked around the issue in CI with solutions like https://hub.docker.com/r/tomkludy/drawio-renderer I did not test it yet but would this be ok for a CI pipeline? Best, -Ville