Skip to content

Commit 180deff

Browse files
authored
Update oslo.config to prepare for python 3.10 support. (#6193)
2 parents 817d30a + e1bc554 commit 180deff

File tree

16 files changed

+103
-70
lines changed

16 files changed

+103
-70
lines changed

.github/workflows/orquesta-integration-tests.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,6 @@ jobs:
211211
set -e
212212
echo "Failed after ${MAX_ATTEMPTS} attempts, failing the job."
213213
exit 1
214-
- name: Upload StackStorm services Logs
215-
#if: ${{ failure() }}
216-
uses: actions/upload-artifact@v4
217-
with:
218-
name: logs
219-
path: logs/
220214
- name: Compress Service Logs Before upload
221215
if: ${{ failure() }}
222216
run: |
@@ -225,7 +219,7 @@ jobs:
225219
if: ${{ failure() }}
226220
uses: actions/upload-artifact@v4
227221
with:
228-
name: logs
222+
name: logs-py${{ matrix.python-version }}
229223
path: logs.tar.gz
230224
retention-days: 7
231225
- name: Stop Redis Service Container

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Changed
2222
* Updated package build container environment to use py3.8 and mongo4.4 #6129
2323
* Fic misc DeprecationWarnings to prepare for python 3.10 support. #6188 (by @nzlosh)
2424
* Update st2client deps: editor and prompt-toolkit. #6189 (by @nzlosh)
25+
* Updated dependency oslo.config to prepare for python 3.10 support. #6193 (by @nzlosh)
2526

2627
Added
2728
~~~~~

fixed-requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ networkx==2.8.8
3030
# networkx dropped its dep on decorator in version 2.6, so the old pin is unneeded.
3131
# now jsonpath-rw is the only thing that depends on decorator (a transitive dep)
3232
decorator==5.1.1
33-
# NOTE: Recent version substantially affect the performance and add big import time overhead
34-
# See https://github.com/StackStorm/st2/issues/4160#issuecomment-394386433 for details
35-
oslo.config==1.12.1
33+
# 202403: Bump oslo.config for py3.10 support.
34+
oslo.config==9.4.0
3635
oslo.utils==7.1.0
3736
# paramiko 2.11.0 is needed by cryptography > 37.0.0
3837
paramiko==3.4.0
@@ -71,8 +70,8 @@ tenacity==8.2.3
7170
tooz==6.1.0
7271
# Note: virtualenv embeds wheels for pip, wheel, and setuptools. So pinning virtualenv pins those as well.
7372
# virtualenv==20.26.0 (<21) has pip==24.0 wheel==0.43.0 setuptools==69.5.1
74-
# lockfiles/st2.lock has pip==24.0 wheel==0.43.0 setuptools==69.2.0
75-
virtualenv==20.26.0
73+
# lockfiles/st2.lock has pip==24.0 wheel==0.43.0 setuptools==69.5.1
74+
virtualenv==20.26.1
7675
webob==1.8.7
7776
zake==0.2.2
7877
# test requirements below

lockfiles/st2.lock

Lines changed: 75 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// "RandomWords",
1414
// "apscheduler",
1515
// "argcomplete",
16+
// "argparse",
1617
// "beautifulsoup4",
1718
// "ciso8601",
1819
// "cryptography",
@@ -40,7 +41,7 @@
4041
// "nose-timer",
4142
// "orjson",
4243
// "orquesta@ git+https://github.com/StackStorm/[email protected]",
43-
// "oslo.config<1.13,>=1.12.1",
44+
// "oslo.config",
4445
// "paramiko",
4546
// "pika",
4647
// "pip",
@@ -1166,13 +1167,13 @@
11661167
"artifacts": [
11671168
{
11681169
"algorithm": "sha256",
1169-
"hash": "404e5e9253aa60ad457cae1be07c0f0ca90a63931200a47d9b6a6af84fd7b45f",
1170-
"url": "https://files.pythonhosted.org/packages/6e/b5/15b3b36f298bcbc0be82a371ac744f4f5a10309ade0b8bbde286598dd612/filelock-3.13.4-py3-none-any.whl"
1170+
"hash": "43339835842f110ca7ae60f1e1c160714c5a6afd15a2873419ab185334975c0f",
1171+
"url": "https://files.pythonhosted.org/packages/41/24/0b023b6537dfc9bae2c779353998e3e99ac7dfff4222fc6126650e93c3f3/filelock-3.14.0-py3-none-any.whl"
11711172
},
11721173
{
11731174
"algorithm": "sha256",
1174-
"hash": "d13f466618bfde72bd2c18255e269f72542c6e70e7bac83a0232d6b1cc5c8cf4",
1175-
"url": "https://files.pythonhosted.org/packages/38/ff/877f1dbe369a2b9920e2ada3c9ab81cf6fe8fa2dce45f40cad510ef2df62/filelock-3.13.4.tar.gz"
1175+
"hash": "6ea72da3be9b8c82afd3edcf99f2fffbb5076335a5ae4d03248bb5b6c3eae78a",
1176+
"url": "https://files.pythonhosted.org/packages/06/ae/f8e03746f0b62018dcf1120f5ad0a1db99e55991f2cda0cf46edc8b897ea/filelock-3.14.0.tar.gz"
11761177
}
11771178
],
11781179
"project_name": "filelock",
@@ -1190,7 +1191,7 @@
11901191
"typing-extensions>=4.8; python_version < \"3.11\" and extra == \"typing\""
11911192
],
11921193
"requires_python": ">=3.8",
1193-
"version": "3.13.4"
1194+
"version": "3.14.0"
11941195
},
11951196
{
11961197
"artifacts": [
@@ -2418,24 +2419,41 @@
24182419
"artifacts": [
24192420
{
24202421
"algorithm": "sha256",
2421-
"hash": "d4501d11ce955d010208019f04ebba0ce58a5f1a9033da9193cfa33e4854d74b",
2422-
"url": "https://files.pythonhosted.org/packages/c7/82/263fa79866098034917be0def7ab4979480e6f429732cd6cd9f4e0405ec5/oslo.config-1.12.1-py2.py3-none-any.whl"
2422+
"hash": "8c2049c14cade7adeeda18638531b3b3a40d3c6bcc690535939f64a3c1ec8d63",
2423+
"url": "https://files.pythonhosted.org/packages/9c/82/792303dce5cd50951d27a405ad8251c04dc3ad5a051b6a585a939ae39f4a/oslo.config-9.4.0-py3-none-any.whl"
24232424
},
24242425
{
24252426
"algorithm": "sha256",
2426-
"hash": "d43880e88a55b13840dfd80495837017d4da3ad96aed288345410e0b35138477",
2427-
"url": "https://files.pythonhosted.org/packages/90/5f/c90379a91cc41ab849eb789dd75a83533cc35caabe535f3118f42b0906b2/oslo.config-1.12.1.tar.gz"
2427+
"hash": "35b11a661b608edb50305dad91e4e30819d90ef794b7d7dba5bd8b2ef2eb8c0d",
2428+
"url": "https://files.pythonhosted.org/packages/9f/79/d75e9a6234883adc93838602263d394ffaff6b8d315127c98afd596083f6/oslo.config-9.4.0.tar.gz"
24282429
}
24292430
],
24302431
"project_name": "oslo-config",
24312432
"requires_dists": [
2432-
"argparse",
2433-
"netaddr>=0.7.12",
2434-
"six>=1.9.0",
2435-
"stevedore>=1.3.0"
2433+
"PyYAML>=5.1",
2434+
"bandit<1.8.0,>=1.7.0; extra == \"test\"",
2435+
"coverage!=4.4,>=4.0; extra == \"test\"",
2436+
"debtcollector>=1.2.0",
2437+
"fixtures>=3.0.0; extra == \"test\"",
2438+
"hacking<6.2.0,>=6.1.0; extra == \"test\"",
2439+
"mypy>=0.720; extra == \"test\"",
2440+
"netaddr>=0.7.18",
2441+
"oslo.i18n>=3.15.3",
2442+
"oslo.log>=3.36.0; extra == \"test\"",
2443+
"oslotest>=3.2.0; extra == \"test\"",
2444+
"pre-commit>=2.6.0; extra == \"test\"",
2445+
"requests-mock>=1.5.0; extra == \"test\"",
2446+
"requests>=2.18.0",
2447+
"rfc3986>=1.2.0",
2448+
"rst2txt>=1.1.0; extra == \"rst_generator\"",
2449+
"sphinx!=2.1.0,>=1.8.0; extra == \"rst_generator\"",
2450+
"stestr>=2.1.0; extra == \"test\"",
2451+
"stevedore>=1.20.0",
2452+
"testscenarios>=0.4; extra == \"test\"",
2453+
"testtools>=2.2.0; extra == \"test\""
24362454
],
2437-
"requires_python": null,
2438-
"version": "1.12.1"
2455+
"requires_python": ">=3.8",
2456+
"version": "9.4.0"
24392457
},
24402458
{
24412459
"artifacts": [
@@ -3285,34 +3303,34 @@
32853303
"artifacts": [
32863304
{
32873305
"algorithm": "sha256",
3288-
"hash": "2a8386cfc11fa9d2c50ee7b2a57e7d898ef90470a7a34c4b949ff59662bb78b7",
3289-
"url": "https://files.pythonhosted.org/packages/4d/7e/c79cecfdb6aa85c6c2e3cf63afc56d0f165f24f5c66c03c695c4d9b84756/pytest-8.1.1-py3-none-any.whl"
3306+
"hash": "1733f0620f6cda4095bbf0d9ff8022486e91892245bb9e7d5542c018f612f233",
3307+
"url": "https://files.pythonhosted.org/packages/c4/43/6b1debd95ecdf001bc46789a933f658da3f9738c65f32db3f4e8f2a4ca97/pytest-8.2.0-py3-none-any.whl"
32903308
},
32913309
{
32923310
"algorithm": "sha256",
3293-
"hash": "ac978141a75948948817d360297b7aae0fcb9d6ff6bc9ec6d514b85d5a65c044",
3294-
"url": "https://files.pythonhosted.org/packages/30/b7/7d44bbc04c531dcc753056920e0988032e5871ac674b5a84cb979de6e7af/pytest-8.1.1.tar.gz"
3311+
"hash": "d507d4482197eac0ba2bae2e9babf0672eb333017bcedaa5fb1a3d42c1174b3f",
3312+
"url": "https://files.pythonhosted.org/packages/09/9d/78b3785134306efe9329f40815af45b9215068d6ae4747ec0bc91ff1f4aa/pytest-8.2.0.tar.gz"
32953313
}
32963314
],
32973315
"project_name": "pytest",
32983316
"requires_dists": [
3299-
"argcomplete; extra == \"testing\"",
3300-
"attrs>=19.2; extra == \"testing\"",
3317+
"argcomplete; extra == \"dev\"",
3318+
"attrs>=19.2; extra == \"dev\"",
33013319
"colorama; sys_platform == \"win32\"",
33023320
"exceptiongroup>=1.0.0rc8; python_version < \"3.11\"",
3303-
"hypothesis>=3.56; extra == \"testing\"",
3321+
"hypothesis>=3.56; extra == \"dev\"",
33043322
"iniconfig",
3305-
"mock; extra == \"testing\"",
3323+
"mock; extra == \"dev\"",
33063324
"packaging",
3307-
"pluggy<2.0,>=1.4",
3308-
"pygments>=2.7.2; extra == \"testing\"",
3309-
"requests; extra == \"testing\"",
3310-
"setuptools; extra == \"testing\"",
3325+
"pluggy<2.0,>=1.5",
3326+
"pygments>=2.7.2; extra == \"dev\"",
3327+
"requests; extra == \"dev\"",
3328+
"setuptools; extra == \"dev\"",
33113329
"tomli>=1; python_version < \"3.11\"",
3312-
"xmlschema; extra == \"testing\""
3330+
"xmlschema; extra == \"dev\""
33133331
],
33143332
"requires_python": ">=3.8",
3315-
"version": "8.1.1"
3333+
"version": "8.2.0"
33163334
},
33173335
{
33183336
"artifacts": [
@@ -3651,6 +3669,26 @@
36513669
"requires_python": null,
36523670
"version": "1.3.4"
36533671
},
3672+
{
3673+
"artifacts": [
3674+
{
3675+
"algorithm": "sha256",
3676+
"hash": "50b1502b60e289cb37883f3dfd34532b8873c7de9f49bb546641ce9cbd256ebd",
3677+
"url": "https://files.pythonhosted.org/packages/ff/9a/9afaade874b2fa6c752c36f1548f718b5b83af81ed9b76628329dab81c1b/rfc3986-2.0.0-py2.py3-none-any.whl"
3678+
},
3679+
{
3680+
"algorithm": "sha256",
3681+
"hash": "97aacf9dbd4bfd829baad6e6309fa6573aaf1be3f6fa735c8ab05e46cecb261c",
3682+
"url": "https://files.pythonhosted.org/packages/85/40/1520d68bfa07ab5a6f065a186815fb6610c86fe957bc065754e47f7b0840/rfc3986-2.0.0.tar.gz"
3683+
}
3684+
],
3685+
"project_name": "rfc3986",
3686+
"requires_dists": [
3687+
"idna; extra == \"idna2008\""
3688+
],
3689+
"requires_python": ">=3.7",
3690+
"version": "2.0.0"
3691+
},
36543692
{
36553693
"artifacts": [
36563694
{
@@ -4554,13 +4592,13 @@
45544592
"artifacts": [
45554593
{
45564594
"algorithm": "sha256",
4557-
"hash": "0846377ea76e818daaa3e00a4365c018bc3ac9760cbb3544de542885aad61fb3",
4558-
"url": "https://files.pythonhosted.org/packages/fa/80/4230da6f5898d50c427591d81c4ca154c19ff3ea789266affcd9a770ed3d/virtualenv-20.26.0-py3-none-any.whl"
4595+
"hash": "7aa9982a728ae5892558bff6a2839c00b9ed145523ece2274fad6f414690ae75",
4596+
"url": "https://files.pythonhosted.org/packages/ca/28/19728b052c52b588fa117e80561d4b6e872664f4df73628d58593218becd/virtualenv-20.26.1-py3-none-any.whl"
45594597
},
45604598
{
45614599
"algorithm": "sha256",
4562-
"hash": "ec25a9671a5102c8d2657f62792a27b48f016664c6873f6beed3800008577210",
4563-
"url": "https://files.pythonhosted.org/packages/d8/02/0737e7aca2f7df4a7e4bfcd4de73aaad3ae6465da0940b77d222b753b474/virtualenv-20.26.0.tar.gz"
4600+
"hash": "604bfdceaeece392802e6ae48e69cec49168b9c5f4a44e483963f9242eb0e78b",
4601+
"url": "https://files.pythonhosted.org/packages/93/9f/97beb3dd55a764ac9776c489be4955380695e8d7a6987304e58778ac747d/virtualenv-20.26.1.tar.gz"
45644602
}
45654603
],
45664604
"project_name": "virtualenv",
@@ -4590,7 +4628,7 @@
45904628
"towncrier>=23.6; extra == \"docs\""
45914629
],
45924630
"requires_python": ">=3.7",
4593-
"version": "20.26.0"
4631+
"version": "20.26.1"
45944632
},
45954633
{
45964634
"artifacts": [
@@ -5064,6 +5102,7 @@
50645102
"RandomWords",
50655103
"apscheduler",
50665104
"argcomplete",
5105+
"argparse",
50675106
"beautifulsoup4",
50685107
"ciso8601",
50695108
"cryptography",
@@ -5091,7 +5130,7 @@
50915130
"nose-timer",
50925131
"orjson",
50935132
"orquesta",
5094-
"oslo.config<1.13,>=1.12.1",
5133+
"oslo.config",
50955134
"paramiko",
50965135
"pika",
50975136
"pip",

requirements-pants.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
apscheduler
1010
argcomplete
11+
argparse
1112
ciso8601
1213
cryptography
1314
editor
@@ -32,9 +33,9 @@ mongoengine>=0.21.0,<0.24.0
3233
networkx
3334
orjson
3435
orquesta @ git+https://github.com/StackStorm/[email protected]
35-
# NOTE: Recent version substantially affect the performance and add big import time overhead
36-
# See https://github.com/StackStorm/st2/issues/4160#issuecomment-394386433 for details
37-
oslo.config>=1.12.1,<1.13
36+
# Historical reference: https://github.com/StackStorm/st2/issues/4160#issuecomment-394386433
37+
# Relaxed pinning for py3.10 support.
38+
oslo.config
3839
paramiko
3940
# we use pip at runtime
4041
pip

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ nose-parallel==0.4.0
3939
nose-timer==1.0.1
4040
orjson==3.10.1
4141
orquesta@ git+https://github.com/StackStorm/[email protected]
42-
oslo.config==1.12.1
42+
oslo.config==9.4.0
4343
oslo.utils==7.1.0
4444
paramiko==3.4.0
4545
passlib==1.7.4

st2actions/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jinja2==3.1.3
1414
kombu==5.3.7
1515
lockfile==0.12.2
1616
logshipper@ git+https://github.com/StackStorm/logshipper.git@stackstorm_patched ; platform_system=="Linux"
17-
oslo.config==1.12.1
17+
oslo.config==9.4.0
1818
oslo.utils==7.1.0
1919
pyinotify==0.9.6 ; platform_system=="Linux"
2020
pyparsing==3.1.2

st2api/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gunicorn==22.0.0
1010
jsonschema==3.2.0
1111
kombu==5.3.7
1212
mongoengine==0.23.1
13-
oslo.config==1.12.1
13+
oslo.config==9.4.0
1414
oslo.utils==7.1.0
1515
pymongo==3.12.3
1616
pyparsing==3.1.2

st2api/tests/unit/test_validation_utils.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ def test_validate_auth_cookie_is_correctly_configured_error(self):
4848
invalid_values = ["strictx", "laxx", "nonex", "invalid"]
4949

5050
for value in invalid_values:
51-
cfg.CONF.set_override(
52-
group="api", name="auth_cookie_same_site", override=value
53-
)
54-
55-
expected_msg = "Valid values are: strict, lax, none, unset"
56-
self.assertRaisesRegex(
57-
ValueError, expected_msg, validate_auth_cookie_is_correctly_configured
58-
)
51+
with self.assertRaisesRegex(
52+
ValueError, r"Valid values are \[strict, lax, none, unset\], but found"
53+
):
54+
cfg.CONF.set_override(
55+
group="api", name="auth_cookie_same_site", override=value
56+
)
5957

6058
# SameSite=none + Secure=false is not compatible
6159
cfg.CONF.set_override(

st2auth/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
bcrypt==4.1.2
99
eventlet==0.36.1
1010
gunicorn==22.0.0
11-
oslo.config==1.12.1
11+
oslo.config==9.4.0
1212
passlib==1.7.4
1313
pymongo==3.12.3
1414
six==1.16.0

0 commit comments

Comments
 (0)