From b067ebb86bc3c050ac76dd144fa84c5b75aa4b0a Mon Sep 17 00:00:00 2001 From: ArkadiuszX Szczepanek Date: Fri, 21 Jul 2023 08:37:07 +0200 Subject: [PATCH] common: Update configure runner and opensuse setup scripts common: Update configure runner and opensuse setup scripts --- utils/ansible/configure-self-hosted-runner.yml | 15 +++++++++++++-- utils/ansible/opensuse-setup.yml | 3 --- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/utils/ansible/configure-self-hosted-runner.yml b/utils/ansible/configure-self-hosted-runner.yml index 40542ba3df5..8365e6b0626 100644 --- a/utils/ansible/configure-self-hosted-runner.yml +++ b/utils/ansible/configure-self-hosted-runner.yml @@ -37,7 +37,7 @@ # connection: local vars: testUser: pmdkuser - package_url: https://github.com/actions/runner/releases/download/v2.304.0/actions-runner-linux-x64-2.304.0.tar.gz + package_url: https://github.com/actions/runner/releases/download/v2.306.0/actions-runner-linux-x64-2.306.0.tar.gz runner_folder: /home/{{ testUser }}/actions-runner repo_url: https://github.com/pmem/pmdk vars_list: "{{ vars_gha.split(',') }}" @@ -59,7 +59,18 @@ remote_src: yes - name: "Change owner to {{ testUser }}" - shell: chown -R {{ testUser }} {{ runner_folder }} + shell: chown -R $(id -u {{ testUser }}):$(id -g {{ testUser }}) {{ runner_folder }} + + # Make sure the following environment variables are present in the env + # to ensure propagation to the actions-runner's environment. + - name: "Add env variables into env.sh checklist" + lineinfile: + path: "{{ runner_folder }}/env.sh" + line: " '{{ item.line }}'" + insertafter: "^varCheckList=\\(" + loop: + - line: PKG_CONFIG_PATH + - line: HOME - name: "Add runner to GHA" shell: | diff --git a/utils/ansible/opensuse-setup.yml b/utils/ansible/opensuse-setup.yml index 92a614b19df..8419b825777 100644 --- a/utils/ansible/opensuse-setup.yml +++ b/utils/ansible/opensuse-setup.yml @@ -145,9 +145,6 @@ - name: "Install valgrind from source" script: ../docker/images/install-valgrind.sh - - name: "Run the install-libndctl script with arguments" - script: ../docker/images/install-libndctl.sh tags/v70.1 - # Disable AppArmor. # AppArmor may block proper GHA runner installation and startup. # ==`Suse` condition is inherited from the original version of