tarantool / setup-tarantool

Setup Tarantool for use with Github Actions
MIT License
9 stars 2 forks source link

Support self-hosted Linux runners (non-Ubuntu Linux distributions) #11

Open Totktonada opened 3 years ago

Totktonada commented 3 years ago

At the moment this action supports only Ubuntu, which is used on GitHub hosted runners. Not sure about Debian.

AFAIU, in context of self-hosted runners a GitHub Actions runner may be run not only on Ubuntu, but on another Linux distribution. We have apt / yum repositories for Debian, Ubuntu, CentOS, Fedora, openSUSE. It looks worthful to support installing from them.

Please, highliht your interest if you would use this action on self-hosted non-Ubuntu runners or have a problem on self-hosted Ubuntu runners (add an emoji or a comment with your wishes).

RunsFor commented 3 years ago

It seems, it doesn't even support ubuntu self-hosted runners. I've try to use setup-tarantool on my ubuntu self-hosted runner within matrix setup:

2021-04-01T15:51:08.0219911Z ##[section]Starting: Request a runner to run this job
2021-04-01T15:51:08.0764014Z Found online and idle self-hosted runner in current repository that matches the required labels: 'self-hosted , Linux'
2021-04-01T15:51:08.1479552Z ##[section]Finishing: Request a runner to run this job
2021-04-01T15:51:15.5936578Z Current runner version: '2.277.1'
2021-04-01T15:51:15.5941791Z Runner name: 'tarantoolgithub-actions-environments-runner'
2021-04-01T15:51:15.5943006Z Runner group name: 'Default'
2021-04-01T15:51:15.5945270Z Machine name: 'tarantoolgithub-actions-environments-runner'
2021-04-01T15:51:15.5951303Z ##[group]GITHUB_TOKEN Permissions
2021-04-01T15:51:15.5953004Z Actions: write
2021-04-01T15:51:15.5953450Z Checks: write
2021-04-01T15:51:15.5953870Z Contents: write
2021-04-01T15:51:15.5954327Z Deployments: write
2021-04-01T15:51:15.5954781Z Issues: write
2021-04-01T15:51:15.5955194Z Metadata: read
2021-04-01T15:51:15.5955716Z OrganizationPackages: write
2021-04-01T15:51:15.5956258Z Packages: write
2021-04-01T15:51:15.5956717Z PullRequests: write
2021-04-01T15:51:15.5957262Z RepositoryProjects: write
2021-04-01T15:51:15.5957820Z SecurityEvents: write
2021-04-01T15:51:15.5958287Z Statuses: write
2021-04-01T15:51:15.5959023Z ##[endgroup]
2021-04-01T15:51:15.5962880Z Prepare workflow directory
2021-04-01T15:51:15.6657683Z Prepare all required actions
2021-04-01T15:51:15.6669852Z Getting action download info
2021-04-01T15:51:16.1462176Z Download action repository 'tarantool/setup-tarantool@v1'
2021-04-01T15:51:17.3403698Z ##[group]Run tarantool/setup-tarantool@v1
2021-04-01T15:51:17.3404431Z with:
2021-04-01T15:51:17.3405029Z   tarantool-version: 2.4
2021-04-01T15:51:17.3405512Z ##[endgroup]
2021-04-01T15:51:18.3239955Z ##[group]Checking latest tarantool version
2021-04-01T15:51:18.3241865Z HTTP GET https://download.tarantool.org/tarantool/release/2.4/ubuntu/dists/focal/main/binary-amd64/Packages
2021-04-01T15:51:18.3242904Z 2.4.3.0.g5180d98f1-1
2021-04-01T15:51:18.3243574Z ##[endgroup]
2021-04-01T15:51:19.6116236Z Received 22 of 22 (100.0%), 0.0 MBs/sec
2021-04-01T15:51:19.6122343Z Cache Size: ~0 MB (22 B)
2021-04-01T15:51:19.6143040Z [command]/usr/bin/tar --use-compress-program zstd -d -xf /opt/runner/_work/_temp/f889166f-6d31-4324-ae1a-e5fa7bdf892a/cache.tzst -P -C /opt/runner/_work/github-actions-environments/github-actions-environments
2021-04-01T15:51:19.6216539Z Cache restored from key: tarantool-setup-focal-2.4.3.0.g5180d98f1-1
2021-04-01T15:51:19.6225725Z [command]/usr/bin/sudo rsync -aK cache-tarantool/ /
2021-04-01T15:51:19.6718534Z rsync: change_dir "/opt/runner/_work/github-actions-environments/github-actions-environments//cache-tarantool" failed: No such file or directory (2)
2021-04-01T15:51:19.7744963Z rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
2021-04-01T15:51:19.7771254Z ##[error]The process '/usr/bin/sudo' failed with exit code 23
2021-04-01T15:51:19.7812677Z [command]/usr/bin/tarantool --version
2021-04-01T15:51:19.7898177Z Tarantool 2.6.2-0-g34d504d7d
2021-04-01T15:51:19.7900238Z Target: Linux-x86_64-RelWithDebInfo
2021-04-01T15:51:19.7901964Z Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=ON
2021-04-01T15:51:19.7903278Z Compiler: /usr/bin/cc /usr/lib/ccache/g++
2021-04-01T15:51:19.7908118Z C_FLAGS:-g -O2 -fdebug-prefix-map=/build/tarantool-2.6.2.0=. -specs=/usr/share/dpkg/no-pie-compile.specs -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-gnu-alignof-expression -fno-gnu89-inline -Wno-cast-function-type
2021-04-01T15:51:19.7917371Z CXX_FLAGS:-g -O2 -fdebug-prefix-map=/build/tarantool-2.6.2.0=. -specs=/usr/share/dpkg/no-pie-compile.specs -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type
2021-04-01T15:51:19.8105013Z Cleaning up orphan processes

workflow example:

  test:
    strategy:
      matrix:
        tarantool:
          - '2.4'
          - '2.5'
          - '2.6'
          - '2.7'
          - '2.8'
    runs-on: [self-hosted, Linux]
    needs: dependencies
    steps:
      - uses: tarantool/setup-tarantool@v1
        with:
          tarantool-version: ${{ matrix.tarantool }}

Runners image is almost identical to github-hosted runner. Here is the link to actions run.

rosik commented 3 years ago

Notice: self-hosted runners don't usually provide a clean environment. It means apt/yum install may have negative consequences.