Skip to content

Update MarkupSafe and Relenv#69137

Merged
dwoz merged 4 commits into
saltstack:3006.xfrom
twangboy:fix/dependabot/3006.x
May 14, 2026
Merged

Update MarkupSafe and Relenv#69137
dwoz merged 4 commits into
saltstack:3006.xfrom
twangboy:fix/dependabot/3006.x

Conversation

@twangboy
Copy link
Copy Markdown
Contributor

@twangboy twangboy commented May 12, 2026

What does this PR do?

Bumps MarkupSafe to 2.1.5
Bumps relenv to 0.22.11

Why Salt stays on MarkupSafe 2.1.5 (2.x)

We ship salt-ssh “thin” mode, which bundles Salt and selected pure-Python dependencies from the Salt filesystem onto remote hosts and runs salt-call using whatever Python those hosts expose (python3, python3.N, etc.). Thin targets are not limited to the interpreter versions we embed in modern Salt onedir builds.

We still care about compatibility where python3 is Python 3.6 or 3.7, including CI coverage (salt-ci-containers/ssh-minion) and widely deployed platforms whose default python3 lags newer minors (for example Amazon Linux 2).

MarkupSafe 3.x includes syntax (positional-only / in function definitions) that requires Python 3.8+. Packing MarkupSafe 3 into our thin py3/ payload causes salt-call on older interpreters to fail at import time with SyntaxError, before Salt runs user code.

Staying on MarkupSafe 2.1.5 keeps thin-mode viable on those interpreters while preserving behavior our integration tests explicitly exercise.

From an advisory standpoint, we monitor MarkupSafe like any dependency; pins should remain MarkupSafe>=2.1.5,<3 until we adopt a strategy that reflects MarkupSafe 3’s Python ≥ 3.8 baseline across all supported thin-mode targets.

We will revisit MarkupSafe 3 when we either raise and clearly document minimum thin-target Python, ship a maintained compatibility story (ssh_ext_alternatives, dual payloads, etc.), or narrow supported configurations accordingly.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner May 12, 2026 20:59
@twangboy twangboy self-assigned this May 12, 2026
@twangboy twangboy added the test:full Run the full test suite label May 12, 2026
@twangboy twangboy added this to the Sulpher v3006.25 milestone May 12, 2026
@twangboy twangboy force-pushed the fix/dependabot/3006.x branch from 53b6063 to dbe42e2 Compare May 13, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants