Repository navigation
Merge forward 3006.x into 3007.x - #70146
Merged
Merged
Conversation
The chocolatey_mod fixture in test_chocolatey_latest.py downloads the Chocolatey installer nupkg from community.chocolatey.org. The service periodically returns HTTP 5xx/429 from its CDN, breaking every Windows functional test run in the nightly build. Retry the download with exponential backoff on transient HTTP errors and skip the tests at runtime if the service remains unavailable — the tests literally cannot execute without the installer download, so a runtime skip is the correct semantic when the external dependency is genuinely down.
Retry chocolatey installer download on transient HTTP errors in test fixture
Drops the schedule: trigger (dead on this non-default branch anyway -- GitHub only honors schedule: off the repo's default branch, so it never fired on this branch anyway) and adds a required branch input (default 3006.x) so this can be invoked with --ref 3006.x from the dispatcher in saltstack/salt's nightly-stress-test.yml (VCOPS-100029's nightly coverage) as well as manually against any branch/PR diff. Branch-qualifies the Docker cache key, uploaded artifact name, and stress-snapshots run dir with inputs.branch, matching master's and 3008.x's copies of this file.
Companion to run-stress-test.yml added earlier in this branch. Per the design settled in saltstack#70087: only master's copy of this dispatcher is ever actually fired by the schedule: cron (GitHub only honors schedule: off the default branch), but every branch in the nightly set carries its own byte-identical copy so that: - a manual workflow_dispatch of this file on this branch behaves the same as the real nightly run would, and - porting to a not-yet-covered branch (3007.x once it's backported) is a straight copy of the whole file, not a re-derivation of the branch list or the --ref-per-branch dispatch logic. Without this file present here, master's dispatcher's `gh workflow run run-stress-test.yml --ref 3006.x` would 404 -- workflow_dispatch --ref X requires the target workflow to exist on branch X, but the dispatch call itself (this file, on master) is a different workflow from the one it's calling out to.
This file is meant to be byte-identical across branches. A per-branch default would need hand-editing on every port to 3007.x/3008.x, and silently running the wrong branch's code if forgotten. The dispatcher already always passes -f branch explicitly, so this only removes a footgun for an unparameterized manual dispatch.
Reverts the split-into-two-files design (thin dispatcher + run-stress-test.yml) for this branch, per direct request: the split lost the full workflow_dispatch input set (duration's dropdown of preset options, enable_metrics, worker_threads) that manual runs on this branch used to have -- run-stress-test.yml only carried `branch` and a bare `duration` string input. nightly-stress-test.yml is now the only stress-test workflow file on this branch again: same `schedule: cron: '0 2 * * *'` (still only actually fired by GitHub's cron when this is the default branch, per the platform's schedule-only-fires-on-default-branch behavior), full workflow_dispatch inputs restored (branch, duration w/ its full option list, enable_metrics, worker_threads), and the complete job body (previously in run-stress-test.yml) merged back in unchanged. master's own trigger for this branch is being wired up separately (not in this PR).
Same reasoning as before: this file is meant to be a pure copy onto 3007.x/3008.x with zero edits. A default (or an inline || '3006.x' fallback anywhere in the job body) would need hand-editing on every port, and would silently run against the wrong branch if forgotten. branch is required with no default, so workflow_dispatch (including run-nightly-stress.yml's own dispatch) must always pass it explicitly -- the 6 || '3006.x' fallbacks scattered through checkout/cache-key/ artifact-name/publish steps were dead code since inputs.branch always has a real value at that point, and worse, hardcoded a branch name.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
umask is process wide. Two threads overlapping in set_umask restore each other's saved value and the process umask stays changed for good. Hit this in salt-api: mk_key wraps key writes in set_umask(0o277) on every netapi request, rest_cherrypy runs requests in a thread pool, and once the umask stuck at 0o277 every jid file and thin bundle came out unwritable. Serialize both helpers with an RLock so nested use in a single thread still works. Fixes saltstack#66607
The previous wording described a rename to run-stress-test.yml and a new dispatcher file -- that belongs to PR saltstack#70103, not this PR. This PR only modifies nightly-stress-test.yml in place. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
_lint() hardcoded requirements/static/ci/<pydir>/linux.lock regardless of host OS, breaking the lint-salt and lint-tests pre-commit hooks on macOS (pip tries to build pyinotify, which is Linux-only). Use the existing _get_pip_requirements_file() helper instead, matching every other OS-aware nox session in this file.
Found by testing a new key-duplicates check: the same missing `- id: pip-compile` merge bug that broke the Darwin Py3.14 zmq requirements hook also silently destroyed the Linux, FreeBSD, Windows, and Docs Py3.14 pip-compile hooks, each clobbered by the following Py3.13 block. Also fixes two FreeBSD Crypto hooks with a leftover duplicate `files:` key, and merges two duplicate `exclude:` keys on the enforce-tornado-imports hook that were silently dropping the salt/ext/.* exclusion. Adds a yamllint hook scoped to .pre-commit-config.yaml with only key-duplicates enabled, so this class of silent data loss can't recur unnoticed.
_lint()/_lint_pre_commit() always installs a platform's own CI requirements lock alongside the single, Linux-pinned lint.lock. Since that lock re-declared the full common.txt/linux.txt/pkg/linux.txt dependency graph (ansible, boto3, kubernetes, moto, mercurial, etc.) as direct requirements, it could drift out of sync with what a Darwin/FreeBSD/Windows base lock resolves for the same packages, breaking lint-salt/lint-tests on those platforms with hard version conflicts (e.g. boto3, importlib-metadata, more-itertools). Add darwin-lint.lock/freebsd-lint.lock/windows-lint.lock alongside the renamed linux-lint.lock (all Python versions), each compiled with its own platform's pip-compile hook and matching noxfile.py's _get_lint_requirements_file() platform selection. Since .pylintrc disables import-error and no-member, pylint's findings are provably unaffected by whether these third-party integration libraries are installed at all (verified by running pylint over the full salt/, tools/, and tests/ trees with and without them). base_requirements_file already provides everything lint.lock was redeclaring, so trim every lint lock down to compile from just lint.txt, constrained against that platform's own CI+pkg lock. This also removes the entire class of cross-file version drift, since there is no longer any overlapping package declaration to drift. Add a check-lint-locks pre-commit hook (tools/precommit/lintlocks.py) that resolves each platform's CI lock together with its lint lock via uv, catching future conflicts without needing a real macOS/FreeBSD/ Windows runner.
check-lint-locks tries every platform combination regardless of which host it runs on, but resolving the linux/freebsd targets requires uv to build pyinotify's legacy sdist locally to read its metadata, and that build hard-checks the real host platform and aborts outside Linux. This made the hook fail with 12 false-positive "conflicts" on any macOS/Windows machine touching lock files, even when every actual version conflict was already resolved. Skip those combinations when not running on Linux, with an explicit warning so the gap in local coverage stays visible instead of silent. Also fixes a doc reference to the old single lint.lock path, which no longer exists now that it's split per platform.
… 3006.x
Rebasing onto 3006.x hit a conflict in requirements/static/ci/py3.14/
{darwin,freebsd,windows}.lock against the "Regenerate py3.14 CI
requirements lock files" commit. Resolving it by taking 3006.x's side
made that commit a no-op, which silently reintroduced the boto3
version drift this branch fixes (darwin/freebsd/windows landed on
1.43.48 while linux/cloud kept 1.43.57).
Re-pinned boto3 to 1.43.57 on darwin.lock and windows.lock via
`uv pip compile -P boto3==1.43.57` to match linux.lock/cloud.lock.
freebsd.lock still needs the same treatment but can't be compiled
from this host: --universal resolution still needs pyinotify's
metadata, and building its legacy sdist only succeeds on a real
Linux host.
freebsd.lock was the last holdout at boto3==1.43.48 after the 3006.x rebase reintroduced the version drift this branch fixes (darwin and windows were already re-pinned to 1.43.57 in 8567cd8, but freebsd's --universal resolution needs to evaluate pyinotify's metadata, which only builds on a real Linux host). Re-pinned via `uv pip compile -P boto3==1.43.57` from a Linux host to match linux.lock/cloud.lock/darwin.lock/windows.lock.
…test 3006.x: enable nightly stress test
…commit-cross-platform-support Fix lint-salt/lint-tests pre-commit hooks on non-Linux platforms
Cython 3.3.0 (published to PyPI 2026-08-22) tightened its parser and rejects variable redeclarations in pyzmq 27.1.0's cython sources (zmq/backend/cython/_zmq.py:357 'hint', :1112 'c_addr'). pyzmq is source-built under the relenv onedir toolchain (--no-binary=:all:), so pip's PEP-517 build-isolation env resolves Cython fresh from PyPI and picks up 3.3.0. Pin Cython<3.3 in requirements/constraints.txt and export the same file via PIP_BUILD_CONSTRAINT alongside PIP_CONSTRAINT everywhere it is set, because PIP_CONSTRAINT stopped propagating into build-isolation envs in pip 26.x (deprecated in 26.1, enforced in 26.2). Build tooling only; no runtime dependency changes.
…3006x Pin Cython<3.3 for pyzmq source-build compat (3006.x)
signal.default_int_handler(signal.SIGTERM)(*args) called default_int_handler with a single positional argument (it requires (signum, frame)), raised TypeError, and killed the receiving process with an unhandled exception instead of triggering the intended KeyboardInterrupt-based clean shutdown. Observed in the wild on 3008.1's MasterPubServerChannel._publish_daemon when SIGTERM was delivered to the master. The daemon crashed and ProcessManager did not respawn it. The elif arm is reachable in the common case: signal.getsignal(SIGTERM) returns signal.Handlers.SIG_DFL, which is not callable and not None, so the first two arms fall through to the buggy call. Pass through the received (signum, frame) tuple; default_int_handler raises KeyboardInterrupt regardless of signum, matching the intent.
The FileserverUpdate class in salt/master.py was registered with the ProcessManager under the name ``FileServerUpdate`` (capital S) via an explicit ``name=`` kwarg, while the class name itself uses a lowercase ``s``. Because ProcessManager falls back to the class name when respawning a process, the initial fork got the process title ``FileServerUpdate`` and any respawn got ``FileserverUpdate``, so a single logical process ended up with two different titles depending on its lifecycle. The log message emitted when applying the fileserver niceness used the capital-S form as well. Normalize every occurrence to ``FileserverUpdate`` to match the class name so process listings, grep/pgrep based monitoring, and log-to-process correlation are consistent across the process lifetime.
Rename the placeholder changelog snippet to use PR saltstack#70111.
…default-int-handler-typeerror Fix _handle_signals TypeError when SIGTERM is delivered to a forked child
…e-name-consistency Normalize FileserverUpdate process title casing
…safety Make set_umask/get_umask thread safe
Regenerated GitHub workflows via pre-commit. Refs saltstack#70133
…-08-26-26 # Conflicts: # .github/workflows/ci.yml # .github/workflows/depcheck.yml # .github/workflows/nightly-stress-test.yml # .github/workflows/nightly.yml # .github/workflows/scheduled.yml # .github/workflows/staging.yml # .github/workflows/templates/layout.yml.jinja # .pre-commit-config.yaml # doc/topics/development/conventions/style.rst # noxfile.py # requirements/base.txt # requirements/constraints.txt # requirements/static/ci/common.txt # requirements/static/ci/py3.10/cloud.lock # requirements/static/ci/py3.10/darwin.lock # requirements/static/ci/py3.10/docs.lock # requirements/static/ci/py3.10/freebsd.lock # requirements/static/ci/py3.10/lint.lock # requirements/static/ci/py3.10/linux.lock # requirements/static/ci/py3.10/windows.lock # requirements/static/ci/py3.11/cloud.lock # requirements/static/ci/py3.11/darwin.lock # requirements/static/ci/py3.11/docs.lock # requirements/static/ci/py3.11/freebsd.lock # requirements/static/ci/py3.11/lint.lock # requirements/static/ci/py3.11/linux.lock # requirements/static/ci/py3.11/windows.lock # requirements/static/ci/py3.12/cloud.lock # requirements/static/ci/py3.12/darwin.lock # requirements/static/ci/py3.12/docs.lock # requirements/static/ci/py3.12/freebsd.lock # requirements/static/ci/py3.12/lint.lock # requirements/static/ci/py3.12/linux.lock # requirements/static/ci/py3.12/windows.lock # requirements/static/ci/py3.13/cloud.lock # requirements/static/ci/py3.13/darwin.lock # requirements/static/ci/py3.13/docs.lock # requirements/static/ci/py3.13/freebsd.lock # requirements/static/ci/py3.13/lint.lock # requirements/static/ci/py3.13/linux.lock # requirements/static/ci/py3.13/windows.lock # requirements/static/ci/py3.14/cloud.lock # requirements/static/ci/py3.14/darwin.lock # requirements/static/ci/py3.14/docs.lock # requirements/static/ci/py3.14/freebsd.lock # requirements/static/ci/py3.14/lint.lock # requirements/static/ci/py3.14/linux.lock # requirements/static/ci/py3.14/windows.lock # requirements/static/ci/py3.9/freebsd.lock # requirements/static/ci/py3.9/lint.lock # requirements/static/pkg/freebsd.txt # requirements/static/pkg/linux.txt # requirements/static/pkg/py3.10/darwin.lock # requirements/static/pkg/py3.10/freebsd.lock # requirements/static/pkg/py3.10/linux.lock # requirements/static/pkg/py3.10/windows.lock # requirements/static/pkg/py3.11/darwin.lock # requirements/static/pkg/py3.11/freebsd.lock # requirements/static/pkg/py3.11/linux.lock # requirements/static/pkg/py3.11/windows.lock # requirements/static/pkg/py3.12/darwin.lock # requirements/static/pkg/py3.12/freebsd.lock # requirements/static/pkg/py3.12/linux.lock # requirements/static/pkg/py3.12/windows.lock # requirements/static/pkg/py3.13/darwin.lock # requirements/static/pkg/py3.13/freebsd.lock # requirements/static/pkg/py3.13/linux.lock # requirements/static/pkg/py3.13/windows.lock # requirements/static/pkg/py3.14/darwin.lock # requirements/static/pkg/py3.14/freebsd.lock # requirements/static/pkg/py3.14/linux.lock # requirements/static/pkg/py3.14/windows.lock # requirements/static/pkg/py3.9/freebsd.lock # salt/modules/tls.py # tools/pkg/build.py
dwoz
force-pushed
the
merge/3006.x/3007.x-08-26-26
branch
from
August 26, 2026 11:49
a5edde0 to
a17fee9
Compare
twangboy
approved these changes
Aug 26, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.