Handle missing compose service label in app query
This commit adds fixes for app.query crashing with KeyError when a
container tagged with the com.docker.compose.project label is missing
the com.docker.compose.service label. A single such container would
take down the entire apps panel since the unconditional label lookup
in translate_resources_to_desired_workflow raised before any app data
could be returned.
The label is now read defensively, falling back to the container name
(or 'unknown') for the displayed service_name. The container is still
counted and its ports, volumes, images, and state are still aggregated
normally.
(cherry picked from commit 8c8019091c9b6d830eff19e79966546b9659d3eb)
NAS-140732 / 27.0.0-BETA.1 / Handle missing compose service label in app query (#18889)
This commit adds fixes for app.query crashing with KeyError when a
container tagged with the com.docker.compose.project label is missing
the com.docker.compose.service label. A single such container would take
down the entire apps panel since the unconditional label lookup in
translate_resources_to_desired_workflow raised before any app data could
be returned.
The label is now read defensively, falling back to the container name
(or 'unknown') for the displayed service_name. The container is still
counted and its ports, volumes, images, and state are still aggregated
normally.
This can potentially happen when user has manually deployed containers.
[clang][NFC] Mark CWG2629 as implemented and add a test (#195490)
This is ill-formed:
```cpp
switch (0.0) {}
```
Before [CWG2629](https://wg21.link/cwg2629) though, this was allowed:
```cpp
switch (double d = 0.0) {} // Value of 'd' is implicitly converted to an integer
```
Clang however has always rejected both: https://godbolt.org/z/GYc4hhrnz
[clang-tidy] Preserve typedef comments in `modernize-use-using` (#180372)
Keep comment blocks between the typedef type and name by capturing the
raw lexer range and avoid injecting unrelated tokens into the
replacement.
Fixes https://github.com/llvm/llvm-project/issues/159518.
usergroups: Update venues for Hamburg and Portland
Hamburg changed venue after 30 years.
Include link to their meeting page and update venue to match.
Reported by cracauer@ on
https://forums.freebsd.org/threads/102512/#post-757478
Portland website has updated their meeting link.
Calagator search now quotes "BSD Pizza Night".
This removes false positives.
Reviewed by: ziaee
Signed-off-by: bigsneaky at duck.com
Closes: https://github.com/freebsd/freebsd-doc/pull/663
[ELF] maybeWarnUnorderableSymbol: drop redundant `d &&`, assert isShared. NFC (#195543)
Test Defined first via dyn_cast. Lazy/Common/Placeholder cannot reach
here: readCallGraph runs after replaceCommonSymbols, buildSectionOrder
runs after demoteSymbolsAndComputeIsPreemptible, and redirectSymbols
detaches Placeholder foo at v1 stubs from objectFiles.
In symbol-ordering-file-warnings.s, add a common-symbol case and use
`count 0` for empty-output checks.
sys/rangelock.h: explicitly enumerate padding at the end of the structure
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision:
sys/vnode.h: remove stale comment
The source sweep is not going to happen.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D56611