Skip to content

Commit

Permalink
Remove mutes from tests that launch QEMU and require nested virtualiz…
Browse files Browse the repository at this point in the history
…ation (#700)

* fix: remove mutes from qemu tests

* fix: add user github to kvm group

* fix: ya make quotes fix, fix: remove deprecated python library

* fix: check if user exists before adding him to kvm group

* fix: remove build languages altogether
  • Loading branch information
librarian authored Mar 12, 2024
1 parent 8eecc8a commit ee32fc9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .github/actions/prepare/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ runs:
curl -4 -L https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-${OS_ARCH}.tar.xz \
| tar -xJ -C /usr/local/bin/ --strip-components=1 --no-same-owner ccache-${CCACHE_VERSION}-linux-${OS_ARCH}/ccache
ls -la /usr/local/bin/ccache
- name: add user github to kvm group if exists
shell: bash
run: |
id -u github 2>/dev/null && {
sudo usermod -a -G kvm github
id github
grep kvm /etc/group
} || echo "user github not found"
2 changes: 1 addition & 1 deletion .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ runs:
readarray -d ',' -t test_type < <(printf "%s" "${{ inputs.test_type }}")
echo "::group::ya-make-test"
sudo -E -H -u github ./ya test -k --build "${build_type}" -D'BUILD_LANGUAGES=CPP PY3 PY2 GO' \
sudo -E -H -u github ./ya test -k --build "${build_type}" \
${test_size[@]/#/--test-size=} ${test_type[@]/#/--test-type=} \
--test-threads "${{ inputs.test_threads }}" --link-threads "${{ inputs.link_threads }}" \
--cache-size 512G --do-not-output-stderrs -T \
Expand Down
22 changes: 1 addition & 21 deletions .github/config/muted_ya.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
cloud/blockstore/tests/fio/qemu-vhost-local-test *
cloud/blockstore/tests/fio/qemu-vhost-null-test *
cloud/blockstore/tests/rdma/rdma-test *
cloud/blockstore/tests/resize-disk *
cloud/disk_manager/internal/pkg/dataplane/snapshot/storage/tests tests.TestShallowCopySnapshotWithRandomFailure
cloud/disk_manager/internal/pkg/dataplane/snapshot/storage/tests tests.TestShallowCopySnapshotWithRandomFailure/store_chunks_in_s3
cloud/disk_manager/internal/pkg/dataplane/snapshot/storage/tests tests.TestShallowCopySnapshotWithRandomFailure/store_chunks_in_ydb
cloud/filestore/tests/fio_index_migration/qemu-intrahost-migration-kikimr-nemesis-test *
cloud/filestore/tests/fio_index_migration/qemu-intrahost-migration-kikimr-test *
cloud/filestore/tests/fio_index_migration/qemu-intrahost-migration-local-test *
cloud/filestore/tests/fio_index/qemu-kikimr-nemesis-test *
cloud/filestore/tests/fio_index/qemu-kikimr-test *
cloud/filestore/tests/fio_index/qemu-local-test *
cloud/filestore/tests/fio_migration/qemu-intrahost-migration-kikimr-nemesis-test *
cloud/filestore/tests/fio_migration/qemu-intrahost-migration-kikimr-test *
cloud/filestore/tests/fio_migration/qemu-intrahost-migration-local-test *
cloud/filestore/tests/fio/qemu-kikimr-nemesis-test *
cloud/filestore/tests/fio/qemu-kikimr-test *
cloud/filestore/tests/fio/qemu-local-test *
cloud/filestore/tests/fs_posix_compliance/qemu-kikimr-nemesis-test *
cloud/filestore/tests/fs_posix_compliance/qemu-kikimr-test *
cloud/filestore/tests/profile_log/qemu-kikimr-test *
cloud/filestore/tests/profile_log/qemu-local-test *
cloud/disk_manager/internal/pkg/dataplane/snapshot/storage/tests tests.TestShallowCopySnapshotWithRandomFailure/store_chunks_in_ydb
4 changes: 2 additions & 2 deletions cloud/storage/core/tools/testing/qemu/lib/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yatest.common
import yatest.common.network
import retrying
import pipes
import shlex
import tarfile

import library.python.fs as fs
Expand Down Expand Up @@ -386,7 +386,7 @@ def _prepare_test_environment(ssh, virtio):
[
"#!/bin/bash"
] + [
"export {}={}".format(k, pipes.quote(v))
"export {}={}".format(k, shlex.quote(v))
for k, v in vm_env.items()
] + [
'"$@"',
Expand Down

0 comments on commit ee32fc9

Please sign in to comment.