Speed up tests in android_sdk module (#10818)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.16) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run

changed the dependency that is used to test the functionality in android_sdk module. The previous dependency was ~100MB, the current one is ~6MB. This should speed up the tests a bit and reduce the traffic.
This commit is contained in:
Stanislav Shamilov 2025-09-12 20:20:18 +03:00 committed by GitHub
commit d2e2395ae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,35 +8,35 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Install build-tools;34.0.0
- name: Install skiaparser;1
android_sdk:
accept_licenses: true
name: build-tools;34.0.0
name: skiaparser;1
state: present
register: build_tools_installed
register: skiaparser_1_installed
- name: Install build-tools;34.0.0 second time
- name: Install skiaparser;1 second time
android_sdk:
name: build-tools;34.0.0
name: skiaparser;1
state: present
register: build_tools_installed2
register: skiaparser_1_installed_2
- name: Stat build-tools
- name: Stat skiaparser;1
stat:
path: "{{ android_sdk_location }}/build-tools/34.0.0"
register: build_tools_34_0_0
path: "{{ android_sdk_location }}/skiaparser/1"
register: skiaparser_1_stat
- name: Delete build-tools;34.0.0
- name: Delete skiaparser;1
android_sdk:
name: build-tools;34.0.0
name: skiaparser;1
state: absent
register: build_tools_deleted
register: skiaparser_1_deleted
- name: Delete build-tools;34.0.0 second time
- name: Delete skiaparser;1 second time
android_sdk:
name: build-tools;34.0.0
name: skiaparser;1
state: absent
register: build_tools_deleted2
register: skiaparser_1_deleted_2
- name: Download old platform-tools
unarchive:
@ -59,7 +59,7 @@
- name: Install a package to a new root
android_sdk:
name: build-tools;34.0.0
name: skiaparser;1
accept_licenses: true
state: present
sdk_root: "{{ remote_tmp_dir }}"
@ -67,12 +67,12 @@
- name: Check package is installed
stat:
path: "{{ remote_tmp_dir }}/build-tools/34.0.0"
path: "{{ remote_tmp_dir }}/skiaparser/1"
register: new_root_package_stat
- name: Install a package from canary channel
android_sdk:
name: build-tools;33.0.0
name: skiaparser;1
state: present
channel: canary
register: package_canary
@ -80,11 +80,11 @@
- name: Run tests
assert:
that:
- build_tools_34_0_0.stat.exists
- build_tools_installed is changed
- build_tools_installed2 is not changed
- build_tools_deleted is changed
- build_tools_deleted2 is not changed
- skiaparser_1_stat.stat.exists
- skiaparser_1_installed is changed
- skiaparser_1_installed_2 is not changed
- skiaparser_1_deleted is changed
- skiaparser_1_deleted_2 is not changed
- platform_tools_present is not changed
- platform_tools_updated is changed
- new_root_package is changed