instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
salesforce__multicloudj__250 | salesforce/multicloudj | 250 | defect | d41dec1832fe35139a6877460eb155c1eeda8f48 | 8bd634555939e65b16fe03fffd53a412cbf2a266 | blobstore: add checksum support in putobject | ## Summary
< Provide a brief description of the changes in this PR >
## Some conventions to follow
1. add the module name as a prefix
- for example: add a prefix: `docstore:` for document store module, `blobstore` for Blob Store module
2. for a test only PR, add `test:`
3. for a perf improvement only PR, a... | diff --git a/blob/blob-ali/src/main/java/com/salesforce/multicloudj/blob/ali/AliTransformer.java b/blob/blob-ali/src/main/java/com/salesforce/multicloudj/blob/ali/AliTransformer.java
index c5a9fe32b..d65715be5 100644
--- a/blob/blob-ali/src/main/java/com/salesforce/multicloudj/blob/ali/AliTransformer.java
+++ b/blob/bl... | 5 | 3 | 0 | [{"id": "G0", "claim": "Use StringUtils.isNotBlank() to check for both null and empty checksum values instead of the explicit null-and-isEmpty checks in the Ali and AWS transformers.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reference the t... | null |
salesforce__multicloudj__283 | salesforce/multicloudj | 283 | defect | fafd8025baf759740ffa13aa8dba1bfd2dfa92e4 | 98cbc7b5849a32be94c9428e4eca49d1329fcb13 | sts: fix the aws web identity token provider overrider | ## Summary
< Provide a brief description of the changes in this PR >
## Some conventions to follow
1. add the module name as a prefix
- for example: add a prefix: `docstore:` for document store module, `blobstore` for Blob Store module
2. for a test only PR, add `test:`
3. for a perf improvement only PR, a... | diff --git a/multicloudj-common-aws/src/main/java/com/salesforce/multicloudj/common/aws/CredentialsProvider.java b/multicloudj-common-aws/src/main/java/com/salesforce/multicloudj/common/aws/CredentialsProvider.java
index 0ff426602..3726ab29c 100644
--- a/multicloudj-common-aws/src/main/java/com/salesforce/multicloudj/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "Could the code use descriptive variable names (e.g. rename the `r` lambda parameter) to make it easier to follow?", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
salesforce__multicloudj__302 | salesforce/multicloudj | 302 | defect | 2e39086c243e7fb3dac13c09e5019be8dd4f4c70 | 351098e7b568c18bb4bc355cebf87bc0fc89f3f5 | registry: refactor exception handling | ## Summary
This PR refactors exception handling in the registry module so it uses SDK exceptions instead of JDK exceptions.
This addresses the exception handling comments from https://github.com/salesforce/multicloudj/pull/291.
## Some conventions to follow
1. add the module name as a prefix
- for example:... | diff --git a/registry/registry-client/src/main/java/com/salesforce/multicloudj/registry/client/ProviderSupplier.java b/registry/registry-client/src/main/java/com/salesforce/multicloudj/registry/client/ProviderSupplier.java
index 8efcb18fc..493388fe3 100644
--- a/registry/registry-client/src/main/java/com/salesforce/mul... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new catch (IOException) block in AuthChallenge.discover seems unnecessary because, as far as the reviewer can tell, only parse() — which throws UnknownException and InvalidArgumentException — can throw inside the try.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "... | null |
salesforce__multicloudj__314 | salesforce/multicloudj | 314 | defect | 30be422ab6f46974eefbf02e7ab80102ec6739f4 | 928a107a874e6b16416d61f406c66a1437086609 | registry: implement pull and extract in AbstractRegistry | ## Summary
Cherry-pick of PR #306 (by @iamabhilaksh) rebased onto latest `main` with merge conflicts resolved.
### Conflict Resolution Notes
- Unit tests in this PR (`AbstractRegistryTest`, `ImageReferenceTest`, `GcpRegistryTest`) override the existing tests on `main`, using PR #306's versions which cover more m... | diff --git a/registry/registry-client/src/main/java/com/salesforce/multicloudj/registry/driver/AbstractRegistry.java b/registry/registry-client/src/main/java/com/salesforce/multicloudj/registry/driver/AbstractRegistry.java
index 45553658d..04847ba16 100644
--- a/registry/registry-client/src/main/java/com/salesforce/mul... | 1 | 1 | 1 | [{"id": "G0", "claim": "The client module should not depend on the AWS SDK: remove the software.amazon.awssdk.utils.CollectionUtils import that the pull request added to Platform.java.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
salesforce__multicloudj__353 | salesforce/multicloudj | 353 | defect | 2ede9254bb634d600eb2d56f76fba7a6e20bef4a | 4aa10b2b52e4004aa722b9fc0d9acc4d24f960d1 | registry: delegate auth header construction to cloud-specific registry implementations | ## Summary
This PR refactors authentication header construction in the registry module by moving it out of the
cloud-agnostic `OciHttpTransport` and into each cloud-specific registry implementation,
following the principle that providers should own their own auth logic.
### Problem
`OciHttpTransport` previou... | diff --git a/registry/registry-aws/src/main/java/com/salesforce/multicloudj/registry/aws/AwsRegistry.java b/registry/registry-aws/src/main/java/com/salesforce/multicloudj/registry/aws/AwsRegistry.java
index b0af2cd3e8..599971bbf2 100644
--- a/registry/registry-aws/src/main/java/com/salesforce/multicloudj/registry/aws/A... | 4 | 4 | 1 | [{"id": "G0", "claim": "The getAuthToken method in AwsRegistry, left package-visible by this change, should be declared private.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added RegistryAuthenticator interface is redundant with AbstractRegi... | null |
salesforce__multicloudj__379 | salesforce/multicloudj | 379 | defect | 3f1945c13e725087ae757ef0b21f9c187cc4e8a2 | 9d4b4e262ce46d2471accf7ba5e40a94ab3a6555 | test: enable upload happyPath conf test in GCP blobstore | ## Summary
Enable `testUpload_happyPath` conformance test for GCP by adding a WireMock `MultipartBoundaryTransformer`.
The test exercises 4 upload types × 2 buckets (versioned + non-versioned) = 8 upload scenarios:
| UploadType | GCP SDK method | HTTP protocol | Boundary issue? |
|------------|---------------... | diff --git a/blob/blob-client/src/test/java/com/salesforce/multicloudj/blob/client/AbstractBlobStoreIT.java b/blob/blob-client/src/test/java/com/salesforce/multicloudj/blob/client/AbstractBlobStoreIT.java
index 2ec0ed087..85ef66396 100644
--- a/blob/blob-client/src/test/java/com/salesforce/multicloudj/blob/client/Abstr... | 2 | 2 | 0 | [{"id": "G0", "claim": "getWireMockExtensions should not use the fully-qualified class name of MultipartBoundaryTransformer as a string literal; it should reference the class via an import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tran... | null |
salesforce__multicloudj__380 | salesforce/multicloudj | 380 | defect | 72ab46dbafcc4ce826da43444d2659c40fdda658 | 4812e3b13e968c6459816e5599e7c10c52662e52 | blobstore: support isObjectLockSupported in in memory blobstore | ## Summary
< Provide a brief description of the changes in this PR >
## Some conventions to follow
1. add the module name as a prefix
- for example: add a prefix: `docstore:` for document store module, `blobstore` for Blob Store module
2. for a test only PR, add `test:`
3. for a perf improvement only PR, a... | diff --git a/blob/blob-inmemory/src/main/java/com/salesforce/multicloudj/blob/inmemory/InMemoryBlobStore.java b/blob/blob-inmemory/src/main/java/com/salesforce/multicloudj/blob/inmemory/InMemoryBlobStore.java
index e01e5f9fe..2372c038f 100644
--- a/blob/blob-inmemory/src/main/java/com/salesforce/multicloudj/blob/inmemo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ~10 lines of versioned object lookup code duplicated across getObjectLock, updateObjectRetention, and updateLegalHold should be extracted into a shared helper method to reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
salesforce__multicloudj__391 | salesforce/multicloudj | 391 | defect | d8556bcf488367bea448a0c72ee4de8bf7fa2e27 | 198e279bdbaa30d08142f33f890215477a2c1672 | blobstore: Leverage the transferManager for GCP directory operations | ## Summary
local test result:
=== STARTING DIRECTORY OPERATIONS TEST ===
Provider: gcp
=== Creating Test Directory ===
Test directory created at: /tmp/test-directory
=== Testing Directory Upload (with tags) ===
Calling asyncClient.uploadDirectory() with prefix=uploads/
Directory upload completed; failedTransf... | diff --git a/blob/blob-gcp/src/main/java/com/salesforce/multicloudj/blob/gcp/GcpBlobStore.java b/blob/blob-gcp/src/main/java/com/salesforce/multicloudj/blob/gcp/GcpBlobStore.java
index c1398b767..6068827cd 100644
--- a/blob/blob-gcp/src/main/java/com/salesforce/multicloudj/blob/gcp/GcpBlobStore.java
+++ b/blob/blob-gcp... | 11 | 10 | 1 | [{"id": "G0", "claim": "doUploadDirectory has grown too large and should be broken down into smaller functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new comment explaining why sourceDir is pinned to its absolute form is hard for a ... | null |
salesforce__reactive-grpc__156 | salesforce/reactive-grpc | 156 | defect | 8d774b79e891e346654c5daab8efc5e217b16fae | 201604ee69b89f4be4384114b29871785fe0d66e | provides draft support for java 11 | This PR is a draft of Java 11 support in Reactive-GRPC (see #155 )
| diff --git a/.travis.yml b/.travis.yml
index 681d088f..584c1ddd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
language: java
jdk:
- oraclejdk8
+ - openjdk11
after_success:
- bash <(curl -s https://codecov.io/bash)
\ No newline at end of file
diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The indentation in the jacoco plugin section of pom.xml is broken (tab characters mixed into the space-indented XML this pull request adds).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions why these ... | null |
salesforce__reactive-grpc__177 | salesforce/reactive-grpc | 177 | defect | 483029679fa5bde2579232891be0e43186fb25a0 | df7ce769efab6cc0cec55e5577cdfa408819da6f | Create Bazel rules for generating reactive bindings | Hi, finally some code!
Resolves #164
This adds the following rules for generating reactive bindings using Bazel.
* `rx_grpc_library`
* `reactor_grpc_library`
Notes:
1. I've tried to depend on the same dependency versions as used by Maven but was not able to for grpc-java because the .bzl script in that re... | diff --git a/.bazelignore b/.bazelignore
new file mode 100644
index 00000000..28418cdb
--- /dev/null
+++ b/.bazelignore
@@ -0,0 +1 @@
+demos/bazel
diff --git a/.gitignore b/.gitignore
index 55aea38e..331f88ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,4 +9,6 @@ dependency-reduced-pom.xml
.settings/
.checkstyle
.... | 2 | 2 | 0 | [{"id": "G0", "claim": "If the generator misbehaves when source code info is missing from the descriptor, comments should be made optional — and more generally the generator's reliance on Locations is sub-optimal and could be refactored to not use location information.", "category": "design", "verdict": "supported", "p... | null |
salesforce__reactive-grpc__183 | salesforce/reactive-grpc | 183 | defect | e7aa649e9a7d4af87fa17ccd6100c53758ee717d | 82380a7d3740f49010eeb02b9c20ba62f3e9b4a3 | Provide completeConsumer during subscription to handle empty messages | Description
--
[`ServerCalls::oneToOne`](https://github.com/salesforce/reactive-grpc/blob/2b571218655674450ddd0b45af38b5bb0afd0915/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java#L41-L50) and [`ServerCalls::manyToOne`](https://github.com/salesforce/reactive-grpc/blob/2b57121... | diff --git a/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java b/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java
index 3f19dc85..3fef80a4 100644
--- a/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java
... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the two modified methods in ServerCalls.java, the response's onNext(value) should not be followed by an explicit onCompleted() because completion is already delegated via the added completeConsumer (responseObserver::onCompleted), so onCompleted() would be called twice.", "category": "correct... | null |
salesforce__reactive-grpc__301 | salesforce/reactive-grpc | 301 | defect | 4040f60842e8ddbb244049e1b1409c2e5360bcfe | 1413c4a6453fe9411d49c972f2477c49a53e1ade | Unwrap incoming `Mono`/`Single` parameters | It is uncommon to have methods accept `Mono` as a parameter. The fact that `ServerCalls` did `Mono.just` is also a good indicator. This change makes single-input methods look like `Mono<Response> foo(Request request)` instead of `Mono<Response> foo(Mono<Request> request)`.
It is backward compatible and will delegate... | diff --git a/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java b/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java
index 032d33b5..ad094aab 100644
--- a/reactor/reactor-grpc-stub/src/main/java/com/salesforce/reactorgrpc/stub/ServerCalls.java
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The PR should also apply the incoming-parameter unwrapping (single TRequest instead of Mono/Single wrapper) to the RxJava (and RxJava 3) stubs, not just Reactor.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "End-to-end tests shou... | null |
salsa-rs__salsa__1018 | salsa-rs/salsa | 1,018 | defect | cdd0b85516a52c18b8a6d17a2279a96ed6c3e198 | 470ee4cc6b747c45316acfcbab4c41d75025435e | Track cycle function dependencies as part of the cyclic query | This fixes a bug in our fixpoint handling: the dependencies introduced by the cycle recovery function were recorded as dependencies of the outer function rather than the query with cycle handling.
This PR also requires that a cycle recovery function not introduce any new cycles, since it's unclear how to handle t... | diff --git a/src/active_query.rs b/src/active_query.rs
index bb5987fcd..c80cded3b 100644
--- a/src/active_query.rs
+++ b/src/active_query.rs
@@ -91,6 +91,10 @@ impl ActiveQuery {
.mark_all_active(active_tracked_ids.iter().copied());
}
+ pub(super) fn take_cycle_heads(&mut self) -> CycleHeads {
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The comment explaining why a cycle head isn't allowed to be final is hard to parse: it is unclear what `B` is, how it relates to the cycle head being examined, and how the head is known to depend on the initial value of `B`.", "category": "documentation", "verdict": "supported", "priority": "P2"... | null |
salsa-rs__salsa__1036 | salsa-rs/salsa | 1,036 | defect | 55e5e7d32fa3fc189276f35bb04c9438f9aedbd1 | fb38d5ae25ef208b0106190145b1973d047ec582 | Require interned structs' fields to be `Update` | To fix an unsoundness - #985.
There are two breaking changes here:
1. Interned fields and interned function fields are required to be `Update` (or `'static`)
2. `unsafe(non_update_return_types)` in tracked fn options was renamed to `unsafe(non_update_types)` (and includes interned parameters as well now).
F... | diff --git a/components/salsa-macro-rules/src/setup_interned_struct.rs b/components/salsa-macro-rules/src/setup_interned_struct.rs
index b069bcac9..0aee674b6 100644
--- a/components/salsa-macro-rules/src/setup_interned_struct.rs
+++ b/components/salsa-macro-rules/src/setup_interned_struct.rs
@@ -78,6 +78,8 @@ macro_rul... | 3 | 3 | 1 | [{"id": "G0", "claim": "The explanatory comment about the diagnostic span should move to the new `assert_update` function.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Two non-compile tests should be added: one for an interned struct storing a r... | null |
salsa-rs__salsa__105 | salsa-rs/salsa | 105 | defect | ac18a7215bdbb4712f012f517ae79197a1dd3f96 | 6d2cfe84fa52f4a96de8cd179d37c7e964e7b831 | Issue 66 transitive cancelation | An alternate approach to fix #66. The basic problem is that `is_current_revision_canceled` was treated as observing *nothing* when it returned false, but that is only valid if there has never been a value of *true* observed. This PR revises how we track cancellation, which can actually be somewhat simpler since we no l... | diff --git a/src/derived.rs b/src/derived.rs
index 0475b5e0d..e5f7b81e3 100644
--- a/src/derived.rs
+++ b/src/derived.rs
@@ -281,6 +281,13 @@ where
) -> Result<StampedValue<Q::Value>, CycleDetected> {
let runtime = db.salsa_runtime();
+ debug!(
+ "{:?}({:?}): read_upgrade(revision_now=... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add an assertion that the query lock is not write-locked when the global revision is incremented (e.g. via `lock.try_read().is_some()`, though `parking_lot` may lack a lock-state API), to back the new doc claim that only one thread attempts the increment at a time.", "category": "testing", "verd... | null |
salsa-rs__salsa__1050 | salsa-rs/salsa | 1,050 | defect | 9b62468ef569bc49c37def3bfaa3df1092adb451 | 1ee77022d00829d99f988d21adb5c72e1fadb80b | Collect cycle heads transitively | I started looking into fixing the `maybe_changed_after` unsoundness when I noticed that I don't fully understand how it can happen that `outer_cycle` is `None` for a query that has cycle heads but doesn't depend on itself. It's essential that there's always an outer cycle in that case that finalizes the cycle participa... | diff --git a/src/function/execute.rs b/src/function/execute.rs
index a4dbe4986..bb2a22e0b 100644
--- a/src/function/execute.rs
+++ b/src/function/execute.rs
@@ -479,8 +479,8 @@ fn outer_cycle(
stack
.iter()
.find(|active_query| {
- cycle_heads.contains(&... | 6 | 2 | 2 | [{"id": "G0", "claim": "In collect_recursive, depends_on_self is overwritten with each recursive call's result instead of being OR-accumulated, so only the last recursive call's self-dependency is preserved; it should use |=.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
salsa-rs__salsa__1052 | salsa-rs/salsa | 1,052 | defect | 103fa518298432a5f5bdb75e3727a179e3b056cf | d448738f5514faf957e2101033a468e18f224dff | Add `DidFinalizeCycle` event, add more tests for cyclic nested queries | This adds a new `DidFinalizeCycle` event that Salsa emits when the outermost cycle head is finalized.
This PR also adds two new tests:
1. A test where the nested cycle converges before the outer cycle converges (it can be finalized before the outer cycle
2. A test where the nested cycle never converges, but the... | diff --git a/src/event.rs b/src/event.rs
index 310c565f0..a9ab05787 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -59,12 +59,21 @@ pub enum EventKind {
database_key: DatabaseKeyIndex,
},
+ /// Salsa starts a new fixpoint iteration for the cycle with `database_key` as it's
+ /// outermost cycle.
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment for WillIterateCycle should read \"as its\" instead of \"as it's\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment for DidFinalizeCycle should read \"as its\" instead of \"as it's\".", "categ... | null |
salsa-rs__salsa__362 | salsa-rs/salsa | 362 | defect | 80d0d141945051ec86ecd979ac06cca1e364b27e | 760b8f27ccf5d5bda460579251fae08e7a8fa913 | Implement Setter API | Fixes #329 | diff --git a/components/salsa-2022-macros/src/input.rs b/components/salsa-2022-macros/src/input.rs
index a09794c9b..8408f6b38 100644
--- a/components/salsa-2022-macros/src/input.rs
+++ b/components/salsa-2022-macros/src/input.rs
@@ -93,11 +93,11 @@ impl InputStruct {
let field_setters: Vec<syn::ImplItemMethod>... | 2 | 2 | 0 | [{"id": "G0", "claim": "The setter's terminating method should be named `to` instead of `to_value` to keep the simplest case short (`func.set_name(db).to(value)`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There are no tests of durability; the autho... | null |
salsa-rs__salsa__363 | salsa-rs/salsa | 363 | defect | 80d0d141945051ec86ecd979ac06cca1e364b27e | 6561ef646b00c454aad22afde8ccc3f300470aa1 | Add method to change LRU capacity at runtime | closes #355 | diff --git a/components/salsa-2022-macros/src/tracked_fn.rs b/components/salsa-2022-macros/src/tracked_fn.rs
index 4ce59b3de..8854d2c65 100644
--- a/components/salsa-2022-macros/src/tracked_fn.rs
+++ b/components/salsa-2022-macros/src/tracked_fn.rs
@@ -288,6 +288,7 @@ fn wrapper_fns(
let accumulated_fn = accumulat... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new test asserts 192 potatoes after the GC trigger where old salsa expects 128, so the expected count in the ported test is likely wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ported lru_keeps_dependency_info... | null |
salsa-rs__salsa__392 | salsa-rs/salsa | 392 | defect | e99e45d35a7901d655a7e6df949101cc9b428b8b | dbc4154419484686c0295f77a2e4f08346416547 | Allow creation of tracked methods | Fixes #319.
This allows users to annotate impl blocks with `#[salsa::tracked]` and
then create tracked methods by marking individual functions with
`#[salsa::tracked]`.
Note this requires your code that looks like:
```rust
#[salsa::tracked(jar = Jar)]
impl MyInput {
#[salsa::tracked]
fn tracked_fn(... | diff --git a/components/salsa-2022-macros/Cargo.toml b/components/salsa-2022-macros/Cargo.toml
index 768ef0ac0..2cc459838 100644
--- a/components/salsa-2022-macros/Cargo.toml
+++ b/components/salsa-2022-macros/Cargo.toml
@@ -10,5 +10,5 @@ proc-macro = true
heck = "0.4"
proc-macro2 = "1.0"
quote = "1.0"
-syn = { vers... | 6 | 5 | 3 | [{"id": "G0", "claim": "Trait impls of #[salsa::tracked] are accepted without an error, but nothing shows they work, so a test demonstrating a tracked method on a trait impl should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The macro shoul... | null |
salsa-rs__salsa__393 | salsa-rs/salsa | 393 | defect | e99e45d35a7901d655a7e6df949101cc9b428b8b | 3be95404176c86dd4ec35c786f243f6bae27dcb0 | Allow "constant" tracked functions | Fixes #323.
This adds support for tracked functions with only a database as input,
that is, it does not take a salsa struct.
I'm not entirely convinced by this, it feels like it works somewhat accidentally and may be fragile to changes. I'm happy if this just get closed as I was mostly playing around to see how ... | diff --git a/components/salsa-2022-macros/src/tracked_fn.rs b/components/salsa-2022-macros/src/tracked_fn.rs
index 26a818b25..74129ea1f 100644
--- a/components/salsa-2022-macros/src/tracked_fn.rs
+++ b/components/salsa-2022-macros/src/tracked_fn.rs
@@ -17,10 +17,10 @@ pub(crate) fn tracked(
}
fn tracked_fn(args: Ar... | 1 | 1 | 0 | [{"id": "G0", "claim": "Using `()` as the salsa struct for constant tracked functions doesn't feel great, and the reviewer proposes fixing it by introducing a dedicated `Singleton` unit type (e.g., `salsa::id::Singleton`) as the salsa struct instead of `()`.", "category": "design", "verdict": "supported", "priority": "... | null |
salsa-rs__salsa__399 | salsa-rs/salsa | 399 | defect | 657b85682b5371ce7b5ef5697ef0fcd96351406d | 13facddde2eeb40cfafc31caf65d084dc3d76bac | Make getters and setters have the visibility of their field | resolves #398
Currently `#[salsa::input]` and `#[salsa::tracked]` structs made all getters and setters public, regardless of the visibility of the field and the getters for `#[salsa::interned]` had the visibility of the struct itself. This pull request changes the generated impl's to use the visibility of each fiel... | diff --git a/calc-example/calc/src/ir.rs b/calc-example/calc/src/ir.rs
index fe8c24dd1..3c2a3aea7 100644
--- a/calc-example/calc/src/ir.rs
+++ b/calc-example/calc/src/ir.rs
@@ -7,7 +7,7 @@ use ordered_float::OrderedFloat;
#[salsa::input]
pub struct SourceProgram {
#[return_ref]
- text: String,
+ pub text: ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Compile-fail tests should be added to demonstrate that the new getter/setter visibility behavior is working.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
salsa-rs__salsa__401 | salsa-rs/salsa | 401 | defect | 657b85682b5371ce7b5ef5697ef0fcd96351406d | 3ca70e6b042e3af2078da06e77085b048cfb0924 | Support singleton inputs #337 | ## What?
In #337, it was requested `Singleton` input option be made available for Input structs with a single field. This PR addresses that
## How?
I basically followed the mentoring instructions made available.
Fixes #337 | diff --git a/components/salsa-2022-macros/src/accumulator.rs b/components/salsa-2022-macros/src/accumulator.rs
index 4a6537d4f..e3323a007 100644
--- a/components/salsa-2022-macros/src/accumulator.rs
+++ b/components/salsa-2022-macros/src/accumulator.rs
@@ -25,6 +25,8 @@ impl crate::options::AllowedOptions for Accumulat... | 5 | 5 | 3 | [{"id": "G0", "claim": "The generic parameters should be merged into a single bound like `SalsaStruct<A: AllowedOptions + AllowedModes>`, and `AllowedModes` is unnecessary anyway because option parsing can reject the `singleton` flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
salsa-rs__salsa__413 | salsa-rs/salsa | 413 | defect | f0fe691d3f902fab4ea3f419ea4f7493b46a5030 | 56bd5f586514805a6e64358d7d645773e48e3d6f | panic when reading fields of tracked structs from older revisions | fix #407 | diff --git a/components/salsa-2022/src/function/maybe_changed_after.rs b/components/salsa-2022/src/function/maybe_changed_after.rs
index 2888b451f..391d70689 100644
--- a/components/salsa-2022/src/function/maybe_changed_after.rs
+++ b/components/salsa-2022/src/function/maybe_changed_after.rs
@@ -170,12 +170,18 @@ where... | 3 | 3 | 1 | [{"id": "G0", "claim": "There is still a problem: directly or indirectly reading the fields of a tracked struct created in the current query panics once a new revision is triggered (tracked_fn_read_own_entity, deletion-cascade), and the discussion converged on fixing it by merging the input/output lists and marking out... | null |
salsa-rs__salsa__414 | salsa-rs/salsa | 414 | defect | f8f6dbd3490a439d970fde4020e06bbe7432b60f | 32f0ce0cffc0e3695a3292fb740d378cdcf19408 | better debugging for input structs by including id fields | Ref: #405
Fixes #415 | diff --git a/components/salsa-2022-macros/src/input.rs b/components/salsa-2022-macros/src/input.rs
index 0027821e7..4c019c9fd 100644
--- a/components/salsa-2022-macros/src/input.rs
+++ b/components/salsa-2022-macros/src/input.rs
@@ -51,8 +51,6 @@ impl crate::options::AllowedOptions for InputStruct {
impl InputStruct... | 3 | 3 | 2 | [{"id": "G0", "claim": "A setter must not be generated for an `#[id]` field on input structs, and a negative test should be added showing that no such setter exists.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "On singleton inputs an `#[id]` field... | null |
salsa-rs__salsa__589 | salsa-rs/salsa | 589 | defect | a20b894cc2318c5a6077659e2d8aef7c784c38e7 | f5bbd2595670e3e2037a9675811251fe71ffb663 | Add a way to use reference-types in InternedStruct::new | Closes #583 | diff --git a/Cargo.toml b/Cargo.toml
index d3815b181..8a8e90639 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,7 +10,7 @@ description = "A generic framework for on-demand, incrementalized computation (e
[dependencies]
arc-swap = "1"
crossbeam = "0.8"
-dashmap = "6"
+dashmap = { version = "6", features = ["raw-api"]... | 11 | 8 | 1 | [{"id": "G0", "claim": "Add `Lookup` implementations for `Vec` and arrays (`[]`) too, and maybe for `PathBuf` and `Path`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining that the raw shard API must be used here to avoid creating a... | null |
salsa-rs__salsa__591 | salsa-rs/salsa | 591 | defect | af2ec49d8060c16dab28e25111950eb7b09ff590 | b71fd3680188d9ab89c835d4e9831c3d22b6b12b | Add IngredientIndex to KeyStruct | Closes #590 | diff --git a/src/active_query.rs b/src/active_query.rs
index 6d524b6fc..88942bab2 100644
--- a/src/active_query.rs
+++ b/src/active_query.rs
@@ -7,7 +7,7 @@ use crate::{
key::{DatabaseKeyIndex, DependencyIndex},
tracked_struct::{Disambiguator, KeyStruct},
zalsa_local::EMPTY_DEPENDENCIES,
- Cycle, Revi... | 5 | 5 | 0 | [{"id": "G0", "claim": "Remove the DatabaseKeyIndex from the tracked_struct_ids id map, since the ingredient index can now be queried from the key.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Replace the anonymous (IngredientIndex, u64) key... | null |
salsa-rs__salsa__596 | salsa-rs/salsa | 596 | defect | af2ec49d8060c16dab28e25111950eb7b09ff590 | 6f58b1d248b35c8890f54c79ffe3906f9fa12b5c | fix: Inconsistent behaviour with lifetime elision on tracked fn | Fixes #519
I think that there would be roughly two options for fixing this;
1. Returning error while proc macro expansion
2. Inserting a type alias like `type __T<'db> = DbInputArgType;` inside the expanded function's body so that the expanded code fails to compile
In this PR, I chose the first one because th... | diff --git a/components/salsa-macros/src/tracked_fn.rs b/components/salsa-macros/src/tracked_fn.rs
index 6ebac551e..90d52e81a 100644
--- a/components/salsa-macros/src/tracked_fn.rs
+++ b/components/salsa-macros/src/tracked_fn.rs
@@ -1,4 +1,5 @@
use proc_macro2::{Literal, Span, TokenStream};
+use quote::ToTokens;
use ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a variant of the compile-fail test where the tracked fn lifetime parameter is explicitly named (e.g. 'db1) to show how that name is reflected in the error message, kept to a single such test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
salsa-rs__salsa__614 | salsa-rs/salsa | 614 | defect | e4d36daf2dc4a096009753b6e326cf44e6c6e18a | fac605376128a7983eb8646bc0240283e6f2f075 | Assign memo ingredients per salsa-struct-ingredient | Closes #600 | diff --git a/components/salsa-macro-rules/src/setup_tracked_fn.rs b/components/salsa-macro-rules/src/setup_tracked_fn.rs
index 79ec96d50..1a23ebeab 100644
--- a/components/salsa-macro-rules/src/setup_tracked_fn.rs
+++ b/components/salsa-macro-rules/src/setup_tracked_fn.rs
@@ -199,7 +199,22 @@ macro_rules! setup_tracked... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new salsa_struct_map table (salsa-struct TypeId to IngredientIndex) is undesirable; find a better way to pass the salsa struct's ingredient index to its tracked function's ingredient, such as a method on SalsaStructInDb or a lookup_jar_by_type method on JarAux.", "category": "design", "verdi... | null |
salsa-rs__salsa__788 | salsa-rs/salsa | 788 | defect | 296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc | 8b820db0c1afb171c919fd7754a1c8d45f181089 | fix: Dereferencing freed memos when verifying provisional memos | Fixes https://github.com/salsa-rs/salsa/issues/785
The root cause of #785 is that Salsa tries to load the memo of a cycle head that is stored on a tracked struct that has been freed.
The main problem is that we tried to verify `validate_provisional` even in cases where the query is from a past revision, in which... | diff --git a/src/function/fetch.rs b/src/function/fetch.rs
index 6df5b0372..f39e21b8a 100644
--- a/src/function/fetch.rs
+++ b/src/function/fetch.rs
@@ -82,14 +82,16 @@ where
let memo_guard = self.get_memo_from_table_for(zalsa, id, memo_ingredient_index);
if let Some(memo) = memo_guard {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Storing `verified_final` only inside `if in_heads` is not technically required and it would be correct to do it regardless of `in_heads` — above, where the memo is marked as verified in this revision — so that no memo is ever marked verified without it also being safe to mark `verified_final`.",... | null |
salsa-rs__salsa__790 | salsa-rs/salsa | 790 | defect | b165ba7bd1b2a0112ce574a082ab8ea5102252ac | 1af0eecf652a1fb0e7ed5cc7ae3e4f00304dbcbe | add WillIterateCycle event | I would like to write tests asserting about cycles iterated and log cycles iterated as a metric. Add a `WillIterateCycle` event and fire it whenever a cycle head is about to iterate the cycle again. Update some cycle tests accordingly. | diff --git a/src/event.rs b/src/event.rs
index d2d72dc85..6c97ca56d 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -59,6 +59,11 @@ pub enum EventKind {
database_key: DatabaseKeyIndex,
},
+ WillIterateCycle {
+ /// The database-key for the cycle head. Implements `Debug`.
+ database_key:... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new WillIterateCycle event should also include the iteration count, which the reviewer would find useful to see in logs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
salsa-rs__salsa__801 | salsa-rs/salsa | 801 | defect | ab7ecb40cab33ddef0000753893fd4a7efac17d0 | 2f57a5c203c7be413da4f2daa6d91f39fa846763 | Add a third cycle mode, equivalent to old Salsa cycle behavior | That is, directly set a value for all queries that have fallbacks, and ignore all other queries in the cycle.
Unlike old Salsa, we still need all cycle heads to be marked, and we still execute the queries to completion, but we throw their result.
This is an alternative to @Veykril's #798 PR, that doesn't suffer f... | diff --git a/components/salsa-macros/src/accumulator.rs b/components/salsa-macros/src/accumulator.rs
index 926fdb547..220d0e941 100644
--- a/components/salsa-macros/src/accumulator.rs
+++ b/components/salsa-macros/src/accumulator.rs
@@ -40,6 +40,7 @@ impl AllowedOptions for Accumulator {
const DB: bool = false;
... | 12 | 8 | 3 | [{"id": "G0", "claim": "With the new cycle mode, a cycle query may get a different result depending on which query entered the cycle first, because one path uses the cached cycle result and the other recomputes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
salsa-rs__salsa__836 | salsa-rs/salsa | 836 | defect | 2c041763b75c774916b8912a50035578e6fd59a2 | f268ef0fc960c5a82efe437f0c6c2be5ed0f4b0f | fix: change detection for fixpoint queries | This PR fixes two bugs in `maybe_changed_after` for cyclic queries
## Fix number 1
Salsa doesn't invalidate a cycle of `query_a` -> `query_b` if `query_b` only depends on the input in the first iteration.
Fixing this requires that we carry over inputs to later iterations. This is a very similar fix to what I ... | diff --git a/src/accumulator.rs b/src/accumulator.rs
index a841016dd..9a476c807 100644
--- a/src/accumulator.rs
+++ b/src/accumulator.rs
@@ -110,6 +110,7 @@ impl<A: Accumulator> Ingredient for IngredientImpl<A> {
_db: &dyn Database,
_input: Id,
_revision: Revision,
+ _in_cycle: bool,
... | 5 | 1 | 1 | [{"id": "G0", "claim": "Merging the pull request will degrade the performance of the converge_diverge benchmark by 10.44%.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is not clear what behavior is wanted for accumulated values when a dependenc... | null |
salsa-rs__salsa__837 | salsa-rs/salsa | 837 | defect | 42f15835c0005c4b37aaf5bc1a15e3e1b3df14b7 | 77599c762ea8e6eea6ef021be54973325b79b860 | better debug name for interned query arguments | The debug name `Configuration` isn't very helpful when debugging salsa. Use a name constructed from the query name.
I'm open to suggestions on how to avoid collisions with actual query names. e.g. we could prefix the name with two underscores or similar. | diff --git a/components/salsa-macro-rules/src/setup_tracked_fn.rs b/components/salsa-macro-rules/src/setup_tracked_fn.rs
index 790dc6a9b..e27808a1f 100644
--- a/components/salsa-macro-rules/src/setup_tracked_fn.rs
+++ b/components/salsa-macro-rules/src/setup_tracked_fn.rs
@@ -139,7 +139,7 @@ macro_rules! setup_tracked_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The debug name should end with \"_interned_args\" instead of \"_arguments\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
salsa-rs__salsa__839 | salsa-rs/salsa | 839 | defect | e1fe3698cec6337b8e126d73aab969f220a3ba7a | 286c167d64467c9f7db9bae7ec73f725d00be9ab | Simple LRU garbage collection for interned values | Basic implementation of https://github.com/salsa-rs/salsa/issues/597.
The garbage collection strategy used here is very simple.
- Slots that have not been accessed in the last 3 *active revisions* are always reused, and nothing else. Active revisions are those in which interned values were actually read to avoid co... | diff --git a/Cargo.toml b/Cargo.toml
index 804e09426..3e9602b19 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,12 +14,11 @@ salsa-macros = { version = "0.22.0", path = "components/salsa-macros", optional
boxcar = { version = "0.2.12" }
crossbeam-queue = "0.3.11"
-dashmap = { version = "6", features = ["raw-api"] }... | 13 | 9 | 1 | [{"id": "G0", "claim": "The PR causes new panics in Red Knot ('Data was not interned in the latest revision for its durability'): when an interned slot is reused, an older memo may be incorrectly verified because the IDs still match, so the PR needs to record read dependencies and handle reused slots (e.g. clear memos)... | null |
salsa-rs__salsa__856 | salsa-rs/salsa | 856 | defect | 13a2bd7461c4914c0ecb05fb78d77f95b5a34fe8 | 0690fccef317628762af21b3662d4c1f8280ebe5 | feat: Unwind with specific type when encountering an unexpected cycle | Closes https://github.com/salsa-rs/salsa/issues/704 | diff --git a/src/cancelled.rs b/src/cancelled.rs
index 9ffc9424d..2f2f315d9 100644
--- a/src/cancelled.rs
+++ b/src/cancelled.rs
@@ -23,7 +23,7 @@ impl Cancelled {
pub(crate) fn throw(self) -> ! {
// We use resume and not panic here to avoid running the panic
// hook (that is, to avoid collecting... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on `UnexpectedCycle::catch` still says it catches salsa cancellation, but the method actually catches the new cycle unwind type, so the comment needs updating (along with the copied code).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
salsa-rs__salsa__879 | salsa-rs/salsa | 879 | defect | 0414d89327d3e8e6a1ded765e4ec796eee33f06c | 16226b3eebdb432666493bb48b3f0672b8692339 | Don't report stale outputs if there is newer generation in new_outputs | Fixes #878 | diff --git a/src/function/diff_outputs.rs b/src/function/diff_outputs.rs
index b00dc4143..6549937e0 100644
--- a/src/function/diff_outputs.rs
+++ b/src/function/diff_outputs.rs
@@ -3,7 +3,7 @@ use crate::function::{Configuration, IngredientImpl};
use crate::hash::FxIndexSet;
use crate::zalsa::Zalsa;
use crate::zalsa... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment in diff_outputs should be extended so that it explains why the generation part is ignored when comparing old and new outputs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
salsa-rs__salsa__882 | salsa-rs/salsa | 882 | defect | db4c4dfc939f4217f625c13f9e56db1d465e557e | 08c94489ce65526eea5ef1c7e5d55c7539d30233 | fix: multithreaded nested fixpoint iteration | This PR fixes two bugs related to nested fixpoint iteration that can lead threads to see incorrect results or panics due to https://github.com/salsa-rs/salsa/issues/831
The main issue with our fixpoint iteration was that it assumed that a cycle would always be entered from the same query. This is given in single-thr... | diff --git a/src/function.rs b/src/function.rs
index 22a135540..d60e9073b 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -1,8 +1,8 @@
+pub(crate) use maybe_changed_after::VerifyResult;
use std::any::Any;
use std::fmt;
use std::ptr::NonNull;
-
-pub(crate) use maybe_changed_after::VerifyResult;
+use std::sync::... | 7 | 6 | 2 | [{"id": "G0", "claim": "The rewritten cycle_head_kind check at src/function.rs:251 (provisional iff not verified_final, dropping the cycle-head self-reference test) is marked by the author as needing a fix (\"Fix number 1\").", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
salsa-rs__salsa__911 | salsa-rs/salsa | 911 | defect | dc9066d66723d5842fcf78aa5725691a9168703f | b54d022d8252cbff5e8a851871f4c0d333a26856 | Add an option to tune interned garbage collection | Adds the ability to tune and disable interned value garbage collection via an attribute:
```rust
#[salsa::interned(revisions = <1 | 2 | ... | usize::MAX>)]
struct Interned<'db>;
```
`revisions` is the minimum number of active revisions that must pass before a stale value is considered for garbage collection. N... | diff --git a/components/salsa-macro-rules/src/setup_interned_struct.rs b/components/salsa-macro-rules/src/setup_interned_struct.rs
index 88c8166dc..8689a5cf4 100644
--- a/components/salsa-macro-rules/src/setup_interned_struct.rs
+++ b/components/salsa-macro-rules/src/setup_interned_struct.rs
@@ -28,6 +28,9 @@ macro_rul... | 2 | 1 | 1 | [{"id": "G0", "claim": "A future neat improvement would be to drop the `LinkedListLink` field for immortal interned values, though it requires trait gymnastics with assoc types to make swappable.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new `... | null |
salsa-rs__salsa__916 | salsa-rs/salsa | 916 | defect | 87a730fccf07add73aabc6f2c842d92fd2bfe466 | 090523aeb54ea3e8021e2fd8c92b035b81f9ddd2 | Add API to dump memory usage | This PR adds the methods `<dyn Database>::{structs_info, queries_info}`, which allow accessing memory usage information about salsa structs and memos. In ty, this lets us generate a report that looks like this:
```
=======SALSA DUMP=======
`Definition` metadata=7.21MB fields... | diff --git a/src/accumulator/accumulated_map.rs b/src/accumulator/accumulated_map.rs
index bb38e40f0..19ad63663 100644
--- a/src/accumulator/accumulated_map.rs
+++ b/src/accumulator/accumulated_map.rs
@@ -1,6 +1,6 @@
use std::ops;
-use rustc_hash::FxHashMap;
+use rustc_hash::FxBuildHasher;
use crate::accumulator:... | 5 | 2 | 1 | [{"id": "G0", "claim": "The expected output written as an inline formatted string in the memory-usage test will probably get annoying to maintain, and the test should ideally use some form of snapshot testing, such as `expect!`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
salsa-rs__salsa__921 | salsa-rs/salsa | 921 | defect | 87a730fccf07add73aabc6f2c842d92fd2bfe466 | 4f627b202e55409ddf78f227f68c09972803017a | Replace ingredient cache with faster ingredient map | An alternative to https://github.com/salsa-rs/salsa/pull/919, this uses a lock-free map for ingredient access instead of `DashMap`. It looks like this isn't fast enough to get rid of the `IngredientCache` entirely, but it's pretty close. I also added a fast-path that avoids checking for the view downcaster if the ingre... | diff --git a/Cargo.toml b/Cargo.toml
index 94cc9ca1c..edff9c8d9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,6 +19,7 @@ hashbrown = "0.15"
hashlink = "0.10"
indexmap = "2"
intrusive-collections = "0.9.7"
+papaya = "0.2.1"
parking_lot = "0.12"
portable-atomic = "1"
rustc-hash = "2"
@@ -51,7 +52,7 @@ salsa-macro... | 5 | 2 | 1 | [{"id": "G0", "claim": "Removing the IngredientCache makes the most common single-database case roughly 10% slower, so the pull request should keep the IngredientCache fast path instead of taking that regression.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
salsa-rs__salsa__941 | salsa-rs/salsa | 941 | defect | dba66f1a37acca014c2402f231ed5b361bd7d8fe | 34ba88c945770cfb62434e4c28239e3a64b6f219 | Avoid dynamic dispatch to access memo tables | We know the concrete type of the input `Id`, so we shouldn't need dynamic dispatch unless it is a supertype.
This should be a bigger performance improvement once https://github.com/salsa-rs/salsa/pull/940 and cleans up the `assert_type` codegen. | diff --git a/components/salsa-macro-rules/src/setup_input_struct.rs b/components/salsa-macro-rules/src/setup_input_struct.rs
index 38988c546..06315e07a 100644
--- a/components/salsa-macro-rules/src/setup_input_struct.rs
+++ b/components/salsa-macro-rules/src/setup_input_struct.rs
@@ -170,6 +170,16 @@ macro_rules! setup... | 2 | 1 | 0 | [{"id": "G0", "claim": "Extend the SAFETY documentation on the generated `memo_table` function: it only states the `current_revision` constraint and does not explain how the memo's type is guaranteed.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "R... | null |
salsa-rs__salsa__961 | salsa-rs/salsa | 961 | defect | d66fe331d546216132ace503512b94d5c68d2c50 | 7e4b03337725ed9038432a7e9d872489d8a53fa0 | Fix `maybe_changed_after` runnaway for fixpoint queries | This PR fixes a few bugs related to `maybe_changed_after` and fixpoint iteration.
## Runnaway
The most important fix is for a runaway issue where `maybe_changed_after` revalidates the same queries repeatedly, see https://github.com/salsa-rs/salsa/issues/960.
Given a query:
```
a -> b -> a
-> c
``... | diff --git a/src/accumulator.rs b/src/accumulator.rs
index 0e9feab62..0f1d9adf4 100644
--- a/src/accumulator.rs
+++ b/src/accumulator.rs
@@ -7,7 +7,6 @@ use std::panic::UnwindSafe;
use accumulated::{Accumulated, AnyAccumulated};
-use crate::cycle::CycleHeadKeys;
use crate::function::VerifyResult;
use crate::ingr... | 9 | 8 | 1 | [{"id": "G0", "claim": "The changed result returned after re-executing the query should copy over the cycle heads from the newly executed `memo`.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment phrase \"we'll reach the point here\" is ambiguou... | null |
salsa-rs__salsa__969 | salsa-rs/salsa | 969 | defect | 940f9c09a7d0a0903bc7edc4a3f1977382980f0b | ab89d3d1b2c2f59e3ec8cd6201f73ce724c6088e | refactor: Remove tracked structs from query outputs | We currently store tracked structs twice:
* In `QueryRevisions::origin` (as an output): This is mainly for historic reasons because tracked structs required to be verified (`mark_validated_output`), but that's no longer the case since we're using generational ids.
* In `QueryRevisionExtras::tracked_struct_ids`: To ge... | diff --git a/src/active_query.rs b/src/active_query.rs
index dff64db3e..6fe53a300 100644
--- a/src/active_query.rs
+++ b/src/active_query.rs
@@ -30,7 +30,6 @@ pub(crate) struct ActiveQuery {
/// Inputs: Set of subqueries that were accessed thus far.
/// Outputs: Tracks values written by this query. Could be..... | 6 | 4 | 1 | [{"id": "G0", "claim": "The variable `completd_query` in src/function/execute.rs is misspelled and should be renamed to `completed_query`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on `IdentityMap::reuse` contains typos ('Re... | null |
salsa-rs__salsa__975 | salsa-rs/salsa | 975 | defect | 918d35d873b2b73a0237536144ef4d22e8d57f27 | dee67ef2dcdb0cb6030e2d1b7abbe7ffd4b70ff6 | Flatten unserializable query dependencies | Follow up to https://github.com/salsa-rs/salsa/pull/967. This PR removes the requirement that all transitive query dependencies are persistable by flattening them down to their base inputs, similar to https://github.com/salsa-rs/salsa/issues/909. | diff --git a/components/salsa-macro-rules/src/setup_tracked_fn.rs b/components/salsa-macro-rules/src/setup_tracked_fn.rs
index 51239802c..e252f068f 100644
--- a/components/salsa-macro-rules/src/setup_tracked_fn.rs
+++ b/components/salsa-macro-rules/src/setup_tracked_fn.rs
@@ -172,7 +172,7 @@ macro_rules! setup_tracked_... | 4 | 3 | 0 | [{"id": "G0", "claim": "Rework `minimum_serialized_edges` into a collector pattern that writes into a caller-provided buffer, to avoid allocating so many intermediate `Vec`s.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Confirm that tracked struct... | null |
saltstack__salt__46145 | saltstack/salt | 46,145 | defect | 1fcbbd1e0210e6b103232a7736b052c32b266a5c | f9a6c86e21d9cf108ec6328e5f021b451f103328 | 3 small fixes for runners/orchestration | This fixes the following issues:
1. The orchestration jid was not being passed to the `state.orchestrate` runner when invoked using the `state.orch` alias. This did not affect the runner's performance/results, but merely kept the jid from being included in the metadata for the job in the job cache.
2. Fix an edge cas... | diff --git a/salt/runner.py b/salt/runner.py
index 95c602a0cf30..88bd88137dfd 100644
--- a/salt/runner.py
+++ b/salt/runner.py
@@ -229,7 +229,7 @@ def run(self):
async_pub = self._gen_async_pub()
self.jid = async_pub['jid']
- if low['fun'] == 'state.orchestrate':
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Some of the CI test failures on this pull request are legitimate and need to be taken care of.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Modifying opts['pillarenv'] in show_pillar is unnecessary duplication, since the check ... | null |
saltstack__salt__47233 | saltstack/salt | 47,233 | defect | de84f6fbd6b4d1ed357c1bac86f5394dbe25524d | a549ecd35230b0f8bfb70d28b8ec0c290a6f2145 | Handle yum.Errors.YumBaseError | Happens at least in event rpmdb is corrupt/cannot be opened
### What does this PR do?
Excepts `yum.Errors.YumBaseError` and raises `CommandExecutionError` for consistency and simplified display
### What issues does this PR fix or reference?
Fixes #44331
### Previous Behavior
Full Traceback was printed... | diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index 1a53c937404a..026411faf977 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -314,6 +314,10 @@ def _get_yum_config():
raise CommandExecutionError(
'Could not query yum config: {0}'.format(exc)
... | 2 | 2 | 2 | [{"id": "G0", "claim": "A unit test should be written for the new YumBaseError handling, mocking yum.YumBase() so it raises YumBaseError instead of corrupting a real RPM database.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added test unit.... | null |
saltstack__salt__47372 | saltstack/salt | 47,372 | defect | 1de101b8abbb6976359e8e0f0506af9c2c867fd9 | 05ab624fcd8106c69785248822c2f731cefa4720 | Allow for passing in previously compiled grains to custom grain modules | ### What does this PR do?
If a grains module function accepts a variable named `grains` then the grains dict will be passed in.
### What issues does this PR fix or reference?
Closes #47338
### Previous Behavior
No grains are passed to custom grains modules
### New Behavior
Previously compiled grains are pa... | diff --git a/doc/topics/grains/index.rst b/doc/topics/grains/index.rst
index 2b1967815214..d1fbee3b70df 100644
--- a/doc/topics/grains/index.rst
+++ b/doc/topics/grains/index.rst
@@ -269,6 +269,11 @@ grain will override that core grain. Similarly, grains from
``/etc/salt/minion`` override both core grains and custom g... | 4 | 3 | 0 | [{"id": "G0", "claim": "The `co_argcount > 0` check and the if/else around the call are unnecessary; when there are no parameters kwargs stays empty and `funcs[key](**{})` equals `funcs[key]()`, so the code can be simplified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
saltstack__salt__47421 | saltstack/salt | 47,421 | defect | 24b327c224824545b972d0f45140697259b4a2a0 | 0f4b64bf8816e396a08a6f38da56bcf472ab7542 | make pillar top_matches work with node groups | ### What does this PR do?
the compound match evaluator to date relied callers to pre-evaluate nodegroups
into their decomposed state. in some places this wasn't happening. Rather than
fix every call site, teach compound_match to evaluate nodegroups in place.
It seems matchers were refactored to salt.utils.minions... | diff --git a/salt/minion.py b/salt/minion.py
index 077c01166b23..eb4d6d66adac 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -3370,6 +3370,8 @@ def compound_match(self, tgt):
'''
Runs the compound target check
'''
+ nodegroups = self.opts.get('nodegroups', {})
+
if not is... | 1 | 1 | 0 | [{"id": "G0", "claim": "The nodegroup expansion in compound_match could be written with less code as `words[0:0] = salt.utils.minions.nodegroup_comp(target_info['pattern'], nodegroups)` instead of assigning the result to a temporary `decomposed` variable and concatenating.", "category": "maintainability", "verdict": "s... | null |
saltstack__salt__63886 | saltstack/salt | 63,886 | defect | 1f1420aa0b2db22d3c33dd15791a359bbe665ed3 | 94255e45b6adcad017d8e2a00c0a2d6235bbedc4 | Fix regex cache exception in sweep function | ### What does this PR do?
Use lambda function to properly sort patterns using usage counter and avoid exception: TypeError: '<' not supported between instances of '_sre.SRE_Pattern' and '_sre.SRE_Pattern'
### What issues does this PR fix or reference?
Fixes: #59437
### Previous Behavior
```
salt -b 1 '*' cmd.... | diff --git a/changelog/59437.fixed.md b/changelog/59437.fixed.md
new file mode 100644
index 000000000000..946b1ccde5f0
--- /dev/null
+++ b/changelog/59437.fixed.md
@@ -0,0 +1 @@
+Fix regex cache exception during sort in sweep function
diff --git a/salt/utils/cache.py b/salt/utils/cache.py
index a78a1f70fc91..1911e8c696... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add a regression test covering the regex-cache sweep change (the new sort key in CacheRegex.sweep).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
saltstack__salt__64043 | saltstack/salt | 64,043 | defect | 2bd55266c8ecc929a3a0a9aec1797a368c521072 | 1a7ed7e754a324d3d0db8f3690617786ed8e445b | [master] Access pillar data while rendering pillars | ### What does this PR do?
Pillar dunder is now available in extension modules during pillar render
Fixes: #65724
### Merge requirements satisfied?
**[NOTICE] Bug fixes or features added to Salt require tests.**
<!-- Please review the [test documentation](https://docs.saltproject.io/en/master/topics/tutoria... | diff --git a/salt/loader/__init__.py b/salt/loader/__init__.py
index 72a5e5440128..ca33bfaeff36 100644
--- a/salt/loader/__init__.py
+++ b/salt/loader/__init__.py
@@ -263,6 +263,7 @@ def minion_mods(
notify=False,
static_modules=None,
proxy=None,
+ pillar=None,
):
"""
Load execution modules... | 3 | 3 | 2 | [{"id": "G0", "claim": "Updating the pillar for already-loaded modules should be done by replacing __pillar__ in the loader pack instead of re-creating/reloading the loaders, saving the overhead of reloading all of the modules.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
saltstack__salt__64621 | saltstack/salt | 64,621 | defect | 3a42b0ce589c28540d10c68404c362722a9571a3 | 45efc497b2c4c2322456b15eb9c54645651647b4 | [master] Allow salt-call arguments --file-root, --pillar-root and --states-dir to be specified multiple times | ### What does this PR do?
### What issues does this PR fix or reference?
Fixes: #64486
### Previous Behavior
The `salt-call` arguments `--file-root`, `--pillar-root` and `--states-dir` can each be specified only once.
### New Behavior
The `salt-call` arguments `--file-root`, `--pillar-root` and `--states-di... | diff --git a/changelog/64486.added.md b/changelog/64486.added.md
new file mode 100644
index 000000000000..b12d8885c4ef
--- /dev/null
+++ b/changelog/64486.added.md
@@ -0,0 +1 @@
+Allow salt-call arguments --file-root, --pillar-root and --states-dir to be specified multiple times
diff --git a/doc/ref/cli/salt-call.rst b... | 4 | 3 | 3 | [{"id": "G0", "claim": "The multiple-file-roots test looks like it is specifying the same file root twice; the reviewer asks to ensure the two --file-root values are different.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a test, in the style of the... | null |
saltstack__salt__65426 | saltstack/salt | 65,426 | defect | 0d518807e2c246856d44e247c627d3aa8b04ca8c | 39328e6e76832dc762cf77de399edc3687ee10b6 | [master] Add autosign_grains to auth events with action 'pend' | ### What does this PR do?
It adds the "autosign_grains" that the minion sends during auth to the auth event that the master sends. This enables us to create a runner to do more cool autosign stuff (more than just shared secrets, which is already supported by autosign_grains).
To enable it, the option `auth_events... | diff --git a/changelog/56200.changed.md b/changelog/56200.changed.md
new file mode 100644
index 000000000000..2f57bcb28cb6
--- /dev/null
+++ b/changelog/56200.changed.md
@@ -0,0 +1 @@
+Make sure every auth event has the 'act' key set
diff --git a/changelog/65426.added.md b/changelog/65426.added.md
new file mode 100644
... | 5 | 5 | 0 | [{"id": "G0", "claim": "The hand-edited doc/man/salt.7 changes are unnecessary because the man page is generated automatically and should be removed from the pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The .. versionadded marker f... | null |
saltstack__salt__65751 | saltstack/salt | 65,751 | defect | 0a883999962baa59e806051beb14317114d54319 | c9605e7054827a3ef4dcee7ff2f2ed10ef2dfc34 | [master] Introduce fibre_channel_host grain | New grain to assess whether the minion is a fiber channel host.
### What does this PR do?
### What issues does this PR fix or reference?
Fixes: https://github.com/saltstack/salt/issues/65750
### Merge requirements satisfied?
**[NOTICE] Bug fixes or features added to Salt require tests.**
<!-- Please review ... | diff --git a/changelog/65750.added.md b/changelog/65750.added.md
new file mode 100644
index 000000000000..c43c37cd087e
--- /dev/null
+++ b/changelog/65750.added.md
@@ -0,0 +1 @@
+Introduce fc_host grain
diff --git a/salt/grains/core.py b/salt/grains/core.py
index 4667f626e16d..818dffd81fb1 100644
--- a/salt/grains/core... | 3 | 2 | 1 | [{"id": "G0", "claim": "The grain name fc_host is not descriptive enough for a value that is just True or False and should be renamed to something like fiber_channel_host.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A simple test for the new ... | null |
saltstack__salt__65819 | saltstack/salt | 65,819 | defect | 2e3b133350b67bc6576076c819399e68dc8abddd | bc05335c10a476adb3f8a84303054b949e7ff7ce | [master] Allow keyword arguments for the fileserver roots backend update function. | ### What does this PR do?
When an orchestration state is applied the user responsible for the runner is passed to the `update` function as the `__pub_user` keyword argument. Therefore, the `update` function must be aware of this or the orchestration state application will fail.
### Previous Behavior
The applicat... | diff --git a/changelog/65819.fixed.md b/changelog/65819.fixed.md
new file mode 100644
index 000000000000..27c2e9bc70be
--- /dev/null
+++ b/changelog/65819.fixed.md
@@ -0,0 +1 @@
+Allow keyword arguments for the fileserver roots backend update function.
diff --git a/salt/fileserver/roots.py b/salt/fileserver/roots.py
in... | 2 | 1 | 1 | [{"id": "G0", "claim": "The __pub_user kwarg should be excluded from the kwargs propagated to the fileserver backends in the runner salt/runners/fileserver.py update(), since the same failure affects other backends like gitfs, rather than being handled only inside the roots backend.", "category": "correctness", "verdic... | null |
saltstack__salt__66647 | saltstack/salt | 66,647 | defect | e4c1da4323f6334c0a14e9a68392a0c12a37e117 | 947b709dbb0e01b6e7776305048873d70638a9b0 | [master] Fix "status.diskusage" and some issues detected in tests | ### What does this PR do?
This PR fixes several detected issues:
- Fix `status.diskusage` to avoid crashes when stats cannot be obtained from a mounted path.
- Avoid testsuite errors when Docker connection is not available.
- Avoid "test_cmdmod" failure when output contains DeprectationWarnings.
### What iss... | diff --git a/changelog/66646.fixed.md b/changelog/66646.fixed.md
new file mode 100644
index 000000000000..889dd61649a9
--- /dev/null
+++ b/changelog/66646.fixed.md
@@ -0,0 +1 @@
+Make "status.diskusage" more robust and prevent crashes when stats cannot be obtained
diff --git a/salt/modules/status.py b/salt/modules/stat... | 2 | 2 | 1 | [{"id": "G0", "claim": "The broad except-and-skip added to the syndic_network fixture seems unrelated to the change; if the docker failure is seen in CI/CD it is something that needs to be addressed, otherwise this test will never run.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
saltstack__salt__66744 | saltstack/salt | 66,744 | defect | 18ca4fdfa9e9c16fb10006f1221254707bece308 | 266e8accdcbc0ec74e697bd85615bb0203a51d97 | [master] Add proxy option to gitfs and git_pillar | ### What does this PR do?
This PR add the options `gitfs_proxy`, `git_pillar_proxy` and `winrepo_proxy`, with which a proxy server can be specified to be used for connecting to git repositories. These options can also be set per remote as `proxy`, overriding the global options.
For Pygit2, a warning will be given ... | diff --git a/changelog/30990.added.md b/changelog/30990.added.md
new file mode 100644
index 000000000000..fca9d4f8275d
--- /dev/null
+++ b/changelog/30990.added.md
@@ -0,0 +1 @@
+Added proxy option to `gitfs`, `git_pillar` and `winrepo` for specifying a proxy server used to connect to git repositories
diff --git a/conf... | 3 | 3 | 3 | [{"id": "G0", "claim": "The winrepo_proxy option also needs to be added to conf/suse/master, like the gitfs_proxy and git_pillar_proxy entries the PR documents there.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The winrepo_proxy option also needs to b... | null |
saltstack__salt__66767 | saltstack/salt | 66,767 | defect | 18ca4fdfa9e9c16fb10006f1221254707bece308 | c65f09d7c752d244aea2c6183c0f2f1ebd239cc5 | [master] Do not use deprecated ssl.PROTOCOL_TLS | This has been deprecated in Python 3.10[1] and will be removed in the
future.
[1] https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS
| diff --git a/salt/transport/base.py b/salt/transport/base.py
index 582d69485317..b5962a6eb1a1 100644
--- a/salt/transport/base.py
+++ b/salt/transport/base.py
@@ -441,13 +441,14 @@ def ssl_context(ssl_options, server_side=False):
backwards compatability older ssl config settings but adds verify_locations
and ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please add a changelog and write a test for this change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
saltstack__salt__66902 | saltstack/salt | 66,902 | defect | 246d0664577ef72da8bd1f0c4dff0d18b4428b23 | b2d27e184a35c698036b183264e547532977d2ee | [master] Datetime utcnow | ### What does this PR do?
This removes some usage of deprecated datetime.datetime.utcnow() and replaces them with timezone-aware objects, while not changing the actual behavior.
### What issues does this PR fix or reference?
Partial fix for https://github.com/saltstack/salt/issues/65604
This is complementary ... | diff --git a/changelog/65604.fixed.md b/changelog/65604.fixed.md
new file mode 100644
index 000000000000..2e7a9fe75c0c
--- /dev/null
+++ b/changelog/65604.fixed.md
@@ -0,0 +1 @@
+Fixed some instances of deprecated datetime.datetime.utcnow()
diff --git a/salt/grains/core.py b/salt/grains/core.py
index 7afcbd5cbae8..7e00... | 3 | 2 | 2 | [{"id": "G0", "claim": "The pull request's added code fails the pre-commit checks and the failures need to be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CI test failures are related to the pull request's changes in salt/utils/pkg/... | null |
saltstack__salt__66909 | saltstack/salt | 66,909 | defect | 40f871c2b1b09bf2ca263afff4a593e4827a751e | 0f2076738275c9ae8d5e6f7694d6004ce6397b62 | [master] salt.channel.server.handle_message: be more defensive | ### What does this PR do?
it's possible _encrypt_private can throw depending on what key backend is used; so we should guard against any possible unhandled exceptions in this critical codepath. We already do this when wrapping the payload_handler, so we just move the other code in the same try.
I've also added some... | diff --git a/salt/channel/server.py b/salt/channel/server.py
index 5fcca7fd59f5..be6145381cf3 100644
--- a/salt/channel/server.py
+++ b/salt/channel/server.py
@@ -130,9 +130,8 @@ def handle_message(self, payload):
# TODO helper functions to normalize payload?
if not isinstance(payload, dict) or not is... | 2 | 1 | 0 | [{"id": "G0", "claim": "Please add a changelog entry for this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There are also some failing tests on this pull request.", "category": "testing", "verdict": "uncertain", "priority": "P0", "... | null |
saltstack__salt__66957 | saltstack/salt | 66,957 | defect | 4a84820e7645efb413a542d296d60653c0214d77 | a11976a1853817ef3d65542afdcf4fe1f855dc24 | [master] Support limiting the number of states running in parallel | ### What does this PR do?
Adds support for limiting the number of states executing in `parallel` via a new configuration called `state_max_parallel`.
This solution is a bit ugly, but alternative implementations proved hard to be implemented in a backwards-compatible way or came with performance concerns or fundamen... | diff --git a/changelog/49301.added.md b/changelog/49301.added.md
new file mode 100644
index 000000000000..96c5fedbf769
--- /dev/null
+++ b/changelog/49301.added.md
@@ -0,0 +1 @@
+Added support for limiting the number of parallel states executing at the same time via `state_max_parallel`
diff --git a/doc/ref/configurati... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new parallel-state functional tests are skipped on Windows because they use the `sleep`/`true` executables, and they should use a Windows-compatible command (`timeout`) instead so the new `state_max_parallel` behaviour is tested on Windows.", "category": "testing", "verdict": "supported", "p... | null |
saltstack__salt__67093 | saltstack/salt | 67,093 | defect | 9d10d699f3fbd2093433a0b34dd8f6595eb99db3 | 3acaf4193a32c3fe2f4f67f9e525b94973b84797 | throw a TypeError when trying to merge a list with a mapping when `me… | throw a TypeError when trying to merge a list with a mapping when `merge_lists=True`
### What does this PR do?
### What issues does this PR fix or reference?
Fixes #67092
### Previous Behavior
Silently drops values
### New Behavior
Throws TypeError
### Merge requirements satisfied?
**[NOTICE] Bug fi... | diff --git a/changelog/67092.fixed.md b/changelog/67092.fixed.md
new file mode 100644
index 000000000000..3fb853724b63
--- /dev/null
+++ b/changelog/67092.fixed.md
@@ -0,0 +1 @@
+dictupdate.update: throw a TypeError when trying to merge a list with a mapping when ``merge_lists=True``.
diff --git a/salt/utils/dictupdate... | 3 | 2 | 2 | [{"id": "G0", "claim": "Raising a TypeError by default when merging a list with a mapping is not the correct default behavior because the function intends to emulate dict.update (including for nested dicts); the author should add a `strict` switch or a separate enforcing function instead, and this should target 3008.",... | null |
saltstack__salt__67750 | saltstack/salt | 67,750 | defect | bc007e3c55c1d4473fa6fef4b44dbf502d11873b | 8357ffee0de00c26a6a4a09ba99ce50db6c3f0b8 | [3006.x] Fix coroutines being called incorrectly |
### What issues does this PR fix or reference?
Fixes #66932
| diff --git a/changelog/66932.fixed.md b/changelog/66932.fixed.md
new file mode 100644
index 000000000000..6209b057fed3
--- /dev/null
+++ b/changelog/66932.fixed.md
@@ -0,0 +1 @@
+Ensure minion start event coroutines are run
diff --git a/salt/minion.py b/salt/minion.py
index 034b3b032cf2..4a1a09c71c03 100644
--- a/salt/... | 1 | 1 | 0 | [{"id": "G0", "claim": "A leftover debug print statement, `print(f\"WTF {salt_factories_default_root_dir}\")`, was added to the `salt_factories_default_root_dir` fixture in tests/conftest.py and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
saltstack__salt__68039 | saltstack/salt | 68,039 | defect | 34112cd196a570a1ed7b9298882e79accc10be4a | c4b0027b20129ecba2adf213903a9d8bc7b1724f | Provide token storage using the salt.cache interface | ### What does this PR do?
Rather than implement custom drivers for tokens, the existing cache drivers can be leveraged for token management. This also moves token expiry responsibility to the token(cache) implementation with a naive fallback.
Implicitly the default token backend will move to either what the global ... | diff --git a/changelog/68030.changed.md b/changelog/68030.changed.md
new file mode 100644
index 000000000000..d7e91505f6b6
--- /dev/null
+++ b/changelog/68030.changed.md
@@ -0,0 +1,3 @@
+PillarCache: reimplement using salt.cache
+fix minion data cache organization/move pillar and grains to dedicated cache banks
+salt.c... | 5 | 3 | 1 | [{"id": "G0", "claim": "The clear_pillar docstring typo 'Clea the pillar cache' should read 'Clear the pillar cache'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The clear_pillar_cache runner's return value is unexplained and the function docst... | null |
saltstack__salt__68107 | saltstack/salt | 68,107 | defect | 55444a06e5ec79d51077d41f5d6db07dd6374705 | a6e81ae02db4c4b04716d48ae51c165430f479c1 | pkgrepo: account for 'name' attr being part of the state | ### What issues does this PR fix or reference?
fixes #21369. 'name' of repo wasn't being tracked for changes as it was getting special handling due to being outside of the states kwargs. I'm not 100% sure that name is safe across all repo types this state manages, but it fixes the root issue referenced, and I'm prett... | diff --git a/salt/states/pkgrepo.py b/salt/states/pkgrepo.py
index f547c33522b1..5c3664da35af 100644
--- a/salt/states/pkgrepo.py
+++ b/salt/states/pkgrepo.py
@@ -413,7 +413,8 @@ def managed(name, ppa=None, copr=None, aptkey=True, **kwargs):
)
return ret
- repo = name
+ kwargs["name"] ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request is missing a changelog entry, which the reviewer asked for and still did not find after the author said it was added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
saltstack__salt__68203 | saltstack/salt | 68,203 | defect | 5c86f6d0d45fc22bf3900fba854ede5816879538 | 77f7082f95c04d873c1311b740ba3905de4f15e9 | Add ceph to the specialFSes to match on name for set_fstab | ### What does this PR do?
Add cephfs to the set of FSes that are being matched by name instead of device in set_fstab
### What issues does this PR fix or reference?
It's common to have multiple cephfs'es in fstab that share the same device. Currently `match_on: name` must be explicitly set to correctly handle this... | diff --git a/salt/modules/mount.py b/salt/modules/mount.py
index 7ba80bf48d00..ceda2e8d3df3 100644
--- a/salt/modules/mount.py
+++ b/salt/modules/mount.py
@@ -845,6 +845,7 @@ def set_fstab(
"nfs4",
"glusterfs",
"btrfs",
+ "ceph",
]
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should create a changelog entry (which requires an issue) and write a test for this change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
saltstack__salt__68205 | saltstack/salt | 68,205 | defect | fbe1237be71330ffdd0fc25a2e23649dfc900c7a | 60eda5c11c18ff4ed962e1ae0d709415edc0f50a | Add force option to win_pkg | ### What does this PR do?
Add the ability to force an installer to run by passing `force=True` to `pkg.install`
### What issues does this PR fix or reference?
Fixes #68102
### Merge requirements satisfied?
**[NOTICE] Bug fixes or features added to Salt require tests.**
<!-- Please review the test documentati... | diff --git a/changelog/68102.added.md b/changelog/68102.added.md
new file mode 100644
index 000000000000..d13160706c37
--- /dev/null
+++ b/changelog/68102.added.md
@@ -0,0 +1,2 @@
+Added the ability to pass for to pkg.install on Windows to force run the
+installer
diff --git a/salt/modules/win_pkg.py b/salt/modules/win... | 2 | 2 | 0 | [{"id": "G0", "claim": "The changelog entry is worded confusingly — it reads as though the change adds functionality rather than fixes a bug — and should be reworded.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring for the new `force`... | null |
saltstack__salt__68224 | saltstack/salt | 68,224 | defect | 2459d52cfdb57fc39c40ad7205230e90bfef701d | 09583f593f8489fa4d74e27f01c3cd434cfafb15 | Allow to pass context to pyobjects renderer | ### What does this PR do?
Allows to pass context to pyobjects renderer
### What issues does this PR fix or reference?
Fixes #68223 | diff --git a/salt/renderers/pyobjects.py b/salt/renderers/pyobjects.py
index a719b34ef5f7..a4000f227d8e 100644
--- a/salt/renderers/pyobjects.py
+++ b/salt/renderers/pyobjects.py
@@ -376,7 +376,7 @@ def load_states():
__context__["pyobjects_states"] = states
-def render(template, saltenv="base", sls="", salt_d... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request needs a changelog entry for the new feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs tests covering the new context-passing behaviour.", "category": "testing", "verdict": "supp... | null |
saltstack__salt__68226 | saltstack/salt | 68,226 | defect | c6cfd8d5d105e60a2476f659d814c04d1a369323 | 06ddd685fdb27e6181856bf89df1f09c1ab024db | modules/aptpkg.py: correct handling of foreign-only-arch packages | ### What does this PR do?
### What issues does this PR fix or reference?
Fixes #66940
### Previous Behavior
Querying foreign-arch-only packages raises `UnboundLocalError` when setting candidate versions in `aptpkg.latest_version()`. This is most notably visible with `wine32`.
### New Behavior
I've currently... | diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index a61719bd710f..a470e7ceae39 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -495,8 +495,12 @@ def latest_version(*names, **kwargs):
candidates = {}
for line in salt.utils.itertools.split(out["stdout"], "\n"):
- if l... | 2 | 2 | 1 | [{"id": "G0", "claim": "Whenever a package with multiple architectures comes up, the new matching logic has the risk of the foreign-arch package overshadowing the native one if the latter appears later in the listing, and the reviewer suggests keying candidates by the suffixed foreign-arch name instead.", "category": "... | null |
saltstack__salt__68277 | saltstack/salt | 68,277 | defect | 7e5c1502eb46d1a8893f761ab3b07289fac332a9 | 3453271f466d5ba338da7d8470ea17302ab8742a | Fix 66568: Prevent unclosed TCP channels and avoid additional errors | ### What does this PR do?
Properly close TCP transports to prevent unclosed transport errors as well as task is destroyed but is still pending warnings/errors. I also changed a log line to debug from error to match the same error throughout the file.
### What issues does this PR fix or reference?
Fixes #66568. I... | diff --git a/changelog/66568.fixed.md b/changelog/66568.fixed.md
new file mode 100644
index 000000000000..fbfa1aa540b0
--- /dev/null
+++ b/changelog/66568.fixed.md
@@ -0,0 +1 @@
+Fix closing of TCP transport channels and avoid additional errors
diff --git a/salt/channel/client.py b/salt/channel/client.py
index 6a96ffc8... | 4 | 3 | 3 | [{"id": "G0", "claim": "Do not re-add __del__ for cleanup; use a context manager or try/finally that calls the close method instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There are pre-commit failures that need to be addressed before this pull r... | null |
saltstack__salt__68313 | saltstack/salt | 68,313 | defect | 5e65bcd78c1dd5da74821f14347b22e8b54e41c4 | 6bf557aa4b31b4b4ab4249eaeaa642d93df037c2 | salt-minion 3006.x connection to vault throws "Failed to get secret metadata KeyError: 'vault' | ### What does this PR do?
Add check for vault in __opts__
### What issues does this PR fix or reference?
Fixes #68312
### Previous Behavior
When salt-master is configured with a default vault configuration, salt-minions are unable to access vault
### New Behavior
If __opts__["vault"] is not defined, it wil... | diff --git a/changelog/68312.fixed.md b/changelog/68312.fixed.md
new file mode 100644
index 000000000000..aba6ce672414
--- /dev/null
+++ b/changelog/68312.fixed.md
@@ -0,0 +1 @@
+Add check for vault in __opts__ var
diff --git a/salt/utils/vault.py b/salt/utils/vault.py
index 040fda301a95..e6d99242e835 100644
--- a/salt... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please write a test for the new \"vault\" in __opts__ guard in salt/utils/vault.py.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
saltstack__salt__68328 | saltstack/salt | 68,328 | defect | 3ce11a76c76e7cca536e7134188d9a9c04a82b49 | 7f4962077e8da23c89477af67416ae2ae5223783 | Strip CRLF from headers before parsing | ### What does this PR do?
After Tornado 6.4, 6.5 and later break compatibility in the `parse_response_start_line`, which no longer accepts CRLF. See [0] for more information.
This change ensures that fileclient tests (and functionality) do not break when you decide to upgrade Tornado :).
[0] https://github.com... | diff --git a/changelog/68328.fixed.md b/changelog/68328.fixed.md
new file mode 100644
index 000000000000..2bffecb8483b
--- /dev/null
+++ b/changelog/68328.fixed.md
@@ -0,0 +1 @@
+Fixed cp.cache_file when using Tornado > 6.4
diff --git a/salt/fileclient.py b/salt/fileclient.py
index 34f12728c8cd..8b43cac21f28 100644
---... | 5 | 4 | 1 | [{"id": "G0", "claim": "The repeated hdr.strip() should be assigned once to a variable and the result of parse_response_start_line should be renamed (e.g. response_start) or the tuple destructured instead of being stored back into hdr, since the function does not return a header and reusing hdr is confusing.", "categor... | null |
saltstack__salt__68342 | saltstack/salt | 68,342 | defect | 916ecefab13d4443045654483aa4823723ada42a | bad4cfd809ab922058f68c95d4c8a44397729043 | Fix rpm pkg warning | ### What does this PR do?
### What issues does this PR fix or reference?
Fixes #68341
### Previous Behavior
Warnings and slow process fork
### New Behavior
No warnings and no process fork
### Merge requirements satisfied?
**[NOTICE] Bug fixes or features added to Salt require tests.**
<!-- Please revie... | diff --git a/changelog/68341.fixed.md b/changelog/68341.fixed.md
new file mode 100644
index 000000000000..cff4b7b7087b
--- /dev/null
+++ b/changelog/68341.fixed.md
@@ -0,0 +1,2 @@
+Fixed pkg.installed state from showing warning if python rpm package not installed.
+Fixed pkg.installed state from showing warning and usi... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the `from __future__ import annotations` line the pull request added to salt/modules/rpm_lowpkg.py, because annotations are not available in the older Python used on Rocky Linux 8.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
saltstack__salt__68451 | saltstack/salt | 68,451 | defect | d152fe184513c55ec9b6971a24168d6575265bfe | 313d243678ff47f59b61037515af56e7a66c230f | Adds support for domain users in user.info | ### What does this PR do?
Adds suport for domain users in `user.info` so the `runas` option in `cmd` execution module works for domain users.
### What issues does this PR fix or reference?
Fixes #68450
### Previous Behavior
`user.info` returns no information for domain users
### New Behavior
`user.info`... | diff --git a/changelog/68450.fixed.md b/changelog/68450.fixed.md
new file mode 100644
index 000000000000..dec7d65085ac
--- /dev/null
+++ b/changelog/68450.fixed.md
@@ -0,0 +1 @@
+Fixed issue in cmd execution module that always return "Invalid user" for domain users.
diff --git a/salt/modules/win_useradd.py b/salt/modul... | 2 | 1 | 1 | [{"id": "G0", "claim": "Could we get a test for this (the new domain-user handling in user.info)?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unpacking `domain_name, user_name = salt.utils.win_runas.split_username(name)` is reversed because split... | null |
saltstack__salt__68453 | saltstack/salt | 68,453 | defect | e309bf171a0a2f45861d7beed5b4d87827f8aa50 | 796da2d9b6a6420c0b2e48ad55d65bafc5913cc5 | accept either ["site"] or ["scope"] for duplicate site entry detection due to netbox API change | ### What does this PR do?
The netbox API changed format in netbox 4.2.0 to change to a generic foreign key format. This commit allows both old and new API formats.
### What issues does this PR fix or reference?
Fixes #68375
### Previous Behavior
the minion pillar data failed to load with:
```
2025-11-10 ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7a610e7fa80b..3fe1b3a6658a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,13 @@ Versions are `MAJOR.PATCH`.
# Changelog
+## [Unreleased]
+
+### Fixed
+
+- Fixed issue with upstream Netbox API changing api/ipam/prefixes output to
+ use "scope" FK instead of "... | 4 | 3 | 1 | [{"id": "G0", "claim": "CHANGELOG.md is not edited manually to add change log entries; the documented changelog process should be used instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicate-site cleanup should test membership agains... | null |
saltstack__salt__68483 | saltstack/salt | 68,483 | defect | b8180fcfc7036d0062aee3a31be5a79591b6dc8f | b699db0a8d2fad2f10af44f3e3d036ecbdd08d5c | fix(aptpkg): change glob to only match top-level .list files | ### What does this PR do?
This changes the glob pattern for APT sources from `**/*.list` to `*.list`, in line APT's default pattern in sources.list.d
### What issues does this PR fix or reference?
Fixes #68475
### Previous Behavior
Exception is thrown if there is a .list file in a subdirectory (e.g: backups/pr... | diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index 8f96323fc936..b9193025362c 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -265,7 +265,7 @@ def __init__(self):
]
for file in self.files:
if file.is_dir():
- for fp in fil... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please add a changelog entry for this change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
saltstack__salt__68558 | saltstack/salt | 68,558 | defect | 0694587c7c3600e158aabc894e2d2261db7ff328 | 852bb8c354766fe1b1ea646c93c9824ed62153d5 | Pr add viruscheck to chocolatey | ### What does this PR do?
Adds the viruscheck argument to the chocolatey cli for installing packages.
https://docs.chocolatey.org/en-us/features/virus-check/#options-and-switches
---
There are no tests. I'm not sure the best location. I'm thinking they should be added here:
```tests/pytests/unit/modules/te... | diff --git a/changelog/68558.added.md b/changelog/68558.added.md
new file mode 100644
index 000000000000..e5fd3e19beed
--- /dev/null
+++ b/changelog/68558.added.md
@@ -0,0 +1 @@
+Add an option in the chocolatey state and module so that the viruscheck flag can be controlled.
diff --git a/salt/modules/chocolatey.py b/sal... | 5 | 5 | 1 | [{"id": "G0", "claim": "The new install parameter should be named `virus_check` to follow the naming scheme of the other parameters in salt/modules/chocolatey.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new installed-state parameter s... | null |
saltstack__salt__68655 | saltstack/salt | 68,655 | defect | f37765664511aff38cd9bd75d589f930d263113b | 1022008220b6f046cb6ddd42d8acc68219dd3aba | Fix result and comments from lgpo_reg states | ### What does this PR do?
Fixes the comments and result value from the `lgpo_reg.*` states.
### What issues does this PR fix or reference?
Fixes #68566
### Merge requirements satisfied?
**[NOTICE] Bug fixes or features added to Salt require tests.**
<!-- Please review the test documentation for details on ho... | diff --git a/changelog/68565.fixed.md b/changelog/68565.fixed.md
new file mode 100644
index 000000000000..474eb43577d6
--- /dev/null
+++ b/changelog/68565.fixed.md
@@ -0,0 +1 @@
+Fix an issue with Value names that contain periods, such as scrnsave.exe
diff --git a/changelog/68566.fixed.md b/changelog/68566.fixed.md
new... | 1 | 1 | 1 | [{"id": "G0", "claim": "Matching value names with `endswith` could produce false positives, since a key like 'abc' ends with 'bc' and would be incorrectly returned as a match when searching for 'bc'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
saltstack__salt__68669 | saltstack/salt | 68,669 | defect | d9cecbd9ae87467298098bb02a53369aef5417bb | 4df756b4b400a4bc29ce2a3c2f74fd48904e3096 | dictdiffer: deep diff of dicts in lists | ### What does this PR do?
So far, lists would always be compared as a whole - in case of lists containing dicts as elements, this would cause lots of output even if only parts of the contained dicts changed. Allow matching of lists with consistently keyed dicts.
We do have listdiffer, but custom logic was implement... | diff --git a/salt/utils/dictdiffer.py b/salt/utils/dictdiffer.py
index 7ad930014e6c..ee69350daf13 100644
--- a/salt/utils/dictdiffer.py
+++ b/salt/utils/dictdiffer.py
@@ -79,7 +79,9 @@ def deep_diff(old, new, ignore=None):
return res
-def recursive_diff(past_dict, current_dict, ignore_missing_keys=True):
+def ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new list_dict_matchers docstring should add usage examples and clarify its confusing wording about dicts being \"matchable with one of these keys\".", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should... | null |
saltstack__salt__68674 | saltstack/salt | 68,674 | defect | 7a8d343473ad826ccfbe7bc40dd2e76808e4f82f | da3c628e426327433f7388811f686a4849868138 | Handle SaltDeserializationError in grains cache loading | ### What does this PR do?
Fix for #68678
### What issues does this PR fix or reference?
Fixes a bug where corrupted grains cache files cause unhandled
SaltDeserializationError exceptions.
When msgpack encounters corrupted cache data, it raises
msgpack.exceptions.ExtraData, which is wrapped in
SaltDeserializa... | diff --git a/changelog/68678.fixed.md b/changelog/68678.fixed.md
new file mode 100644
index 000000000000..d091b07dc9c8
--- /dev/null
+++ b/changelog/68678.fixed.md
@@ -0,0 +1,4 @@
+This PR fixes a bug where corrupted grains cache files cause unhandled
+`SaltDeserializationError` exceptions, resulting in CRITICAL errors... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly caught SaltDeserializationError should be logged at least at debug level here if it is not already logged before being raised.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
saltstack__salt__68868 | saltstack/salt | 68,868 | defect | 5693d42decfeaac47e32e0a73dc9e7ff62657372 | a41aba6de82d29d9e6e41b79ccbb832e395851b2 | Add publish_timeout config option defaulting to 30s | Decouples the pub timeout from opts["timeout"] (the minion response timeout) so programmatic LocalClient usage is not affected by the 5s salt command timeout default.
Fixes #68597
| diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index 82ec9c23777f..46cc3a2c1291 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -390,7 +390,7 @@ def run_job(
tgt_type,
ret,
jid=jid,
- timeout=self._get_timeout(timeou... | 3 | 3 | 0 | [{"id": "G0", "claim": "The British spelling \"honour\" in the test docstring should be American \"honor\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The British spelling \"honour\" in the test docstring should be American \"honor\".", "cat... | null |
saltyrtc__saltyrtc-client-rs__53 | saltyrtc/saltyrtc-client-rs | 53 | defect | a243e2d7a268caaccf3f06cb38a1944a747b984e | 611335fc046335459fe7eeb48766cd6261a57795 | Improve testing docs | Fixes #51. | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 07e127d..c6c5ff9 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -24,7 +24,7 @@ jobs:
command: /saltyrtc/certs/generate-cert.sh
- run:
name: Copy certificate
- command: cp /saltyrtc/certs/saltyrtc.der .
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The README need not say the new test certificate is valid for 5 years, since the validity does not matter here.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The copied test certificate should use the `.pem` ending instead... | null |
saltyrtc__saltyrtc-client-rs__59 | saltyrtc/saltyrtc-client-rs | 59 | defect | 5f35c4228e548340ee42718eeba43826bb28adc2 | 9274fb23e92be21286e943f24bbacdac8655d994 | Ignore an unknown responder | This prevents the connection being teared down by a protocol error in case a message from an *unknown* responder has been received. This can happen since a message from a responder towards an initiator may still be in flight after the initiator dropped the responder. | diff --git a/src/lib.rs b/src/lib.rs
index 495c83b..fed47d5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -368,7 +368,7 @@ pub enum Event {
/// Server handshake is done.
///
/// The boolean indicates whether a peer is already
- /// connected + authenticated.
+ /// connected + authenticated towards th... | 1 | 1 | 1 | [{"id": "G0", "claim": "A protocol-level test should be written for these changes in src/protocol/tests/signaling_messages.rs (probably via the TestContext helper), if that suffices.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sam-goodwin__eventual__386 | sam-goodwin/eventual | 386 | defect | 4c302bb1b2a804269b9842606bc085e653573d93 | 26b866b5343072b149fb8e53d757ca505c9f903c | feat: entity batch stream | Closes #363 | diff --git a/.vscode/settings.json b/.vscode/settings.json
index 526db4d36..8fc0e22b7 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -40,6 +40,7 @@
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"eslint.format.enable": false,
+ "prettier.prettierPath": "./node_modules/prettier",
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's change of \"import type openapi from \\\"openapi3-ts\\\"\" to a value import in apps/tests/aws-runtime/test/test-service.ts is a regression and the type-only import should be restored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
sam-goodwin__eventual__476 | sam-goodwin/eventual | 476 | defect | eda16ce0541f594965ac8feebcb44a3e318c04d7 | 840da010a2b50d841eebd3fe8cc8ed2f76193968 | feat: local support for presigned url | Closes #341
* Fixed: bucket names were using token literals instead of resolved values. | diff --git a/apps/tests/aws-runtime/package.json b/apps/tests/aws-runtime/package.json
index bc17314b..fc697b58 100644
--- a/apps/tests/aws-runtime/package.json
+++ b/apps/tests/aws-runtime/package.json
@@ -21,6 +21,7 @@
"@eventual/cli": "workspace:^",
"@eventual/client": "workspace:^",
"@eventual/core":... | 3 | 3 | 2 | [{"id": "G0", "claim": "The presigned middleware should not stringify req.body when building the PUT body, since the middleware now runs before the JSON body parser so this logic can be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pre... | null |
sam-goodwin__eventual__75 | sam-goodwin/eventual | 75 | defect | 400f7cfd07c24b1a946bba4c0d48a8de6b095c34 | 75eb61722127b8b70f290a6feae508bebb5fc165 | feat: async activity | Partial: https://github.com/functionless/eventual/issues/60
Clone of: #74
Activities can now declare themselves async
```ts
const asyncActivity = activity(
"asyncActivity",
async (type: AsyncWriterFunction["type"]) => {
return asyncResult<string>(async (token) => {
console.log(testQueueUrl);
... | diff --git a/apps/tests/aws-runtime-cdk/package.json b/apps/tests/aws-runtime-cdk/package.json
index f75aac0c7..66b30608d 100644
--- a/apps/tests/aws-runtime-cdk/package.json
+++ b/apps/tests/aws-runtime-cdk/package.json
@@ -6,8 +6,8 @@
"cdk": "cdk"
},
"dependencies": {
- "aws-cdk-lib": "^2.51.1",
- "c... | 11 | 9 | 1 | [{"id": "G0", "claim": "Locking down (pinning) the dependency versions in the aws-runtime-cdk test app's package.json may be unnecessary.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The testQueue resource should maybe only be deployed in test... | null |
sam-goodwin__eventual__82 | sam-goodwin/eventual | 82 | defect | 401ab267038fc5aaf19b56f8b59694af606ef942 | e25f012bddd405a4481e42e493efba3857d5d979 | feat: add support for event pub/sub | - [x] refactor lambda functions with grants into a new Construct, ServiceFunction
- [x] add `event` intrinsic declaration
- [x] support publishing from an API, activity or another event handler
- [x] support publishing from a workflow (with exactly-once semantics?)
- [x] add tests | diff --git a/apps/test-app-runtime/src/open-account.ts b/apps/test-app-runtime/src/open-account.ts
index 0c542a6b0..6b1e0caff 100644
--- a/apps/test-app-runtime/src/open-account.ts
+++ b/apps/test-app-runtime/src/open-account.ts
@@ -1,4 +1,4 @@
-import { activity, api, workflow } from "@eventual/core";
+import { activi... | 13 | 10 | 7 | [{"id": "G0", "claim": "The empty `else if (this.serviceType === ServiceType.ApiHandler) {}` branch in configurePermissions should be removed unless it is needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The scheduler-role configuration (env vars/g... | null |
samba-in-kubernetes__samba-operator__112 | samba-in-kubernetes/samba-operator | 112 | defect | f9f72e6626ebcd50b00ce1f304b7ba5c02145f88 | afd86dc995f1bb94e57a59b187c93027390c7483 | Create clustered instances | This is the preliminary set of patches to add clustering support, aka CTDB and StatefulSets, to the operator.
This enables the designed, but so far unimplemented, scaling subsection to the smbshare CR.
It's already long and bound to get a tad bit longer. I just don't see any great places to split out more patches A... | diff --git a/tests/utils/kube/client.go b/tests/utils/kube/client.go
index 8b9fbb50..bafda4d6 100644
--- a/tests/utils/kube/client.go
+++ b/tests/utils/kube/client.go
@@ -37,20 +37,48 @@ func (tc *TestClient) Clientset() *kubernetes.Clientset {
func (tc *TestClient) GetPodByLabel(
ctx context.Context, labelSelector ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The pull request's new clustered-instance integration test cannot pass CI because it requires multiple nodes, so the author needs to either disable the PodAntiAffinity for tests or get multi-node k8s into CI.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "unclear"},... | null |
samba-in-kubernetes__samba-operator__141 | samba-in-kubernetes/samba-operator | 141 | defect | 74aade393d210f0e6d5f134a8579c83c4987dfbb | 73616945c5f0a78aba49fd88b0ceed810b549355 | clean up how we run unit tests | Clean up the process of how we run unit tests, dropping the previous, not-really-used wrapper script.
Add some starter tests to internal/resources.
Make it simple to run unit tests and generate a coverage report in html. | diff --git a/Makefile b/Makefile
index 0142e220..ca813333 100644
--- a/Makefile
+++ b/Makefile
@@ -73,9 +73,9 @@ endif
all: manager build-integration-tests
-# Run tests
+# Run unit tests
test: generate manifests vet
- hack/test.sh
+ $(GO_CMD) test ./... -coverprofile cover.out
# Build manager binary
manager: ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The project would be better off adopting the more common SPDX-License-Identifier convention (a single comment at the top of each source file) instead of the full license header block.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
samba-in-kubernetes__samba-operator__161 | samba-in-kubernetes/samba-operator | 161 | defect | eb4ddb5748ed9fd8139dac5e0afc0a8ca92be0d1 | 2867b2a5c0493745db03054e017d2e990cfa4c41 | Add support for Spec.Storage.Pvc.Path component | This allows users to specify the path within a pvc which should be exported by samba. Includes an integration test which tests this new feature. | diff --git a/api/v1alpha1/smbshare_types.go b/api/v1alpha1/smbshare_types.go
index 28a35e34..9366bd98 100644
--- a/api/v1alpha1/smbshare_types.go
+++ b/api/v1alpha1/smbshare_types.go
@@ -86,6 +86,10 @@ type SmbSharePvcSpec struct {
// Behaves similar to the embedded PVC spec for pods.
// +optional
Spec *corev1.Pe... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment for the new Path field is missing a period at the end, unlike all the other doc comments.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
samba-in-kubernetes__samba-operator__225 | samba-in-kubernetes/samba-operator | 225 | defect | fdea298f461656a8af156a9ee255c5ead4f20c16 | 64763d62d3aeec6c0d26ffab8151862339fa2907 | integration test: use unique names for SmbShare resources | Depends on: #224
Fixes: #222
To help reduce various possible conflicts between the tests as the re-use the same YAML files over and over for test sources, it's better to have unique names for the resources we create. It can also help tie them back to the tests that
created them. This can also help avoid name co... | diff --git a/tests/integration/cleanup_test.go b/tests/integration/cleanup_test.go
index 15ab4e10..ef0d76fa 100644
--- a/tests/integration/cleanup_test.go
+++ b/tests/integration/cleanup_test.go
@@ -36,17 +36,29 @@ type resourceSnapshot struct {
type ShareCreateDeleteSuite struct {
suite.Suite
- fileSources [... | 3 | 2 | 1 | [{"id": "G0", "claim": "The PR's changes make the golang integration tests take longer to run, which the author suspects may be causing the overall CI run to time out and fail.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new comment above waitF... | null |
samba-in-kubernetes__samba-operator__25 | samba-in-kubernetes/samba-operator | 25 | defect | 8c663c2391d1b1ef48e0d5a23e52df68494c92d1 | 0898a07562300b68b75ed20ccf818385050bf63f | Add the initial support for the SmbShare (pt. 1 of many) | It's a tad bit messy, but trying to move from SmbService and SmbPvc to SmbShare piece by piece.
These changes add SmbShare and then add the bare minimal set of features to make it feature equivalent to SmbService and SmbPvc.
Future changes should remove SmbService and SmbPvc and then begin expanding on SmbShare to ... | diff --git a/api/v1alpha1/smbshare_types.go b/api/v1alpha1/smbshare_types.go
new file mode 100644
index 00000000..a79ea306
--- /dev/null
+++ b/api/v1alpha1/smbshare_types.go
@@ -0,0 +1,99 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the... | 1 | 1 | 1 | [{"id": "G0", "claim": "In SmbShareManager.Update the code returns Done when reading the SmbShare object fails even though the comment above it says to requeue the request, and the reviewer asks that this mismatch be fixed in this PR (suggesting return Requeue) rather than deferred to a follow-up.", "category": "correc... | null |
samba-in-kubernetes__samba-operator__258 | samba-in-kubernetes/samba-operator | 258 | defect | 31868d6c3152f382099aad8e8b0cddb1559d7357 | 34777974f4c269731b6341d1b03f4c42b62ea7da | planner: add Prune function to remove shares | Nothing uses this change yet, but it adds a function to the internal planner
library to Prune shares from an otherwise populated smbcc config.
Once the operator supports adding multiple shares to one instance we'll also
need a way to remove them.
With unit tests. | diff --git a/internal/planner/configuration.go b/internal/planner/configuration.go
index cdd9bea1..9f14184d 100644
--- a/internal/planner/configuration.go
+++ b/internal/planner/configuration.go
@@ -147,6 +147,24 @@ func (pl *Planner) Update() (changed bool, err error) {
return
}
+// Prune the target share from th... | 3 | 2 | 0 | [{"id": "G0", "claim": "The Prune function's named return values are confusing because `err error` appears in the signature but is never assigned within the function's body.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "For consistency with rem... | null |
samba-in-kubernetes__samba-operator__291 | samba-in-kubernetes/samba-operator | 291 | defect | 70df8a13f663edcf8e793c3538ee552903f0a778 | 9e7cb54f6f878af5f9a5c8dc7049f50edac5deea | Support specifying nodeSelector and affinity values in SmbCommonConfig to control pod scheduling | Fixes: #283
The new podSettings key allows for control of certain parameters the operator can not or should not guess at. Currently, this allows one to control scheduling via nodeSelector and affinity sections under podSettings in SmbCommonConfig.
It's located in SmbCommonConfig as SmbShare is really supposed to ... | diff --git a/api/v1alpha1/smbcommonconfig_types.go b/api/v1alpha1/smbcommonconfig_types.go
index 142250b1..42f11849 100644
--- a/api/v1alpha1/smbcommonconfig_types.go
+++ b/api/v1alpha1/smbcommonconfig_types.go
@@ -17,6 +17,7 @@ limitations under the License.
package v1alpha1
import (
+ corev1 "k8s.io/api/core/v1"
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new scheduling integration tests probably do not make sense on a single-node setup, and that case still needs to be handled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new affinity documentation bullet misspells \"spe... | null |
samba-in-kubernetes__samba-operator__40 | samba-in-kubernetes/samba-operator | 40 | defect | b7c9b3629ed6fb977d2c524932eb35c98197b5e6 | 22d10ab42463afbdc257092e6ee400f9595e2e99 | Add first integration tests | Based on PR #39 please review that first.
These changes add the very first integration tests - tests that expect to be run with a real kubernetes instance and all that fun stuff.
However, these are just the very first integration tests... not a full framework. They expect to be run with a KUBECONFIG env var set and... | diff --git a/tests/files/client-test-pod.yaml b/tests/files/client-test-pod.yaml
new file mode 100644
index 00000000..a26bbee0
--- /dev/null
+++ b/tests/files/client-test-pod.yaml
@@ -0,0 +1,22 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: smbclient
+ labels:
+ app: samba-operator-test-smbclient
+spec:
+ conta... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new test function is misspelled TestShareAcess and should be renamed TestShareAccess.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The first commit message contains the garbled phrase ' ... toe the code.' and should... | null |
samba-in-kubernetes__samba-operator__70 | samba-in-kubernetes/samba-operator | 70 | defect | 5f3a16a2dbb35f88735c7db5330f448d28ef128c | 75aef8ac44e62b02cdfb83b56fea26c44ee68137 | Initial support for events | Add initial support for recording events on the SmbShare resource as the operator reconciles things and creates resources to support the share. | diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml
index 48f5f4f3..c5abcb76 100644
--- a/config/rbac/role.yaml
+++ b/config/rbac/role.yaml
@@ -6,6 +6,13 @@ metadata:
creationTimestamp: null
name: manager-role
rules:
+- apiGroups:
+ - ""
+ resources:
+ - events
+ verbs:
+ - create
+ - patch
- apiGr... | 2 | 2 | 1 | [{"id": "G0", "claim": "The events RBAC rule should not need the `patch` verb — `create` should be sufficient.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new kubebuilder RBAC marker for events should use the `core` group instead of `\"\"`.", "c... | null |
samber__lo__122 | samber/lo | 122 | defect | 94d54a8f47e9104fc1efe19199e6612dc0daf243 | 47968201468ef2867fc152ce048c40b9dab182f2 | Add Duplicate & DuplicateBy | closes #121 | diff --git a/README.md b/README.md
index d99820d15..de3bc7ace 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,8 @@ Supported helpers for slices:
- Times
- Uniq
- UniqBy
+- Duplicate
+- DuplicateBy
- GroupBy
- Chunk
- PartitionBy
@@ -335,6 +337,26 @@ uniqValues := lo.UniqBy[int, int]([]int{0, 1, 2, 3, 4, 5}, f... | 5 | 4 | 0 | [{"id": "G0", "claim": "Duplicate/DuplicateBy would be better named Duplicates/DuplicatesBy or FindDuplicates/FindDuplicatesBy, since 'Duplicate' gives the impression of a fill/repeat helper rather than one returning duplicates and is not exactly the opposite of Uniq.", "category": "design", "verdict": "supported", "pr... | null |
samber__lo__188 | samber/lo | 188 | defect | 579b1d532ce473710216056e1599301182ae8633 | 4296a328e8fbc2ded565cc719898decb29a8dc2a | Implement ChunkString | Follow the best implementation found on StackOverflow by Igor Mikushkin https://stackoverflow.com/questions/25686109/split-string-by-length-in-golang
closes #187 | diff --git a/README.md b/README.md
index 4f9d7ccc2..b093fc0c0 100644
--- a/README.md
+++ b/README.md
@@ -122,6 +122,7 @@ Supported math helpers:
Supported helpers for strings:
- [Substring](#substring)
+- [ChunkString](#chunkstring)
- [RuneLength](#runelength)
Supported helpers for tuples:
@@ -978,6 +979,24 @@ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "ChunkString should be generic with the prototype func ChunkString[T ~string](str T, size int) []T instead of operating on plain strings.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
samber__lo__266 | samber/lo | 266 | defect | 686821d25e8321ba96b1dfd95256ada3c6362059 | ab4679f6d951784ab459ae8758187a2bcdc64ce1 | Add RandomString | closes #265
| diff --git a/README.md b/README.md
index 210817d63..d2c7df35d 100644
--- a/README.md
+++ b/README.md
@@ -143,6 +143,7 @@ Supported math helpers:
Supported helpers for strings:
+- [RandomString](#randomstring)
- [Substring](#substring)
- [ChunkString](#chunkstring)
- [RuneLength](#runelength)
@@ -1207,6 +1208,17... | 3 | 3 | 2 | [{"id": "G0", "claim": "The T ~string type parameter on RandomString is unnecessary and can be dropped so the function simply returns string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add tests covering charsets that contain non-UTF-8 multi-byte run... | null |
samber__lo__677 | samber/lo | 677 | defect | 3bc887c57ceb54d28330cfaca0bdf4ba6c4f87e2 | 7774225c96d4782388297e1c54e37b113db6f2fd | chore: minor whitespace fixes | Fixes minor whitespace issues, mostly trailing spaces and superfluous newlines. Also enables the `whitespace` linter to detect future issues. | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index cb39e01cf..934666a4f 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -17,6 +17,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
+ version: 'v2.4'
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Restore the Sample section's play link and spacing: the PR replaced the blank lines around the link with stray-character lines, so README.md line 3035 shows '[play ...]' prefixed and followed by corrupted blank lines; the suggestion block rewrites them to the link plus one blank line.", "categor... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.