nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: containrrr/watchtower
Pull request #706 (2020-12-12 12:33:57)

fix cleanup for rolling updates
add images to `cleanupImageIDs` when doing a rolling restart, since otherwise no images will ever be removed.

fixes: #662 


Patch:
diff --git a/internal/actions/update.go b/internal/actions/update.go
index 61f6433..e37e671 100644
--- a/internal/actions/update.go
+++ b/internal/actions/update.go
@@ -73,6 +73,7 @@ func performRollingRestart(containers []container.Container, client container.Cl
 		if containers[i].Stale {
 			stopStaleContainer(containers[i], client, params)
 			restartStaleContainer(containers[i], client, params)
+			cleanupImageIDs[containers[i].ImageID()] = true
 		}
 	}
 


Test patch:
diff --git a/internal/actions/update_test.go b/internal/actions/update_test.go
index d599cde..1a53aad 100644
--- a/internal/actions/update_test.go
+++ b/internal/actions/update_test.go
@@ -80,6 +80,14 @@ var _ = Describe("the update action", func() {
 				Expect(client.TestData.TriedToRemoveImageCount).To(Equal(2))
 			})
 		})
+		When("performing a rolling restart update", func() {
+			It("should try to remove the image once", func() {
+
+				err := actions.Update(client, types.UpdateParams{Cleanup: true, RollingRestart: true})
+				Expect(err).NotTo(HaveOccurred())
+				Expect(client.TestData.TriedToRemoveImageCount).To(Equal(1))
+			})
+		})
 	})
 
 	When("watchtower has been instructed to monitor only", func() {
Repository: bytecodealliance/wasmtime
Pull request #9405 (2024-10-09 14:36:38)

[21.0.x] Remove unused import
Fix CI after recent merge

<!--
Please make sure you include the following information:

- If this work has been discussed elsewhere, please include a link to that
  conversation. If it was discussed in an issue, just mention "issue #...".

- Explain why this change is needed. If the details are in an issue already,
  this can be brief.

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->



Patch:
diff --git a/crates/wasmtime/src/runtime/type_registry.rs b/crates/wasmtime/src/runtime/type_registry.rs
index 410c850b6..2d82652fa 100644
--- a/crates/wasmtime/src/runtime/type_registry.rs
+++ b/crates/wasmtime/src/runtime/type_registry.rs
@@ -20,10 +20,9 @@ use core::{
 };
 use hashbrown::{HashMap, HashSet};
 use wasmtime_environ::{
-    iter_entity_range,
-    packed_option::{PackedOption, ReservedValue},
-    EngineOrModuleTypeIndex, ModuleInternedTypeIndex, ModuleTypes, PrimaryMap, SecondaryMap,
-    TypeTrace, VMSharedTypeIndex, WasmRecGroup, WasmSubType,
+    iter_entity_range, packed_option::ReservedValue, EngineOrModuleTypeIndex,
+    ModuleInternedTypeIndex, ModuleTypes, PrimaryMap, SecondaryMap, TypeTrace, VMSharedTypeIndex,
+    WasmRecGroup, WasmSubType,
 };
 use wasmtime_slab::{Id as SlabId, Slab};
 


Test patch:
diff --git a/tests/all/module.rs b/tests/all/module.rs
index 4fd47c007..db1110127 100644
--- a/tests/all/module.rs
+++ b/tests/all/module.rs
@@ -304,6 +304,7 @@ fn call_indirect_caching_out_of_bounds_table_index() -> Result<()> {
 /// Smoke test for registering and unregistering modules (and their rec group
 /// entries) concurrently.
 #[test]
+#[cfg_attr(miri, ignore)]
 fn concurrent_type_registry_modifications() -> Result<()> {
     let _ = env_logger::try_init();
 
@@ -449,12 +450,16 @@ fn concurrent_type_registry_modifications() -> Result<()> {
     Ok(())
 }
 
-#[wasmtime_test(wasm_features(function_references))]
-fn concurrent_type_modifications_and_checks(config: &mut Config) -> Result<()> {
+#[test]
+#[cfg_attr(miri, ignore)]
+fn concurrent_type_modifications_and_checks() -> Result<()> {
     const THREADS_CHECKING: usize = 4;
 
     let _ = env_logger::try_init();
 
+    let mut config = Config::new();
+    config.wasm_function_references(true);
+
     let engine = Engine::new(&config)?;
 
     let mut threads = Vec::new();
Repository: bytecodealliance/wasmtime
Pull request #9469 (2024-10-14 19:27:02)

test-macros: Fix default return type
This commit fixes the handling of default return types in `wasmtime-test-macros`. Prior to this commit, functions returning `()` inserted a `()` as the return output, which resulted in a syntax error.

This commit fixes this issue by quoting empty tokens when the return type is the default one.

<!--
Please make sure you include the following information:

- If this work has been discussed elsewhere, please include a link to that
  conversation. If it was discussed in an issue, just mention "issue #...".

- Explain why this change is needed. If the details are in an issue already,
  this can be brief.

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->



Patch:
diff --git a/docs/stability-wasm-proposals.md b/docs/stability-wasm-proposals.md
index 7b19aa52c..4eca76c3e 100644
--- a/docs/stability-wasm-proposals.md
+++ b/docs/stability-wasm-proposals.md
@@ -57,14 +57,16 @@ column is below.
 [^8]: A custom fuzzer exists but this isn't enabled yet for general-purpose
     fuzzing.
 
-## Unsupported proposals
-
-* [`branch-hinting`]
-* [`exception-handling`]
-* [`flexible-vectors`]
-* [`memory-control`]
-* [`stack-switching`]
-* [`shared-everything-threads`]
+## Unimplemented proposals
+
+| Proposal                      | Tracking Issue |
+|-------------------------------|----------------|
+| [`branch-hinting`]            | [#9463](https://github.com/bytecodealliance/wasmtime/issues/9463) |
+| [`exception-handling`]        | [#3427](https://github.com/bytecodealliance/wasmtime/issues/3427) |
+| [`flexible-vectors`]          | [#9464](https://github.com/bytecodealliance/wasmtime/issues/9464) |
+| [`memory-control`]            | [#9467](https://github.com/bytecodealliance/wasmtime/issues/9467) |
+| [`stack-switching`]           | [#9465](https://github.com/bytecodealliance/wasmtime/issues/9465) |
+| [`shared-everything-threads`] | [#9466](https://github.com/bytecodealliance/wasmtime/issues/9466) |
 
 [`mutable-globals`]: https://github.com/WebAssembly/mutable-global/blob/master/proposals/mutable-global/Overview.md
 [`sign-extension-ops`]: https://github.com/WebAssembly/spec/blob/master/proposals/sign-extension-ops/Overview.md


Test patch:
diff --git a/crates/test-macros/src/lib.rs b/crates/test-macros/src/lib.rs
index bf59adb89..488ba5e45 100644
--- a/crates/test-macros/src/lib.rs
+++ b/crates/test-macros/src/lib.rs
@@ -218,7 +218,7 @@ fn expand(test_config: &TestConfig, func: Fn) -> Result<TokenStream> {
         };
         let func_name = &func.sig.ident;
         let ret = match &func.sig.output {
-            ReturnType::Default => quote! { () },
+            ReturnType::Default => quote! {},
             ReturnType::Type(_, ty) => quote! { -> #ty },
         };
         let test_name = Ident::new(