From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id DEC246ECDB; Thu, 1 Oct 2026 04:07:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DEC246ECDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1790816845; bh=PXDKYR9gi0rz9N8lewDwmGLljZontTEj7qPEi/8GAwg=; h=To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=YWVtkwF5D4SaYQ4ycw8k/EOHw/pj5GZCjhDcHxAOmb+HIDYHM/wqUORH6MxGOax8K K3fxRl+um15EvbUF5t7cgBMyI6D+dyVLefAU81RrsCkA9WTSQJO1K+4UmeMdbo1fbb H+VGP/0aBH2waOs+mjlKRIuiOyneSLFC3EHMOhF4= Received: from send220.i.mail.ru (send220.i.mail.ru [95.163.59.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 06ADE6ECDB for ; Thu, 1 Oct 2026 04:06:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 06ADE6ECDB Received: by exim-smtp-65f8d7bcb-hjg96 with esmtpa (envelope-from ) id 1xC5GA-00000000Fem-0G9H; Thu, 01 Oct 2026 04:06:54 +0300 To: Sergey Kaplun , Sergey Bronnikov Cc: tarantool-patches@dev.tarantool.org, Alexander Turenko Date: Thu, 1 Oct 2026 04:06:05 +0300 Message-ID: <8b3a9c3bc1cae8b15954e8925fba9d751a4f051d.1790815412.git.alexander.turenko@tarantool.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD94A6CEEF30A52BB459E56EB6229CD79147DE2B315D40F862B182A05F538085040D1311EC1A368818D3DE06ABAFEAF670504F36484C7B3BD988EC2B529BA6B3827679C55F6EEB1E644 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7B9D6DADD6B53929DEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637AC83A81C8FD4AD23D82A6BABE6F325AC2E85FA5F3EDFCBAA7353EFBB5533756681E03DB2D92E72D15D4FDB0E4610666D8195DACA6A71CE28300106DCC53A8169389733CBF5DBD5E9D5E8D9A59859A8B6A70DDFFB3186CBC5CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB8090A508E0FED6299176DF2183F8FC7C0BF77E1FFDBD4BA85CD04E86FAF290E2DB606B96278B59C421DD303D21008E29813377AFFFEAFD269176DF2183F8FC7C0D75EB778CE7D8A0C68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7CB59C7783CC88FA9643847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A5E3EC8CDAA421DF7E5002B1117B3ED696576275E7B10133BDC638DF663A625AFA823CB91A9FED034534781492E4B8EEADABF80F987DAEDACBC79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0AD73CAD6646DEDE191716CD42B3DD1D34CAB70F9BE574AE9C625B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D65991784460D89EE6016F1FF9F44AD98341704943BE02AE20B3CA15361B56252EEE9DCF15BBA9257EFDB8341EE9D5BE9A0A45D0DF8FFC080D5A16878DBEF7E9448A9C279EE5115F61DCC7CEAA0681F5848F4C41F94D744909CE8C38AF1336F30FB31612CB4B0C47B912DD8663F6CFD812E6ED6A17656DB59BCAD427812AF56FC65B X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXOcIETfglQORZ0zpDET4Zrk3igikrdHlWABDYFnON8aNtEW4g7DlDWI= X-Mailru-Sender: B47E023F65B285261C1D5576E0A1F3DBED2C0C8C3B36EE14B951B70A5BD4BD8E84DEBB472E4BAC43CCBAC221E57027EFA49F40704E9220DFAAFFD2005305549D18B10D50888C45584E6C5BCC4624BC7972D6B4FCE48DF648AE208404248635DF X-Mras: Ok Subject: [Tarantool-patches] [PATCH 1/2] ci: use sudo to install packages if not root X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Turenko via Tarantool-patches Reply-To: Alexander Turenko Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" The setup-linux and setup-debuggers actions call `apt` without `sudo`, which works on our self-hosted runners: the jobs run there as root. The next commit moves the ARM64 jobs to GitHub-hosted runners, where the steps run as the runner's regular user, so we have to call `sudo` there. If the current user is already `root`, `sudo` is not called: this way we don't depend on its presence when we don't need it. Drafted by an LLM, conducted and corrected by the commit author. --- .github/actions/setup-debuggers/action.yml | 6 ++++-- .github/actions/setup-linux/action.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-debuggers/action.yml b/.github/actions/setup-debuggers/action.yml index c34d4502..e2ac09db 100644 --- a/.github/actions/setup-debuggers/action.yml +++ b/.github/actions/setup-debuggers/action.yml @@ -7,6 +7,8 @@ runs: uses: ./.github/actions/setup-linux - name: Install dependencies for the tests run: | - apt -y update - apt install -y python3 gdb lldb + # GitHub-hosted runners run the steps as a regular user. + SUDO=$([ "$(id -u)" = 0 ] || echo sudo) + ${SUDO} apt -y update + ${SUDO} apt install -y python3 gdb lldb shell: bash diff --git a/.github/actions/setup-linux/action.yml b/.github/actions/setup-linux/action.yml index f0171b83..8f13940a 100644 --- a/.github/actions/setup-linux/action.yml +++ b/.github/actions/setup-linux/action.yml @@ -14,6 +14,8 @@ runs: shell: bash - name: Install build and test dependencies run: | - apt -y update - apt -y install cmake gcc make ninja-build perl + # GitHub-hosted runners run the steps as a regular user. + SUDO=$([ "$(id -u)" = 0 ] || echo sudo) + ${SUDO} apt -y update + ${SUDO} apt -y install cmake gcc make ninja-build perl shell: bash -- 2.55.0