FreeNAS/freenas 5376608src/middlewared/middlewared/plugins/alert alert.py runtime.py

NAS-141266 / 27.0.0-BETA.1 / Restructure alert plugin to the lean typesafe layout (#19071)

## Problem
The alert plugin passed mypy but didn't follow the typesafe convention
the other converted plugins use: the eponymous `alert` service lived in
`alert.py` as an 1100-line `Service` with all logic, models, and helpers
inline, `__init__.py` was empty, and the two sibling services each
combined their service class and service part in one off-convention
file.

## Solution
- Move `AlertService` into a lean `__init__.py` that exposes only the
endpoint stubs; each delegates to plain functions in `lifecycle.py` /
`runtime.py` / `oneshot.py` / `queries.py` that take `(context, state)`.
- Lift all mutable runtime state into a dedicated `AlertState` object
(`state.py`) built once in `__init__`. Concurrency is intentionally
unchanged — it still relies on the asyncio event loop plus the existing
`process_alerts` job lock, with no new lock introduced.
- Pull the standalone pieces into `state.py`, `alert_classes.py`, and

    [5 lines not shown]
DeltaFile
+0-1,108src/middlewared/middlewared/plugins/alert/alert.py
+533-0src/middlewared/middlewared/plugins/alert/runtime.py
+0-226src/middlewared/middlewared/plugins/alert/service.py
+219-0src/middlewared/middlewared/plugins/alert/queries.py
+214-0src/middlewared/middlewared/plugins/alert/__init__.py
+147-0src/middlewared/middlewared/plugins/alert/alertservice.py
+1,113-1,33410 files not shown
+1,704-1,41616 files

LLVM/project c8faaf9llvm/test/tools/llubi call_unknown.ll, llvm/tools/llubi/lib Interpreter.cpp

[llubi] Don't check type after the program exited (#201862)

Closes https://github.com/llvm/llvm-project/issues/201791.
DeltaFile
+12-0llvm/test/tools/llubi/call_unknown.ll
+2-0llvm/tools/llubi/lib/Interpreter.cpp
+14-02 files

LLVM/project de1ff3ellvm/lib/Target/AMDGPU MIMGInstructions.td, llvm/test/MC/AMDGPU gfx1250_asm_vimage_err.s gfx1250_asm_vimage.s

[AMDGPU] Allow null operands in VImage tensor instructions (#200911)

NULL is equivalent to passing a block of SGPRs that are set to zero, and
is allowed for 3+ opnds.
DeltaFile
+0-12llvm/test/MC/AMDGPU/gfx1250_asm_vimage_err.s
+12-0llvm/test/MC/AMDGPU/gfx1250_asm_vimage.s
+9-0llvm/test/MC/Disassembler/AMDGPU/gfx1250_dasm_vimage.txt
+2-2llvm/lib/Target/AMDGPU/MIMGInstructions.td
+23-144 files

LLVM/project 383e5d2clang/include/clang/Options Options.td, clang/test/Driver objc-constant-literals.m

[Driver] Don't warn on ObjC constant-literal flags for non-ObjC inputs (#200303)

-fobjc-constant-literals and the per-kind
-f[no-]constant-ns{number,array, dictionary}-literals flags are only
acted on for Objective-C inputs. When a build system passes them
uniformly to every source via a shared response file, they go unclaimed
on assembly and C/C++ inputs and trigger:

  error: argument unused during compilation: '-fobjc-constant-literals'
         [-Werror,-Wunused-command-line-argument]

Mark the options NoArgumentUnused so the unused argument is ignored
regardless of input type or whether the cc1 or cc1as path runs. The
behavior of the flags is unchanged: only the positive forms are
forwarded to cc1, and only for ObjC inputs.

rdar://175647747
DeltaFile
+29-0clang/test/Driver/objc-constant-literals.m
+4-4clang/include/clang/Options/Options.td
+33-42 files

FreeNAS/freenas a771454src/freenas/etc/systemd/system/getty@tty1.service.d override.conf

midcli: safeguard for possible memory leaks in python-prompt-toolkit
DeltaFile
+2-0src/freenas/etc/systemd/system/getty@tty1.service.d/override.conf
+2-01 files

NetBSD/pkgsrc-wip c45d703webkit-gtk60/patches patch-Source_bmalloc_bmalloc_AvailableMemory.cpp patch-Source_bmalloc_libpas_src_libpas_pas__monotonic__time.c

webkit-gtk60: update comments, remove bmalloc patches

Since 2.52.4, the default on NetBSD is to use the system allocator,
so the NetBSD patches for bmalloc are not needed any longer.
DeltaFile
+0-101webkit-gtk60/patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp
+0-29webkit-gtk60/patches/patch-Source_bmalloc_libpas_src_libpas_pas__monotonic__time.c
+0-24webkit-gtk60/patches/patch-Source_bmalloc_bmalloc_BPlatform.h
+0-22webkit-gtk60/patches/patch-Source_bmalloc_libpas_src_libpas_pas__page__malloc.c
+0-22webkit-gtk60/patches/patch-Source_bmalloc_bmalloc_AvailableMemory.h
+0-19webkit-gtk60/patches/patch-Source_bmalloc_libpas_src_libpas_pas__platform.h
+0-2176 files not shown
+4-27812 files

LLVM/project 19e5608libcxx/include generator

test
DeltaFile
+59-48libcxx/include/generator
+59-481 files

FreeBSD/ports 7980701net/self-service-password pkg-plist distinfo

net/self-service-password: Update 1.7.3 => 1.8.0

While here, switch to HTTPS MASTER_SITES.

Changelog:
https://github.com/ltb-project/self-service-password/releases/tag/v1.8.0

PR:             295876
Reported by:    Krzysztof <ports at bsdserwis.com> (maintainer)
Approved by:    osa, vvd (Mentors, implicit)
MFH:            2026Q2

(cherry picked from commit 5a463e4a7f9d5c969d0bdbe21cb06d28ab1b9f6e)
DeltaFile
+16-3net/self-service-password/pkg-plist
+3-3net/self-service-password/distinfo
+2-2net/self-service-password/Makefile
+21-83 files

FreeNAS/freenas e03f733src/middlewared/middlewared/api/base model.py, src/middlewared/middlewared/pytest/unit/api/base/types test_certificate.py

Address review
DeltaFile
+8-3src/middlewared/middlewared/api/base/model.py
+7-0src/middlewared/middlewared/pytest/unit/api/base/types/test_certificate.py
+15-32 files

LLVM/project 19b0cecclang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

Revert "[clang] Reland: fix getTemplateInstantiationArgs (#201373)"

This reverts commit bcdb732df219fc5de7c16b9712d52aa56b22fed0.
DeltaFile
+429-194clang/lib/Sema/SemaTemplateInstantiate.cpp
+165-275clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+146-150clang/lib/Sema/SemaTemplate.cpp
+95-96clang/include/clang/AST/DeclTemplate.h
+129-59clang/lib/Sema/SemaConcept.cpp
+92-60clang/lib/AST/DeclTemplate.cpp
+1,056-83455 files not shown
+1,715-1,49361 files

FreeBSD/ports 5a463e4net/self-service-password pkg-plist distinfo

net/self-service-password: Update 1.7.3 => 1.8.0

While here, switch to HTTPS MASTER_SITES.

Changelog:
https://github.com/ltb-project/self-service-password/releases/tag/v1.8.0

PR:             295876
Reported by:    Krzysztof <ports at bsdserwis.com> (maintainer)
Approved by:    osa, vvd (Mentors, implicit)
MFH:            2026Q2
DeltaFile
+16-3net/self-service-password/pkg-plist
+3-3net/self-service-password/distinfo
+2-2net/self-service-password/Makefile
+21-83 files

FreeNAS/freenas 19273f8.github/workflows mypy.yml, src/middlewared/middlewared/api/base decorator.py model.py

`middlewared.api` typing hints
DeltaFile
+56-49src/middlewared/middlewared/api/base/decorator.py
+48-33src/middlewared/middlewared/api/base/model.py
+10-13src/middlewared/middlewared/api/base/jsonschema.py
+6-5src/middlewared/middlewared/api/base/excluded.py
+3-3src/middlewared/middlewared/api/base/handler/accept.py
+2-4.github/workflows/mypy.yml
+125-1071 files not shown
+127-1097 files

LLVM/project a1a789ellvm/include/llvm/IR GlobalValue.h, llvm/include/llvm/Transforms/Utils AssignGUID.h

Reland #184065
DeltaFile
+61-17llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+45-30llvm/lib/LTO/LTO.cpp
+57-2llvm/lib/IR/Globals.cpp
+49-3llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+49-0llvm/include/llvm/Transforms/Utils/AssignGUID.h
+42-5llvm/include/llvm/IR/GlobalValue.h
+303-57116 files not shown
+835-400122 files

FreeBSD/ports a98ed7cwww/nextcloud-news distinfo Makefile

www/nextcloud-news: Update to 28.5.1
DeltaFile
+3-3www/nextcloud-news/distinfo
+1-1www/nextcloud-news/Makefile
+4-42 files

FreeNAS/freenas ce250b0.github/workflows mypy.yml, src/middlewared/middlewared/api/base/validators base.py cron.py

`middlewared.api.base.validators` mypy
DeltaFile
+7-4src/middlewared/middlewared/api/base/validators/base.py
+4-4src/middlewared/middlewared/api/base/validators/cron.py
+3-1src/middlewared/middlewared/api/base/validators/filters.py
+2-2src/middlewared/middlewared/api/base/validators/options.py
+2-1.github/workflows/mypy.yml
+1-1src/middlewared/middlewared/utils/filter_list.py
+19-136 files

FreeNAS/freenas 182bfbesrc/middlewared pyproject.toml, src/middlewared/middlewared/api/base/types certificate.py network.py

`middlewared.api.base.types` mypy
DeltaFile
+16-3src/middlewared/middlewared/api/base/types/certificate.py
+10-8src/middlewared/middlewared/api/base/types/network.py
+3-1src/middlewared/middlewared/api/base/types/filesystem.py
+3-1src/middlewared/middlewared/api/base/types/nvmet.py
+3-1src/middlewared/middlewared/api/base/types/string.py
+1-0src/middlewared/pyproject.toml
+36-146 files

FreeNAS/freenas 9a08fb3src/middlewared/middlewared main.py, src/middlewared/middlewared/api/base/server method.py doc.py

`middlewared.api.base.server` mypy
DeltaFile
+51-38src/middlewared/middlewared/api/base/server/ws_handler/rpc.py
+12-9src/middlewared/middlewared/api/base/server/method.py
+10-9src/middlewared/middlewared/api/base/server/doc.py
+10-9src/middlewared/middlewared/api/base/server/legacy_api_method.py
+9-6src/middlewared/middlewared/api/base/server/ws_handler/base.py
+13-2src/middlewared/middlewared/main.py
+105-736 files not shown
+114-8612 files

FreeNAS/freenas 215e422src/middlewared/middlewared/api/base/handler accept.py version.py

`middlewared.api.base.handler` mypy
DeltaFile
+45-17src/middlewared/middlewared/api/base/handler/accept.py
+15-15src/middlewared/middlewared/api/base/handler/version.py
+16-8src/middlewared/middlewared/api/base/handler/inspect.py
+7-4src/middlewared/middlewared/api/base/handler/model_provider.py
+6-5src/middlewared/middlewared/api/base/handler/remove_secrets.py
+7-1src/middlewared/middlewared/api/base/handler/result.py
+96-503 files not shown
+103-559 files

Illumos/gate ea11db4usr/src/test/zfs-tests/cmd/scripts zfstest.ksh, usr/src/test/zfs-tests/doc README

18128 zfs tests need equal sized disks
18130 zfs tests functional/cli_root/zpool_upgrade need more time
18131 zfs test zpool_create_016_pos skip if can't remove swap
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Dan McDonald <danmcd at edgecast.io>
DeltaFile
+26-1usr/src/test/zfs-tests/cmd/scripts/zfstest.ksh
+9-1usr/src/test/zfs-tests/doc/README
+1-1usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_016_pos.ksh
+1-0usr/src/test/zfs-tests/runfiles/common.run
+37-34 files

FreeBSD/src c606eb3lib/libc/tests/gen fts_children_test.c

fts: address post-merge feedback on fts_children_test.c

- Remove fts_check_debug() which is only needed by test cases
  that use the fts_test() helper; fts_children_test.c does not
  call fts_test()
- Remove fts_lexical_compar where traversal order does not matter
  for the test result
- Drop fts_test.h and copy fts_lexical_compar locally
- Pull up NULL argument onto same line as fts_open

Fixes:          e624417db8a1 ("lib/libc/tests/gen: add fts_children() tests")
Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    des, asomers
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2260
DeltaFile
+8-8lib/libc/tests/gen/fts_children_test.c
+8-81 files

LLVM/project 3dad31fclang/lib/Frontend CompilerInstance.cpp, clang/unittests/Frontend CompilerInstanceTest.cpp

[clang] Fix VFS creation crash with missing `DiagnosticConsumer` (#201397)

For convenience, the `CompilerInstance::createVirtualFileSystem()` API
allows omitting the diagnostic consumer for clients that don't care
about missing overlay files and other VFS creation errors. However, even
in that case, the temporary `DiagnosticsEngine` created internally
within the function does need a consumer. This PR sets it up.

rdar://176754115
DeltaFile
+11-0clang/unittests/Frontend/CompilerInstanceTest.cpp
+7-1clang/lib/Frontend/CompilerInstance.cpp
+18-12 files

FreeBSD/src f4424a2sbin/dhclient dhclient.conf.5

dhclient.conf.5: Correct crossreference

PR:             285614
Reviewed by:    ziaee, michaelo, jrm
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D49489
DeltaFile
+8-7sbin/dhclient/dhclient.conf.5
+8-71 files

FreeNAS/freenas 1214e3dsrc/middlewared/middlewared/plugins/truenas_connect internal.py heartbeat.py, src/middlewared/middlewared/pytest/unit/plugins test_truenas_connect.py

Let TrueNAS Connect self-heal after deregistration

This commit fixes an issue where a TrueNAS Connect certificate could not be deleted (even with force) because TNC stayed wedged in a renewal state and never auto-unset itself. The heartbeat is the only thing that unsets TNC and removes its cert when it gets a 401, but its start guard only allowed the CONFIGURED state while the loop it guards ran across all configured states, so it died immediately in CERT_RENEWAL_IN_PROGRESS/SUCCESS/FAILURE and never saw the 401 that signals deregistration.

We widen the guard to match the loop, add CERT_RENEWAL_FAILURE to the configured states (with a boot-time renewal retry), and surface a 401 from the renewal check into the same unset path instead of swallowing it as "renewal not needed".
DeltaFile
+219-2src/middlewared/middlewared/pytest/unit/plugins/test_truenas_connect.py
+30-1src/middlewared/middlewared/plugins/truenas_connect/internal.py
+4-23src/middlewared/middlewared/plugins/truenas_connect/heartbeat.py
+11-0src/middlewared/middlewared/plugins/truenas_connect/acme.py
+7-2src/middlewared/middlewared/plugins/truenas_connect/state.py
+5-0src/middlewared/middlewared/plugins/truenas_connect/__init__.py
+276-281 files not shown
+280-287 files

FreeBSD/ports 37a5124net-p2p/transmission Makefile, net-p2p/transmission-components distinfo pkg-plist.web

net-p2p/transmission{,-components}: Update 4.1.1 => 4.1.2

This is a bugfix release. It fixes 20+ bugs and
has a few performance improvements too. All users
are encouraged to upgrade to this version.

Changelog:
https://github.com/transmission/transmission/releases/tag/4.1.2

PR:             295871
Reported by:    Rafe Sadler <mondo.debater_0q at icloud.com> (maintainer)
Approved by:    osa, vvd (Mentors, implicit)
MFH:            2026Q2

(cherry picked from commit 3d4e19e014be4a01570acb86e65b41edb6f09844)
DeltaFile
+3-3net-p2p/transmission-components/distinfo
+2-2net-p2p/transmission-components/pkg-plist.web
+1-1net-p2p/transmission-components/Makefile
+1-1net-p2p/transmission/Makefile
+7-74 files

FreeBSD/ports 3d4e19enet-p2p/transmission Makefile, net-p2p/transmission-components distinfo pkg-plist.web

net-p2p/transmission{,-components}: Update 4.1.1 => 4.1.2

This is a bugfix release. It fixes 20+ bugs and
has a few performance improvements too. All users
are encouraged to upgrade to this version.

Changelog:
https://github.com/transmission/transmission/releases/tag/4.1.2

PR:             295871
Reported by:    Rafe Sadler <mondo.debater_0q at icloud.com> (maintainer)
Approved by:    osa, vvd (Mentors, implicit)
MFH:            2026Q2
DeltaFile
+3-3net-p2p/transmission-components/distinfo
+2-2net-p2p/transmission-components/pkg-plist.web
+1-1net-p2p/transmission/Makefile
+1-1net-p2p/transmission-components/Makefile
+7-74 files

FreeNAS/freenas da00624src/middlewared/middlewared/api/base/types json_schema.py, src/middlewared/middlewared/api/v25_10_0 common.py

Remove shared pydantic `Field()` from API type aliases
DeltaFile
+30-0src/middlewared/middlewared/api/base/types/json_schema.py
+9-6src/middlewared/middlewared/api/v25_10_4/common.py
+9-6src/middlewared/middlewared/api/v25_10_3/common.py
+9-6src/middlewared/middlewared/api/v25_10_2/common.py
+9-6src/middlewared/middlewared/api/v25_10_0/common.py
+9-6src/middlewared/middlewared/api/v25_10_1/common.py
+75-3074 files not shown
+286-19380 files

LLVM/project 0c1efe4clang/test/CodeGen attr-counted-by.c, clang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c

Merge branch 'main' into users/hvdijk/directx-delay-converting-debug-info
DeltaFile
+2,749-2,749clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,745-2,745clang/test/CodeGen/LoongArch/lasx/builtin.c
+3,288-0lldb/docs/python_api_enums.md
+0-1,434lldb/docs/python_api_enums.rst
+628-628clang/test/CodeGen/attr-counted-by.c
+0-1,080lld/test/wasm/many-functions.ll
+9,410-8,636757 files not shown
+29,024-17,870763 files

FreeBSD/src ee21333lib/libc/tests/gen fts_set_test.c

fts: address post-merge feedback on fts_set_test.c

Per review by des@:

- Remove fts_check_debug() which has no effect in fts_set_test.c, and
  remove unused #include "fts_test.h"
- Add errno = 0 before fts_read() so errno check is meaningful
- Remove fts_lexical_compar where traversal order does not matter
- Change int boolean flags to bool throughout
- Use !saw_inside instead of saw_inside == false
- Move fts_set_clientptr/fts_get_clientptr test inside fts_read()
  loop so the pointer is exercised during active traversal

Fixes:          940142d6103 ("lib/libc/tests/gen: add fts_set() tests")
Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    des, asomers
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2258
DeltaFile
+34-27lib/libc/tests/gen/fts_set_test.c
+34-271 files

LLVM/project 36ba42dllvm/test/Analysis/CostModel/AArch64 masked_expand_load.ll, llvm/test/Analysis/CostModel/RISCV rvv-expandload-compressstore.ll

[IR][CodeGen][mlir] Overload pointer argument for compressstore/expandload intrinsics (#200492)

Update the `llvm.masked.expandload` and `llvm.masked.compressstore`
intrinsics to have overloaded pointer arguments so other address spaces
can be used. This puts these intrinsics in line with other similar
intrinsics, which already have overloaded pointer arguments.

The change may look large, but almost all of the changes are adding
`.p0` to tests.

This is needed for targets that have non-zero default address space, the
problem was found when trying to compile the libc LIT tests for SPIRV,
specifically
[this](https://github.com/llvm/llvm-project/blob/4ac26f45fa8f5c58a90effb903808cb0e908cf1c/libc/test/src/__support/CPP/simd_test.cpp)
one.

Co-Authored-By: Claude Sonnet 4.5 <noreply at anthropic.com>

---------

    [2 lines not shown]
DeltaFile
+288-288llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost-inseltpoison.ll
+288-288llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll
+222-222llvm/test/Analysis/CostModel/AArch64/masked_expand_load.ll
+120-120llvm/test/Analysis/CostModel/RISCV/rvv-expandload-compressstore.ll
+42-42llvm/test/Instrumentation/MemorySanitizer/X86/avx512-intrinsics-upgrade.ll
+39-39llvm/test/Instrumentation/MemorySanitizer/masked-store-load.ll
+999-99922 files not shown
+1,290-1,14128 files

LLVM/project 31f7599llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.cpp SPIRVNonSemanticDebugHandler.h

Simplify code.
DeltaFile
+7-11llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+3-3llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.h
+10-142 files