Skip to content

Commit aaa123a

Browse files
authored
Merge pull request #2029 from twangboy/update_bootstrap
Update windows bootstrap for new repo
2 parents 0d4b031 + 3316de3 commit aaa123a

File tree

14 files changed

+184
-867
lines changed

14 files changed

+184
-867
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,6 @@ jobs:
145145

146146

147147

148-
windows-2019:
149-
name: Windows 2019
150-
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
151-
uses: ./.github/workflows/test-windows.yml
152-
needs:
153-
- lint
154-
- generate-actions-workflow
155-
with:
156-
distro-slug: windows-2019
157-
display-name: Windows 2019
158-
timeout: 20
159-
runs-on: windows-2019
160-
instances: '["stable-3006", "stable-3006-8", "stable-3007", "stable-3007-1", "latest"]'
161-
162-
163148
windows-2022:
164149
name: Windows 2022
165150
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
@@ -218,20 +203,6 @@ jobs:
218203
instances: '["stable-3006", "onedir-3006", "stable-3006-8", "stable-3007", "onedir-3007", "stable-3007-1", "latest", "default"]'
219204

220205

221-
arch:
222-
name: Arch
223-
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
224-
uses: ./.github/workflows/test-linux.yml
225-
needs:
226-
- lint
227-
- generate-actions-workflow
228-
with:
229-
distro-slug: arch
230-
display-name: Arch
231-
timeout: 20
232-
instances: '["git-master", "latest", "default"]'
233-
234-
235206
centos-stream9:
236207
name: CentOS Stream 9
237208
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
@@ -302,34 +273,6 @@ jobs:
302273
instances: '["stable-3007", "onedir-3007", "stable-3007-1", "git-master", "latest", "default"]'
303274

304275

305-
gentoo:
306-
name: Gentoo
307-
if: github.event_name == 'push'
308-
uses: ./.github/workflows/test-linux.yml
309-
needs:
310-
- lint
311-
- generate-actions-workflow
312-
with:
313-
distro-slug: gentoo
314-
display-name: Gentoo
315-
timeout: 90
316-
instances: '["git-master"]'
317-
318-
319-
gentoo-systemd:
320-
name: Gentoo (systemd)
321-
if: github.event_name == 'push'
322-
uses: ./.github/workflows/test-linux.yml
323-
needs:
324-
- lint
325-
- generate-actions-workflow
326-
with:
327-
distro-slug: gentoo-systemd
328-
display-name: Gentoo (systemd)
329-
timeout: 90
330-
instances: '["git-master"]'
331-
332-
333276
opensuse-15:
334277
name: Opensuse 15
335278
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
@@ -480,19 +423,15 @@ jobs:
480423
- generate-actions-workflow
481424
- macos-12
482425
- macos-13
483-
- windows-2019
484426
- windows-2022
485427
- almalinux-8
486428
- almalinux-9
487429
- amazon-2
488-
- arch
489430
- centos-stream9
490431
- debian-11
491432
- debian-12
492433
- fedora-39
493434
- fedora-40
494-
- gentoo
495-
- gentoo-systemd
496435
- opensuse-15
497436
- oraclelinux-8
498437
- oraclelinux-9

.github/workflows/templates/generate.py

Lines changed: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,15 @@
66

77
os.chdir(os.path.abspath(os.path.dirname(__file__)))
88

9-
## "amazon-2023",
10-
## "opensuse-tumbleweed",
119
LINUX_DISTROS = [
1210
"almalinux-8",
1311
"almalinux-9",
1412
"amazon-2",
15-
"arch",
1613
"centos-stream9",
1714
"debian-11",
1815
"debian-12",
1916
"fedora-39",
2017
"fedora-40",
21-
"gentoo",
22-
"gentoo-systemd",
2318
"opensuse-15",
2419
"oraclelinux-8",
2520
"oraclelinux-9",
@@ -31,8 +26,8 @@
3126
"ubuntu-2204",
3227
"ubuntu-2404",
3328
]
29+
3430
WINDOWS = [
35-
"windows-2019",
3631
"windows-2022",
3732
]
3833

@@ -41,14 +36,10 @@
4136
"macos-13",
4237
]
4338

44-
45-
## "amazon-2023",
46-
## "opensuse-tumbleweed",
4739
STABLE_DISTROS = [
4840
"almalinux-8",
4941
"almalinux-9",
5042
"amazon-2",
51-
"arch",
5243
"centos-stream9",
5344
"debian-11",
5445
"debian-12",
@@ -66,7 +57,6 @@
6657
"ubuntu-2404",
6758
]
6859

69-
## "amazon-2023",
7060
ONEDIR_DISTROS = [
7161
"almalinux-8",
7262
"almalinux-9",
@@ -99,40 +89,27 @@
9989
"ubuntu-2404",
10090
]
10191

102-
## "opensuse-tumbleweed",
10392
BLACKLIST_3006 = [
104-
"arch",
10593
"debian-12",
10694
"fedora-40",
107-
"gentoo",
108-
"gentoo-systemd",
10995
"opensuse-15",
11096
"ubuntu-2404",
11197
]
11298

113-
## "opensuse-tumbleweed",
11499
BLACKLIST_3007 = [
115-
"arch",
116100
"fedora-39",
117-
"gentoo",
118-
"gentoo-systemd",
119101
"opensuse-15",
120102
"photon-4",
121103
"photon-5",
122104
]
123105

124-
## "amazon-2023",
125-
## "opensuse-tumbleweed",
126106
BLACKLIST_GIT_3006 = [
127107
"almalinux-9",
128108
"amazon-2",
129-
"arch",
130109
"centos-stream9",
131110
"debian-11",
132111
"debian-12",
133112
"fedora-40",
134-
"gentoo",
135-
"gentoo-systemd",
136113
"opensuse-15",
137114
"oraclelinux-9",
138115
"photon-4",
@@ -143,19 +120,14 @@
143120
"ubuntu-2404",
144121
]
145122

146-
## "amazon-2023",
147-
## "opensuse-tumbleweed",
148123
BLACKLIST_GIT_3007 = [
149124
"almalinux-9",
150125
"amazon-2",
151-
"arch",
152126
"centos-stream9",
153127
"debian-11",
154128
"debian-12",
155129
"fedora-39",
156130
"fedora-40",
157-
"gentoo",
158-
"gentoo-systemd",
159131
"opensuse-15",
160132
"oraclelinux-9",
161133
"photon-4",
@@ -234,25 +206,17 @@
234206
"rockylinux-8",
235207
]
236208

237-
LATEST_PKG_BLACKLIST = [
238-
"gentoo",
239-
"gentoo-systemd",
240-
]
209+
LATEST_PKG_BLACKLIST = []
241210

242-
## "amazon-2023": "Amazon 2023",
243-
## "opensuse-tumbleweed": "Opensuse Tumbleweed",
244211
DISTRO_DISPLAY_NAMES = {
245212
"almalinux-8": "AlmaLinux 8",
246213
"almalinux-9": "AlmaLinux 9",
247214
"amazon-2": "Amazon 2",
248-
"arch": "Arch",
249215
"centos-stream9": "CentOS Stream 9",
250216
"debian-11": "Debian 11",
251217
"debian-12": "Debian 12",
252218
"fedora-39": "Fedora 39",
253219
"fedora-40": "Fedora 40",
254-
"gentoo": "Gentoo",
255-
"gentoo-systemd": "Gentoo (systemd)",
256220
"opensuse-15": "Opensuse 15",
257221
"oraclelinux-8": "Oracle Linux 8",
258222
"oraclelinux-9": "Oracle Linux 9",
@@ -265,19 +229,12 @@
265229
"ubuntu-2404": "Ubuntu 24.04",
266230
"macos-12": "macOS 12",
267231
"macos-13": "macOS 13",
268-
"windows-2019": "Windows 2019",
269232
"windows-2022": "Windows 2022",
270233
}
271234

272235
TIMEOUT_DEFAULT = 20
273-
TIMEOUT_OVERRIDES = {
274-
"gentoo": 90,
275-
"gentoo-systemd": 90,
276-
}
277-
VERSION_ONLY_OVERRIDES = [
278-
"gentoo",
279-
"gentoo-systemd",
280-
]
236+
TIMEOUT_OVERRIDES = {}
237+
VERSION_ONLY_OVERRIDES = []
281238

282239
TEMPLATE = """
283240
{distro}:

.github/workflows/test-windows.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,30 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343

44-
4544
- name: Set up Python 3.10
4645
uses: actions/setup-python@v5
4746
with:
4847
python-version: "3.10"
4948

5049
- name: Install Pytest
5150
run: |
52-
pip install -U pytest
51+
pip install -r tests\requirements.txt
5352
54-
- name: Bootstrap Salt
53+
- name: Get Version
5554
run: |
56-
. ./bootstrap-salt.ps1 -RunService $false
55+
# We need to get the version here and make it an environment variable
56+
# It is used to install via bootstrap and in the test
57+
# The version is in the instance name
58+
$instance = "${{ matrix.instance }}"
59+
$version = $instance -split "-",2
60+
if ( $version.Count -gt 1 ) {
61+
$version = $version[1].Replace("-", ".")
62+
}
63+
Write-Output "SaltVersion=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
5764
58-
- name: Set Environment Variables
65+
- name: Bootstrap Salt
5966
run: |
60-
$env:Path = "$env:Path;C:\Program Files\Salt Project\Salt"
61-
$env:Instance = ${{ matrix.instance }}
62-
Write-Output "Path:"
63-
Write-Output $env:Path
64-
Write-Output "Environment Variables"
65-
Get-ChildItem Env:
67+
. .\bootstrap-salt.ps1 -RunService $false -Version $env:SaltVersion
6668
6769
- name: Test Bootstrap
6870
run: |

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,3 @@ venv
88

99
# Pycharm
1010
.idea
11-
12-
# test-kitchen
13-
.kitchen.local.yml
14-
kitchen.local.yml
15-
.kitchen/
16-
.bundle/

Gemfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)