Skip to content

Commit dd4fb76

Browse files
authored
[chore][ansible] Fix failing Windows tests (#6246)
* checkout last success, set specific vagrant version Set python action version use working 2022 box for 2019, StefanScherer/windows_2016, increase memory and set python deps Clean cache fix vagrant box versions set valid versions for vagrant boxes Different requirements.txt files for different ansible versions Use StefanScherer/windows_2019 for 2019 * Revert some github action dep pins * revert vagrant changes - memory and vm.boot_timeout * remove clean cache for VirtualBox * add back clean cache * increase memory in effort to address flakiness * increase memory for 2022 to address flakiness OOM
1 parent 6949398 commit dd4fb76

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/ansible.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,19 @@ jobs:
172172
url=$( echo "$json" | jq -r ".versions[] | select(.version == \"${box_version}\") | .providers[] | select(.name == \"virtualbox\") | .url" )
173173
wget -nv -O /tmp/vagrant.box $url
174174
175+
- name: Clean VirtualBox cache
176+
run: |
177+
# Related issues:
178+
# https://bbs.archlinux.org/viewtopic.php?id=298056
179+
# https://forums.virtualbox.org/viewtopic.php?t=112438
180+
# https://forums.virtualbox.org/viewtopic.php?t=112481
181+
echo "3" | sudo tee /proc/sys/vm/drop_caches
182+
echo "1" | sudo tee /proc/sys/vm/drop_caches
183+
184+
- name: free after clean cache
185+
run: |
186+
free -h
187+
175188
- name: Run Molecule tests.
176189
run: molecule --debug -v --base-config ./molecule/config/windows.yml test -s ${{ matrix.scenario }} -p ${{ matrix.distro }}
177190
env:

deployments/ansible/molecule/config/windows.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ driver:
99
name: virtualbox
1010
platforms:
1111
- name: "2016"
12-
box: cdaf/WindowsServer
13-
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2022.09.01}
12+
box: StefanScherer/windows_2016
13+
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2019.02.14}
1414
box_url: ${MOLECULE_VAGRANT_BOX_URL}
1515
cpus: 2
16-
memory: 4096
16+
memory: 8192
1717
provider_options:
1818
gui: false
1919
linked_clone: true
@@ -29,11 +29,11 @@ platforms:
2929
- "winrm.retry_limit = 50"
3030
- "winrm.retry_delay = 10"
3131
- name: "2019"
32-
box: gusztavvargadr/windows-server-2019-standard
33-
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-1809.0.2312}
32+
box: StefanScherer/windows_2019
33+
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2021.05.15}
3434
box_url: ${MOLECULE_VAGRANT_BOX_URL}
3535
cpus: 2
36-
memory: 4096
36+
memory: 8192
3737
provider_options:
3838
gui: false
3939
linked_clone: true
@@ -43,7 +43,7 @@ platforms:
4343
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2102.0.2312}
4444
box_url: ${MOLECULE_VAGRANT_BOX_URL}
4545
cpus: 2
46-
memory: 4096
46+
memory: 8192
4747
provider_options:
4848
gui: false
4949
linked_clone: true

0 commit comments

Comments
 (0)