NAS-140346 / 27.0.0-BETA.1 / fix NoRowsWereUpdatedException in zettarepl (by yocalebo) (by bugclerk) (#18492)
Commit a08212fc46 (NAS-136213, June 2025) changed datastore.update from
raising RuntimeError('No rows were updated') to raising
`NoRowsWereUpdatedException()`.
The except RuntimeError in flush_state was correct before that commit —
it was specifically catching this "no rows updated" case. But when the
exception type was changed, nobody updated flush_state to match, so it
became a silently broken error handler.
To make matters even more confusing, an unrelated change in master
4b7769149f (NAS-140201) fixed this but because that was a much more
involved change it was never back ported.
Original PR: https://github.com/truenas/middleware/pull/18488
Original PR: https://github.com/truenas/middleware/pull/18491
[3 lines not shown]
[AMDGPU] Use native instructions for f16 to u16/i16 saturated conversion (#186769)
This addresses one of the limitations of #174726 by directly selecting
`v_cvt_[u16/i16]_f16` instructions for conversion between 16-bit types,
as they already handle saturation internally.
[VPlan] Compute cost for predicated loads/stores to invariant address. (#181572)
Update VPReplicateRecipe::computeCost to compute the cost for stores to
invariant addresses only masked by the header mask.
This matches the legacy cost model logic, but it is slightly odd that
the legacy cost model only seems to do this for stores predicated by the
header mask (i.e. tail-folding and not executed conditionally
otherwise). This is probably something we want to re-evaluate
eventually.
PR: https://github.com/llvm/llvm-project/pull/181572
NAS-140345 / 26.0.0-BETA.2 / Fix some first boot spam related to pam (by anodos325) (#18495)
This commit adds pam_truenas.so to the base PAM common-session file that
is installed on the system in our image file. This file is almost
immediately replaced on first boot, but can generate a middleware log
file entry before doing that.
Original PR: https://github.com/truenas/middleware/pull/18487
---------
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
NAS-140345 / 26.0.0-BETA.1 / Fix some first boot spam related to pam (by anodos325) (#18494)
This commit adds pam_truenas.so to the base PAM common-session file that
is installed on the system in our image file. This file is almost
immediately replaced on first boot, but can generate a middleware log
file entry before doing that.
Original PR: https://github.com/truenas/middleware/pull/18487
---------
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
Fix some first boot spam related to pam
This commit adds pam_truenas.so to the base PAM common-session
file that is installed on the system in our image file. This
file is almost immediately replaced on first boot, but can
generate a middleware log file entry before doing that.
(cherry picked from commit 9d43f7298466d5d311f8513d60830374062351dd)
NAS-140345 / Fix some first boot spam related to pam (#18487)
This commit adds pam_truenas.so to the base PAM common-session file that
is installed on the system in our image file. This file is almost
immediately replaced on first boot, but can generate a middleware log
file entry before doing that.
[PrefixMap] Teach lldb to auto-load compilation-prefix-map.json (#187145)
Add a LoadCompilationPrefixMap() helper in SymbolFile::FindPlugin that
walks up from the symbol file's directory looking for a
compilation-prefix-map.json file. When found, each key→value entry is
applied to the module's source path mapping list, allowing LLDB to
resolve source file paths that were rewritten by -fdebug-prefix-map at
build time without requiring manual `settings set target.source-map`.
The JSON file format maps fake paths (as written into debug info) back
to their real on-disk counterparts:
{ "/fake/srcdir": "/real/srcdir" }
Directory results are cached so the filesystem is walked at most once
per unique directory across all modules loaded in a session.
Also apply the module's source path remappings in
SymbolFileDWARFDebugMap::ParseCompileUnitAtIndex when constructing
compile units from N_SO stabs. This mirrors what MakeAbsoluteAndRemap
[5 lines not shown]
[llvm-remarkutil] filter: Support multiple input files (#187162)
Refactor filter into a FilterTool class that can process multiple input
files sequentially and emits the remarks into a single output file.
Pull Request: https://github.com/llvm/llvm-project/pull/187162
[clang][bytecode] Allocate local variables in `InterpFrame` tail storage (#185835)
Instead of heap-allocating an `InterpFrame` and then immediately
heap-allocating more space for the local variables, do only one
heap-allocation and use tail storage for the local variables.
We already know how many bytes we need to for the tail storage after
all.
This also makes `InterpFrame` a little smaller since we don't need to
save an explicit pointer for the local variable memory.
For an artificial test case doing lots of function calls with local
variables like:
```c++
constexpr int plus(int a, int b) {
[27 lines not shown]
www/py-html5lib: fix build with newer setuptools
Use an upstream pull request [0] to handle ast.Str deprecation/removal, as the existing patch fails:
Traceback (most recent call last):
File "/usr/local/lib/python3.13t/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/usr/local/lib/python3.13t/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13t/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/usr/local/lib/python3.13t/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13t/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
[31 lines not shown]
Re-factor trap0 (system calls) into trap_subr.s. Here we pick the flavor
that has the in-line astpending check bcause it's a few cycles faster in
the (common) case where no AST is pending at the end of a system call.