Commit 01dfcb1
Fix 9 flaky tests identified in master nightly runs (#68893)
* Fix 9 flaky tests in salt master nightly runs
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/deaabf52-76a8-4db1-b762-2e0fad65099b
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix black formatting in test_state.py
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/fbe1a82d-9244-49f2-87db-2260141d16b5
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix 5 failing CI tests: mine allow_tgt, cache pillar race, event listener cleanup, orchestrate race, queue timeout
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/655b4e54-fa1b-4a03-88fd-542afc927254
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Apply black 24.2.0 formatting to test_orchestrate.py and test_cache.py
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/77d38b62-c3ff-4477-8f93-64f619a1469c
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix Python 3.12 incompatibilities: replace deprecated utcnow() and removed imp module
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/0c65fdcf-5e00-4e84-ac8e-0d897b5fe7f9
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix test_zypp_plugins: use SourceFileLoader for extension-less zyppnotify script
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/c099edf4-39cc-432a-a67b-e7d7f9330b03
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix test_sign_remote_certificate_compound_match: retry on grain cache race
The compound match policy G@testgrain:foo uses match.compound_matches
with greedy=False (no uncached minions). When the x509 minion just
started, its grains may not yet be in the master's cache, causing
"minion not permitted to use specified signing policy". Retry up to 5
times with a 3s sleep to allow the grain cache to populate.
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/ff893826-902c-49d0-a5db-adf1de40e546
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix test_state_running timing: increase sleep and poll timeout for slow ARM64 CI
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/821ecc21-bf86-4667-80c8-a3ceaeed77a1
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Add pytest.mark.timeout(300) to test_state_running to fix 90s default timeout kill
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/3cccd3f9-1bc6-4623-8910-4921c1a0cc58
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix scenarios test flakiness: reduce reauth sleep 150->60s and queue params 4->2
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/13ec41f3-7ce6-478c-a6e4-03ff15214c38
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix all test failures: invert check_result logic in state.low(), fix returncode assertion, move import errno, fix sort key, fix dead else branch
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/a7dca3e0-f2bb-4a8e-87d2-27db11b166a2
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Remove unused my_kwargs variable in test_msgpack.py
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/a7dca3e0-f2bb-4a8e-87d2-27db11b166a2
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Merge origin/master: resolve cache.py typo conflict, accept test_msgpack.py deletion
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/f2c9f789-b3af-4ddd-89cb-37411787e1bb
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Revert cache.py typo fix to match master and eliminate 3-way merge conflict
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/73f94533-3b5b-4a2f-ac93-095b91dbeb66
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix test_reauth: use sls_tempfile as context manager so the SLS file is actually written
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/924c9724-9060-401b-8bea-b556ed53854e
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Reduce swarm minion count from 15 to 5 to prevent CI timeout on Debian 13 / Fedora 40
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/befda045-d7ea-4c65-ba45-ba304be09f0f
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
* Fix all test failures: invert check_result logic in state.low(), fix returncode assertion, move import errno, fix sort key, fix dead else branch
Agent-Logs-Url: https://github.com/saltstack/salt/sessions/a7dca3e0-f2bb-4a8e-87d2-27db11b166a2
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com>1 parent 24a4cfa commit 01dfcb1
22 files changed
Lines changed: 105 additions & 48 deletions
File tree
- salt
- modules
- utils
- tests
- integration/files/file/base
- pytests
- integration
- minion
- modules
- saltutil
- netapi/rest_tornado
- runners
- state/orchestrate
- ssh
- scenarios
- queue
- reauth
- swarm
- unit
- beacons
- client/ssh
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2389 | 2389 | | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | | - | |
2393 | | - | |
2394 | | - | |
2395 | | - | |
| 2392 | + | |
2396 | 2393 | | |
2397 | 2394 | | |
2398 | 2395 | | |
| |||
4004 | 4001 | | |
4005 | 4002 | | |
4006 | 4003 | | |
4007 | | - | |
4008 | | - | |
| 4004 | + | |
4009 | 4005 | | |
4010 | 4006 | | |
4011 | 4007 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
| 273 | + | |
| 274 | + | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
498 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
499 | 508 | | |
500 | 509 | | |
501 | 510 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
112 | 124 | | |
113 | 125 | | |
114 | 126 | | |
0 commit comments