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=-4.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 1E7192236B; Wed, 18 May 2022 12:54:06 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 479FE223F3; Wed, 18 May 2022 12:54:03 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by atuin.qyliss.net (Postfix) with ESMTPS id 46CF3223EB for ; Wed, 18 May 2022 12:53:59 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 763165C0120; Wed, 18 May 2022 08:53:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 18 May 2022 08:53:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1652878436; x=1652964836; bh=cTiYJ5o6lA YsCVlFAg9c1yNLMDf5sm7LKsAoXV+U2C4=; b=c+MamXbhusFvZ1utA05O5HTyUW krxl4svcL8Nz/iXanv+WBLRvA2m6jApDAC0nvY23hqF2ZgKIZBsj9nfvp8/nhju/ bXUjqHaUliBPMEE9U2980zyMoKF6f1OFP7Soabuk7uGCUU1/PQ3iuiWVVOaQm7uI xMfl+cP6Ep5vMP3XcVB9fm7AJvimYdgg+x7LQN/B3CHc3bdhwY8zqRVgapvsTbhz 8DagiJizbajX5B357lqYQFXRMlaldBwYPSqPpSiYf9i759zMKStqjLeBArFfiV0a uoV/5OIsTf4Oxc/Yo8VfwqLZJVkydIudWQmc4kBrQFNYMxCfXgRCgl6eLvRQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1652878436; x=1652964836; bh=cTiYJ5o6lAYsCVlFAg9c1yNLMDf5 sm7LKsAoXV+U2C4=; b=CMDg1/l/IEELMMnALh39aXKHGblq165H/M9hzjQf4kAb BbnWSlz+a6pS9BsLN/IKhR2EjMWrqfTllgtPkZXeRhw0J/i9rfLfp50KQ79XkWf8 1xX1Ldnq2yCSH0RsA1r71FYDH/1koWcbLYK80uvW9kh+kd2J/vnH4dWJpoL8tXGr MEt1w9wXBVxP2nBw5P4xEyEOBD+SdEeN8rvvW6m4ag3pEPji9hu5dDA+j6YXJo1O pu5fsLcJq1VDyoZlWJ6gLURrS2E6/XJu6Rzue3X+yS3LoqhAg4JkYsvFRtb6cx1X JJ5ztaETteS5U1uvRXNmFmV4O7WkPzke5XkSYb638g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheelgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeetlhihshhs rgcutfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpefhtd dutdehkeeuheeltdeutdevudeiiedtveehiefhvddvhedtffdugeeugeeikeenucffohhm rghinhepughotghkvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepqhihlhhishhssegvvhgvrdhqhihlihhsshdrnhgvth X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 May 2022 08:53:56 -0400 (EDT) Received: by eve.qyliss.net (Postfix, from userid 1000) id 4D787F4; Wed, 18 May 2022 12:53:53 +0000 (UTC) Date: Wed, 18 May 2022 12:53:53 +0000 From: Alyssa Ross To: Ville Ilvonen Subject: Re: Documentation and diagrams Message-ID: <20220518125353.cw4faxgab22r2jr5@eve> References: <165276675569.2703.7962474952768136863@atuin.qyliss.net> <20220517122508.ioizqbm6rcpk3waw@eve> <1efedd1a-739f-4569-0d97-ff3233dc4416@ecomail.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eq423aevzjmdrnnt" Content-Disposition: inline In-Reply-To: Message-ID-Hash: 4VPEWGPVMN7RQR63H37S7OA6MSHIDX4N X-Message-ID-Hash: 4VPEWGPVMN7RQR63H37S7OA6MSHIDX4N X-MailFrom: qyliss@eve.qyliss.net 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: Paco , 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: --eq423aevzjmdrnnt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 18, 2022 at 03:44:45PM +0300, Ville Ilvonen wrote: > 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/r= esources/app.asar/node_modules/electron-store/index.js:48:32) > > at Object. > (/nix/store/iqinmbk2jzl8nay42hqkbd32mbj1jzq7-drawio-18.0.6/share/drawio/r= esources/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:3= 104) > > at Object../lib/browser/init.ts > (node:electron/js2c/browser_init:185:3308) > > /build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr9= 0: > 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 Does it maybe require an X server / Wayland compositor to talk to? That would be a pain to do in the build but maybe not impossible. I know there are programs for dummy compositors out there but don't know how easy they are to use. > > 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? If we can get it running in a Nix build, I don't think closure size will be an issue. If the size becomes an issue in future, we could try running the rendering code without Electron, by running the browser version in whatever the modern equivalent of PhantomJS is, or just trying to extract the renderer code and run it in Node directly. But if we can get the Electron version running, it should be fine to use that. --eq423aevzjmdrnnt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmKE7FsACgkQ+dvtSFmy ccCFQw//TsbOzubL/YQefT9Hy2nsloV4JKe7rqze1ShTz08C3qh/sjLFh9wz/UAz TRYTUiLwDUdyh+d18X8eWHX3m0TZlnxqS4tQNoNZRo4FuklcjgarFT2vFBebcHZQ Bww61lNq8l6QoCOngf7KQlkVc/W2GwvBlNBPTesJ6d67e1g0x13/SLz3ajbiqLUB NeVhgxb4xhhAEyh5UJG6vDxpWKuP5JXcMI54DPg0/+i6Vd4gB3bcROJqj/nqCodw /k33Xj0rElMSLuWnX0RGnDkrhpJP73jvyxqrz72tauMlsxyHaoaPXSdMnRpSCAzG dHtfOOfwSd2UusIugW4Wd8U4GQ7p/wQPdXA087FcMRFh8z6jBjytvl8Xtxeowdjo sdfMGfiHFYEtRY33LvOvwUa21yfQPPa1vtii7ae+Ahe0FCbPxrzMJ2lzFjEvicG0 pmS9OODcj/b+cBjD2qGLN8UfLQQAxHl3G3c0E8oSQjjbjq7H+3thckj3wGwPOMHX a5C8g/mPm62WC9AAZ/mJe6Sh+wO1X4AIlZ0/4hQuLGiWGtfbijKwV0KMmaIVemK4 YF7jjitkbqhmQXjtq8tEeHLnjYoLhpXyXpfFaG28+VoipcQGzasDNFGNGKYWK/gO C/RyMkPWPeqbGq6Vcs4dYnbyyJHHNls6NKKaVbTLPwu1Zs0evYU= =04p2 -----END PGP SIGNATURE----- --eq423aevzjmdrnnt--